public class JDFParser extends XMLParser
| Modifier and Type | Field and Description |
|---|---|
boolean |
bKElementOnly
Deprecated.
use XMLParse to parse pure XMLDoc instances
|
ignoreNSDefault, log, m_eraseEmpty, m_ErrorHandler, m_lastExcept, m_SchemaLocation, m_searchStreamfUseEntityResolver2, SYMBOL_TABLE, USE_ENTITY_RESOLVER2, XMLGRAMMAR_POOLCORE_DOCUMENT_CLASS_NAME, CREATE_CDATA_NODES_FEATURE, CREATE_ENTITY_REF_NODES, CURRENT_ELEMENT_NODE, DEFAULT_DOCUMENT_CLASS_NAME, DEFER_NODE_EXPANSION, DOCUMENT_CLASS_NAME, fBaseURIStack, fCreateCDATANodes, fCreateEntityRefNodes, fCurrentCDATASection, fCurrentCDATASectionIndex, fCurrentEntityDecl, fCurrentNode, fCurrentNodeIndex, fDeferNodeExpansion, fDeferredDocumentImpl, fDeferredEntityDecl, fDocument, fDocumentClassName, fDocumentImpl, fDocumentIndex, fDocumentType, fDocumentTypeIndex, fDOMFilter, fErrorHandler, fFilterReject, fFirstChunk, fInCDATASection, fIncludeComments, fIncludeIgnorableWhitespace, fInDTD, fInDTDExternalSubset, fInEntityRef, fInternalSubset, fNamespaceAware, fRejectedElementDepth, fRoot, fSkippedElemStack, fStorePSVI, fStringBuffer, INCLUDE_COMMENTS_FEATURE, INCLUDE_IGNORABLE_WHITESPACE, NAMESPACES, PSVI_DOCUMENT_CLASS_NAMEfDocumentSource, fDTDContentModelSource, fDTDSourceENTITY_RESOLVER, ERROR_HANDLER, fConfiguration| Constructor and Description |
|---|
JDFParser()
default constructor
|
JDFParser(JDFParser parser) |
JDFParser(java.lang.String strDocType)
Deprecated.
- use default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
(non-Javadoc) reset all internal variables to a reasonable default
|
org.w3c.dom.Element |
createElementNode(org.apache.xerces.xni.QName element) |
java.lang.String |
getDocumentClass() |
protected XMLDoc |
getXMLDoc() |
JDFDoc |
parseFile(java.io.File file) |
JDFDoc |
parseFile(java.lang.String strFile)
parseFile - parse a file specified by strFile
|
JDFDoc |
parseFile(java.lang.String strFile,
java.lang.String schemaLocation)
Deprecated.
set the parser members instead
|
JDFDoc |
parseInputSource(org.xml.sax.InputSource inSource,
java.lang.String schemaLocation,
java.lang.String documentClassName,
org.xml.sax.ErrorHandler errorHandler,
boolean bEraseEmpty,
boolean bDoNamespaces)
Deprecated.
set the parser members instead
|
JDFDoc |
parseStream(java.io.InputStream inStream)
parseStream - parse a stream specified by inStream
|
JDFDoc |
parseString(java.lang.String stringInput)
parseString - parse a string specified by stringInput
|
protected XMLDoc |
runParser(org.xml.sax.InputSource inSource,
boolean bEraseEmpty) |
protected void |
setDocumentProperties(KElement root,
DocumentXMLImpl memberDocument,
java.lang.String namespaceURI) |
void |
setJDFSchemaLocation(java.io.File _schemaLocation) |
void |
setJDFSchemaLocation(java.lang.String schemaLocation) |
void |
startDocument(org.apache.xerces.xni.XMLLocator locator,
java.lang.String encoding,
org.apache.xerces.xni.NamespaceContext namespaceContext,
org.apache.xerces.xni.Augmentations augs) |
addSchemaLocation, initParser, parse, parseInputSource, setErrorHandler, setInputID, setSchemaLocation, toStringgetEntityResolver, getErrorHandler, getFeature, getProperty, getXMLParserConfiguration, parse, setEntityResolver, setFeature, setPropertyabort, attributeDecl, characters, comment, createAttrNode, doctypeDecl, dropDocumentReferences, elementDecl, emptyElement, endAttlist, endCDATA, endConditional, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endParameterEntity, externalEntityDecl, getDocument, getDocumentClassName, handleBaseURI, handleBaseURI, ignorableWhitespace, ignoredCharacters, internalEntityDecl, notationDecl, processingInstruction, reset, setCharacterData, setDocumentClassName, setLocale, startAttlist, startCDATA, startConditional, startDTD, startElement, startExternalSubset, startGeneralEntity, startParameterEntity, textDecl, unparsedEntityDecl, xmlDeclany, element, empty, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startContentModel, startGroup@Deprecated public boolean bKElementOnly
public JDFParser()
@Deprecated public JDFParser(java.lang.String strDocType)
strDocType - public JDFParser(JDFParser parser)
parser - public void cleanup()
public JDFDoc parseFile(java.lang.String strFile)
public JDFDoc parseFile(java.io.File file)
@Deprecated public JDFDoc parseFile(java.lang.String strFile, java.lang.String schemaLocation)
strFile - link to the document to parseschemaLocation - link to the schema to use, null if no validation requiredpublic JDFDoc parseString(java.lang.String stringInput)
parseString in class XMLParserstringInput - string to parsepublic JDFDoc parseStream(java.io.InputStream inStream)
parseStream in class XMLParserinStream - stream to parse@Deprecated public JDFDoc parseInputSource(org.xml.sax.InputSource inSource, java.lang.String schemaLocation, java.lang.String documentClassName, org.xml.sax.ErrorHandler errorHandler, boolean bEraseEmpty, boolean bDoNamespaces)
inSource - schemaLocation - schema location, null if no validation requireddocumentClassName - errorHandler - bEraseEmpty - if true empty nodes are erased after parsingbDoNamespaces - if false a second parse is done, where namespaces are ignoredpublic java.lang.String getDocumentClass()
getDocumentClass in class XMLParserpublic org.w3c.dom.Element createElementNode(org.apache.xerces.xni.QName element)
createElementNode in class org.apache.xerces.parsers.AbstractDOMParserAbstractDOMParser.createElementNode(org.apache.xerces.xni.QName)public void setJDFSchemaLocation(java.io.File _schemaLocation)
_schemaLocation - the schema locationpublic void setJDFSchemaLocation(java.lang.String schemaLocation)
schemaLocation - the schema locationpublic void startDocument(org.apache.xerces.xni.XMLLocator locator,
java.lang.String encoding,
org.apache.xerces.xni.NamespaceContext namespaceContext,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
startDocument in interface org.apache.xerces.xni.XMLDocumentHandlerstartDocument in class XMLParserorg.apache.xerces.xni.XNIExceptionAbstractDOMParser.startDocument(org.apache.xerces.xni.XMLLocator, java.lang.String, org.apache.xerces.xni.NamespaceContext, org.apache.xerces.xni.Augmentations)protected void setDocumentProperties(KElement root, DocumentXMLImpl memberDocument, java.lang.String namespaceURI)
setDocumentProperties in class XMLParser