Package org.dlese.dpc.xml
Class DLESECollectToLocalizedFormatConverter
java.lang.Object
org.dlese.dpc.xml.DLESECollectToLocalizedFormatConverter
- All Implemented Interfaces:
XMLFormatConverter
Converts from DLESE Collect format to a localized DLESE Collect format, which contains
no namespace declarations. Localized XML may be accessed using XPath notation without
the local-name() function, making it easier to use.
- Author:
- John Weatherley
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertXML(String xml, ServletContext context) Performs XML conversion from DLESE Collect to DLESE Collect localized.Converts from the DLESE Collect format.Converts to the dlese_collect-localized formatlonglastModified(ServletContext context) Gets the time this converter code was last modified.
-
Constructor Details
-
DLESECollectToLocalizedFormatConverter
public DLESECollectToLocalizedFormatConverter()
-
-
Method Details
-
getFromFormat
Converts from the DLESE Collect format.- Specified by:
getFromFormatin interfaceXMLFormatConverter- Returns:
- The String "dlese_collect".
-
getToFormat
Converts to the dlese_collect-localized format- Specified by:
getToFormatin interfaceXMLFormatConverter- Returns:
- The String "dlese_collect-localized".
-
lastModified
Gets the time this converter code was last modified. If unknown, this method should return -1.- Specified by:
lastModifiedin interfaceXMLFormatConverter- Parameters:
context- Servlet context- Returns:
- The time this converter code was last modified.
-
convertXML
Performs XML conversion from DLESE Collect to DLESE Collect localized.- Specified by:
convertXMLin interfaceXMLFormatConverter- Parameters:
xml- XML input in the 'dlese_collect' format.context- Servlet context- Returns:
- XML in the converted 'dlese_collect-localized' format.
-