@CallMethod(pattern = "response/metadata/bibliographicCitation")
  public void addBibliographicCitation(
      @CallParam(pattern = "response/metadata/bibliographicCitation", attributeName = "xml:lang")
          Language language,
      @CallParam(pattern = "response/metadata/bibliographicCitation") String description) {

    bibliographicCitations.addValue(language, description);
  }
  @CallMethod(pattern = "response/metadata/rights")
  public void addRights(
      @CallParam(pattern = "response/metadata/rights", attributeName = "xml:lang")
          Language language,
      @CallParam(pattern = "response/metadata/rights") String description) {

    rights.addValue(language, description);
  }
 @Transient
 protected ModuleConfigurationEntityBase copy(ModuleConfigurationEntityBase clone) {
   super.copy(clone);
   if (description != null) {
     clone.setDescription(description.copy());
   }
   clone.setName(name);
   clone.setState(state);
   clone.setStudy(study);
   return clone;
 }
Example #4
0
  /**
   * Configures the framework by reading its configuration file 'config/framework.xml' containing a
   * list with UrlConverters.
   */
  protected final void configure(Element el) {
    try {
      description.fillFromXml("description", el);

      NodeList urlconverters = el.getElementsByTagName("urlconverter");
      for (int i = 0; i < urlconverters.getLength(); i++) {
        Element element = (Element) urlconverters.item(i);
        UrlConverter uc;
        try {
          uc = (UrlConverter) Instantiator.getInstance(element, (Framework) this);
        } catch (NoSuchMethodException nsme) {
          uc = (UrlConverter) Instantiator.getInstance(element);
        } catch (ClassNotFoundException cnfe) {
          log.warn(org.mmbase.util.xml.XMLWriter.write(element) + " " + cnfe);
          continue;
        } catch (Throwable t) {
          log.error(org.mmbase.util.xml.XMLWriter.write(element) + ": " + t.getMessage(), t);
          if (t.getCause() != null) {
            log.error("Caused by: " + t.getCause().getMessage(), t.getCause());
          }
          continue;
        }
        urlConverter.add(uc);
      }
      parDef = null;

    } catch (Throwable e) {
      log.error(e.getMessage(), e);
    }
    /*
    BasicUrlConverter buc = new BasicUrlConverter(this);
    if (! urlConverter.contains(buc)) {
        urlConverter.add(buc);
    }
    */
    log.info(
        "Configured with "
            + el.getOwnerDocument().getDocumentURI()
            + " "
            + getClass()
            + " "
            + this);
  }
 @CallMethod(pattern = "response/metadata/title")
 public void addTitle(
     @CallParam(pattern = "response/metadata/title", attributeName = "xml:lang") Language language,
     @CallParam(pattern = "response/metadata/title") String title) {
   titles.addValue(language, title);
 }