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 correctElementContext
given an XML element name.com.nt.udc.datadictparser.DataDictionary
void
setDataDictionary
(com.nt.udc.datadictparser.DataDictionary dataDictionary) Methods inherited from class com.nt.udc.util.xml.ContextParser
addFactory, characters, createNewContext, endElement, getRoot, setDocumentLocator, startDocument, startElement, write
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ContextParser
Used to retrieve the correctElementContext
given an XML element name. Using the given name, this method will retrieve a new ElementContext using theElementContextFactory
bound against that name. If no binding exists then theUnknownContext
will be returned.- Specified by:
getContext
in interfaceNamedContextFactory
- Overrides:
getContext
in 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.
-