Package com.nt.udc.nar.xml
Class NARHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.nt.udc.util.xml.ContextParser
com.nt.udc.nar.xml.NARHandler
- All Implemented Interfaces:
NamedContextFactory,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Direct Known Subclasses:
NARXMLReader,NARXMLWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContext(String name) Used to retrieve the correctElementContextgiven an XML element name.com.nt.udc.datadictparser.DataDictionaryvoidsetDataDictionary(com.nt.udc.datadictparser.DataDictionary dataDictionary) Methods inherited from class com.nt.udc.util.xml.ContextParser
addFactory, characters, createNewContext, endElement, getRoot, setDocumentLocator, startDocument, startElement, writeMethods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
NARHandler
public NARHandler()
-
-
Method Details
-
getDataDictionary
public com.nt.udc.datadictparser.DataDictionary getDataDictionary() -
setDataDictionary
public void setDataDictionary(com.nt.udc.datadictparser.DataDictionary dataDictionary) -
getContext
Description copied from class:ContextParserUsed to retrieve the correctElementContextgiven an XML element name. Using the given name, this method will retrieve a new ElementContext using theElementContextFactorybound against that name. If no binding exists then theUnknownContextwill be returned.- Specified by:
getContextin interfaceNamedContextFactory- Overrides:
getContextin classContextParser- Parameters:
name- The XML element name which we are retrieving the ElementContext for.- Returns:
- The ElementContext bound to the given XML element name.
- Throws:
SAXParseException- if an execption is caused during the creation of the ElementContext.
-