Class ADNToBriefMetaFormatConverter

java.lang.Object
org.dlese.dpc.xml.ADNToBriefMetaFormatConverter
All Implemented Interfaces:
XMLFormatConverter

public class ADNToBriefMetaFormatConverter extends Object implements XMLFormatConverter
Converts from ADN format to the BriefMeta format. See the briefMeta sample record and schema .
Author:
John Weatherley
See Also:
  • Constructor Details

    • ADNToBriefMetaFormatConverter

      public ADNToBriefMetaFormatConverter()
  • Method Details

    • getFromFormat

      public String getFromFormat()
      Converts from the ADN format.
      Specified by:
      getFromFormat in interface XMLFormatConverter
      Returns:
      The String "adn".
    • getToFormat

      public String getToFormat()
      Converts to the BrifeMeta format.
      Specified by:
      getToFormat in interface XMLFormatConverter
      Returns:
      The String "briefmeta".
    • lastModified

      public long lastModified(ServletContext context)
      Gets the time this converter code was last modified. If unknown, this method should return -1.
      Specified by:
      lastModified in interface XMLFormatConverter
      Parameters:
      context - The context in which this is running.
      Returns:
      The time this converter code was last modified.
    • convertXML

      public String convertXML(String xml, ServletContext context)
      Performs XML conversion from ADN to BriefMeta format.
      Specified by:
      convertXML in interface XMLFormatConverter
      Parameters:
      xml - XML input in the 'adn' format.
      context - The context in which this is running.
      Returns:
      XML in the converted 'briefmeta' format.