DLESE Tools
v1.6.0

org.dlese.dpc.xml
Class NewsOppsToLocalizedFormatConverter

java.lang.Object
  extended by org.dlese.dpc.xml.NewsOppsToLocalizedFormatConverter
All Implemented Interfaces:
XMLFormatConverter

public class NewsOppsToLocalizedFormatConverter
extends Object
implements XMLFormatConverter

Converts from news_opps format to a localized news_opps 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:
XMLConversionService

Constructor Summary
NewsOppsToLocalizedFormatConverter()
           
 
Method Summary
 String convertXML(String xml, ServletContext context)
          Performs XML conversion from news_opps to news_opps localized.
 String getFromFormat()
          Converts from the news_opps format.
 String getToFormat()
          Converts to the news_opps-localized format
 long lastModified(ServletContext context)
          Gets the time this converter code was last modified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsOppsToLocalizedFormatConverter

public NewsOppsToLocalizedFormatConverter()
Method Detail

getFromFormat

public String getFromFormat()
Converts from the news_opps format.

Specified by:
getFromFormat in interface XMLFormatConverter
Returns:
The String "dlese_collect".

getToFormat

public String getToFormat()
Converts to the news_opps-localized format

Specified by:
getToFormat in interface XMLFormatConverter
Returns:
The String "news_opps-localized".

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 - Servlet context
Returns:
The time this converter code was last modified.

convertXML

public String convertXML(String xml,
                         ServletContext context)
Performs XML conversion from news_opps to news_opps localized.

Specified by:
convertXML in interface XMLFormatConverter
Parameters:
xml - XML input in the 'news_opps' format.
context - Servlet context
Returns:
XML in the converted 'news_opps-localized' format.

DLESE Tools
v1.6.0