Package org.dlese.dpc.xml
Class ADNToBriefMetaFormatConverter
java.lang.Object
org.dlese.dpc.xml.ADNToBriefMetaFormatConverter
- All Implemented Interfaces:
XMLFormatConverter
Converts from ADN format to the BriefMeta format. See the briefMeta sample
record and
schema .
- Author:
- John Weatherley
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertXML(String xml, ServletContext context) Performs XML conversion from ADN to BriefMeta format.Converts from the ADN format.Converts to the BrifeMeta format.longlastModified(ServletContext context) Gets the time this converter code was last modified.
-
Constructor Details
-
ADNToBriefMetaFormatConverter
public ADNToBriefMetaFormatConverter()
-
-
Method Details
-
getFromFormat
Converts from the ADN format.- Specified by:
getFromFormatin interfaceXMLFormatConverter- Returns:
- The String "adn".
-
getToFormat
Converts to the BrifeMeta format.- Specified by:
getToFormatin interfaceXMLFormatConverter- Returns:
- The String "briefmeta".
-
lastModified
Gets the time this converter code was last modified. If unknown, this method should return -1.- Specified by:
lastModifiedin interfaceXMLFormatConverter- Parameters:
context- The context in which this is running.- Returns:
- The time this converter code was last modified.
-
convertXML
Performs XML conversion from ADN to BriefMeta format.- Specified by:
convertXMLin interfaceXMLFormatConverter- Parameters:
xml- XML input in the 'adn' format.context- The context in which this is running.- Returns:
- XML in the converted 'briefmeta' format.
-