public class Parser
extends org.apache.xerces.parsers.XMLDocumentParser
implements org.apache.xerces.xni.XMLDTDHandler, org.apache.xerces.xni.XMLDTDContentModelHandler, org.apache.xerces.xni.parser.XMLErrorHandler
fDocumentSource, fDTDContentModelSource, fDTDSource, fInDTDENTITY_RESOLVER, ERROR_HANDLER, fConfiguration| Constructor and Description |
|---|
Parser(org.apache.xerces.xni.parser.XMLParserConfiguration configuration)
Instantiates a new dtd to xsd parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addXsdTypePattern(List<TypePattern> list)
Adds the xsd type pattern.
|
void |
addXsdTypePattern(TypePattern xsdTypePattern)
Adds the xsd type pattern.
|
void |
any(org.apache.xerces.xni.Augmentations augs)
Any.
|
void |
attributeDecl(String ename,
String aname,
String atype,
String[] enums,
String dtype,
org.apache.xerces.xni.XMLString dvalue,
org.apache.xerces.xni.XMLString nondvalue,
org.apache.xerces.xni.Augmentations augs)
Attribute decl.
|
void |
comment(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
Comment.
|
void |
element(String name,
org.apache.xerces.xni.Augmentations augs)
Element.
|
void |
elementDecl(String name,
String contentModel,
org.apache.xerces.xni.Augmentations augs)
Element decl.
|
void |
empty(org.apache.xerces.xni.Augmentations augs)
Empty.
|
void |
endAttlist(org.apache.xerces.xni.Augmentations augs)
End attlist.
|
void |
endConditional(org.apache.xerces.xni.Augmentations augs)
End conditional.
|
void |
endContentModel(org.apache.xerces.xni.Augmentations augs)
End content model.
|
void |
endDTD(org.apache.xerces.xni.Augmentations augs)
End dtd.
|
void |
endExternalSubset(org.apache.xerces.xni.Augmentations augs)
End external subset.
|
void |
endGroup(org.apache.xerces.xni.Augmentations augs)
End group.
|
void |
endParameterEntity(String name,
org.apache.xerces.xni.Augmentations augs)
End parameter entity.
|
void |
error(String domain,
String key,
org.apache.xerces.xni.parser.XMLParseException exception)
Error.
|
void |
externalEntityDecl(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
org.apache.xerces.xni.Augmentations augs)
External entity decl.
|
void |
fatalError(String domain,
String key,
org.apache.xerces.xni.parser.XMLParseException exception)
Fatal error.
|
String |
getTargetNamespace()
Gets the target namespace.
|
void |
ignoredCharacters(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
Ignored characters.
|
void |
internalEntityDecl(String name,
org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.XMLString nonNormalizedText,
org.apache.xerces.xni.Augmentations augs)
Internal entity decl.
|
void |
notationDecl(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
org.apache.xerces.xni.Augmentations augs)
Notation decl.
|
void |
occurrence(short type,
org.apache.xerces.xni.Augmentations augs)
Occurrence.
|
void |
pcdata(org.apache.xerces.xni.Augmentations augs)
Pcdata.
|
void |
processingInstruction(String target,
org.apache.xerces.xni.XMLString data,
org.apache.xerces.xni.Augmentations augs)
Processing instruction.
|
void |
separator(short type,
org.apache.xerces.xni.Augmentations augs)
Separator.
|
void |
setTargetNamespace(String targetNamespace)
Sets the target namespace.
|
void |
startAttlist(String name,
org.apache.xerces.xni.Augmentations augs)
Start attlist.
|
void |
startConditional(short type,
org.apache.xerces.xni.Augmentations augs)
Start conditional.
|
void |
startContentModel(String ename,
org.apache.xerces.xni.Augmentations augs)
Start content model.
|
void |
startDTD(org.apache.xerces.xni.XMLLocator locator,
org.apache.xerces.xni.Augmentations augs)
Start dtd.
|
void |
startExternalSubset(org.apache.xerces.xni.XMLResourceIdentifier identifier,
org.apache.xerces.xni.Augmentations augs)
Start external subset.
|
void |
startGroup(org.apache.xerces.xni.Augmentations augs)
Start group.
|
void |
startParameterEntity(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
String encoding,
org.apache.xerces.xni.Augmentations augs)
Start parameter entity.
|
void |
textDecl(String version,
String encoding,
org.apache.xerces.xni.Augmentations augs)
Text decl.
|
void |
unparsedEntityDecl(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
String notation,
org.apache.xerces.xni.Augmentations augs)
Unparsed entity decl.
|
void |
warning(String domain,
String key,
org.apache.xerces.xni.parser.XMLParseException exception)
Warning.
|
void |
writeXsd(OutputStream out)
Write xsd.
|
void |
writeXsd(Writer out)
Write xsd.
|
characters, doctypeDecl, emptyElement, endCDATA, endDocument, endElement, endGeneralEntity, getDocumentSource, getDTDContentModelSource, getDTDSource, ignorableWhitespace, reset, setDocumentSource, setDTDContentModelSource, setDTDSource, startCDATA, startDocument, startElement, startGeneralEntity, xmlDeclpublic Parser(org.apache.xerces.xni.parser.XMLParserConfiguration configuration)
configuration - the configurationpublic void addXsdTypePattern(List<TypePattern> list)
list - the listpublic void addXsdTypePattern(TypePattern xsdTypePattern)
xsdTypePattern - the xsd type patternpublic void any(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
any in interface org.apache.xerces.xni.XMLDTDContentModelHandlerany in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.any(org.apache.xerces.xni.Augmentations)public void attributeDecl(String ename, String aname, String atype, String[] enums, String dtype, org.apache.xerces.xni.XMLString dvalue, org.apache.xerces.xni.XMLString nondvalue, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
attributeDecl in interface org.apache.xerces.xni.XMLDTDHandlerattributeDecl in class org.apache.xerces.parsers.AbstractXMLDocumentParserename - the enameaname - the anameatype - the atypeenums - the enumsdtype - the dtypedvalue - the dvaluenondvalue - the nondvalueaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.attributeDecl(java.lang.String,
java.lang.String, java.lang.String, java.lang.String[], java.lang.String,
org.apache.xerces.xni.XMLString, org.apache.xerces.xni.XMLString,
org.apache.xerces.xni.Augmentations)public void comment(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
comment in interface org.apache.xerces.xni.XMLDocumentHandlercomment in interface org.apache.xerces.xni.XMLDTDHandlercomment in class org.apache.xerces.parsers.AbstractXMLDocumentParsertext - the textaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.comment(org.apache.xerces.xni.XMLString,
org.apache.xerces.xni.Augmentations)public void element(String name, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
element in interface org.apache.xerces.xni.XMLDTDContentModelHandlerelement in class org.apache.xerces.parsers.AbstractXMLDocumentParsername - the nameaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.element(java.lang.String,
org.apache.xerces.xni.Augmentations)public void elementDecl(String name, String contentModel, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
elementDecl in interface org.apache.xerces.xni.XMLDTDHandlerelementDecl in class org.apache.xerces.parsers.AbstractXMLDocumentParsername - the namecontentModel - the content modelaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.elementDecl(java.lang.String,
java.lang.String, org.apache.xerces.xni.Augmentations)public void empty(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
empty in interface org.apache.xerces.xni.XMLDTDContentModelHandlerempty in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.empty(org.apache.xerces.xni.Augmentations)public void endAttlist(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
endAttlist in interface org.apache.xerces.xni.XMLDTDHandlerendAttlist in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.endAttlist(org.apache.xerces.xni.Augmentations)public void endConditional(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
endConditional in interface org.apache.xerces.xni.XMLDTDHandlerendConditional in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.endConditional(org.apache.xerces.xni.Augmentations)public void endContentModel(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
endContentModel in interface org.apache.xerces.xni.XMLDTDContentModelHandlerendContentModel in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.endContentModel(org.apache.xerces.xni.Augmentations)public void endDTD(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
endDTD in interface org.apache.xerces.xni.XMLDTDHandlerendDTD in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.endDTD(org.apache.xerces.xni.Augmentations)public void endExternalSubset(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
endExternalSubset in interface org.apache.xerces.xni.XMLDTDHandlerendExternalSubset in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.endExternalSubset(org.apache.xerces.xni.Augmentations)public void endGroup(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
endGroup in interface org.apache.xerces.xni.XMLDTDContentModelHandlerendGroup in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.endGroup(org.apache.xerces.xni.Augmentations)public void endParameterEntity(String name, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
endParameterEntity in interface org.apache.xerces.xni.XMLDTDHandlerendParameterEntity in class org.apache.xerces.parsers.AbstractXMLDocumentParsername - the nameaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.endParameterEntity(java.lang.String,
org.apache.xerces.xni.Augmentations)public void error(String domain, String key, org.apache.xerces.xni.parser.XMLParseException exception) throws org.apache.xerces.xni.XNIException
error in interface org.apache.xerces.xni.parser.XMLErrorHandlerdomain - the domainkey - the keyexception - the exceptionorg.apache.xerces.xni.XNIException - the xNI exception XMLErrorHandler.error(java.lang.String, java.lang.String,
org.apache.xerces.xni.parser.XMLParseException)public void externalEntityDecl(String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
externalEntityDecl in interface org.apache.xerces.xni.XMLDTDHandlerexternalEntityDecl in class org.apache.xerces.parsers.AbstractXMLDocumentParsername - the nameidentifier - the identifieraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.externalEntityDecl(java.lang.String,
org.apache.xerces.xni.XMLResourceIdentifier, org.apache.xerces.xni.Augmentations)public void fatalError(String domain, String key, org.apache.xerces.xni.parser.XMLParseException exception) throws org.apache.xerces.xni.XNIException
fatalError in interface org.apache.xerces.xni.parser.XMLErrorHandlerdomain - the domainkey - the keyexception - the exceptionorg.apache.xerces.xni.XNIException - the xNI exception XMLErrorHandler.fatalError(java.lang.String,
java.lang.String, org.apache.xerces.xni.parser.XMLParseException)public String getTargetNamespace()
public void ignoredCharacters(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
ignoredCharacters in interface org.apache.xerces.xni.XMLDTDHandlerignoredCharacters in class org.apache.xerces.parsers.AbstractXMLDocumentParsertext - the textaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.ignoredCharacters(org.apache.xerces.xni.XMLString,
org.apache.xerces.xni.Augmentations)public void internalEntityDecl(String name, org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.XMLString nonNormalizedText, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
internalEntityDecl in interface org.apache.xerces.xni.XMLDTDHandlerinternalEntityDecl in class org.apache.xerces.parsers.AbstractXMLDocumentParsername - the nametext - the textnonNormalizedText - the non normalized textaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.internalEntityDecl(java.lang.String,
org.apache.xerces.xni.XMLString, org.apache.xerces.xni.XMLString,
org.apache.xerces.xni.Augmentations)public void notationDecl(String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
notationDecl in interface org.apache.xerces.xni.XMLDTDHandlernotationDecl in class org.apache.xerces.parsers.AbstractXMLDocumentParsername - the nameidentifier - the identifieraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.notationDecl(java.lang.String,
org.apache.xerces.xni.XMLResourceIdentifier, org.apache.xerces.xni.Augmentations)public void occurrence(short type,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
occurrence in interface org.apache.xerces.xni.XMLDTDContentModelHandleroccurrence in class org.apache.xerces.parsers.AbstractXMLDocumentParsertype - the typeaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.occurrence(short,
org.apache.xerces.xni.Augmentations)public void pcdata(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
pcdata in interface org.apache.xerces.xni.XMLDTDContentModelHandlerpcdata in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.pcdata(org.apache.xerces.xni.Augmentations)public void processingInstruction(String target, org.apache.xerces.xni.XMLString data, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
processingInstruction in interface org.apache.xerces.xni.XMLDocumentHandlerprocessingInstruction in interface org.apache.xerces.xni.XMLDTDHandlerprocessingInstruction in class org.apache.xerces.parsers.AbstractXMLDocumentParsertarget - the targetdata - the dataaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.processingInstruction(java.lang.String,
org.apache.xerces.xni.XMLString, org.apache.xerces.xni.Augmentations)public void separator(short type,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
separator in interface org.apache.xerces.xni.XMLDTDContentModelHandlerseparator in class org.apache.xerces.parsers.AbstractXMLDocumentParsertype - the typeaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.separator(short,
org.apache.xerces.xni.Augmentations)public void setTargetNamespace(String targetNamespace)
targetNamespace - the new target namespacepublic void startAttlist(String name, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startAttlist in interface org.apache.xerces.xni.XMLDTDHandlerstartAttlist in class org.apache.xerces.parsers.AbstractXMLDocumentParsername - the nameaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.startAttlist(java.lang.String,
org.apache.xerces.xni.Augmentations)public void startConditional(short type,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
startConditional in interface org.apache.xerces.xni.XMLDTDHandlerstartConditional in class org.apache.xerces.parsers.AbstractXMLDocumentParsertype - the typeaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.startConditional(short,
org.apache.xerces.xni.Augmentations)public void startContentModel(String ename, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startContentModel in interface org.apache.xerces.xni.XMLDTDContentModelHandlerstartContentModel in class org.apache.xerces.parsers.AbstractXMLDocumentParserename - the enameaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.startContentModel(java.lang.String,
org.apache.xerces.xni.Augmentations)public void startDTD(org.apache.xerces.xni.XMLLocator locator,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
startDTD in interface org.apache.xerces.xni.XMLDTDHandlerstartDTD in class org.apache.xerces.parsers.AbstractXMLDocumentParserlocator - the locatoraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.startDTD(org.apache.xerces.xni.XMLLocator,
org.apache.xerces.xni.Augmentations)public void startExternalSubset(org.apache.xerces.xni.XMLResourceIdentifier identifier,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
startExternalSubset in interface org.apache.xerces.xni.XMLDTDHandlerstartExternalSubset in class org.apache.xerces.parsers.AbstractXMLDocumentParseridentifier - the identifieraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.startExternalSubset(org.apache.xerces.xni.XMLResourceIdentifier,
org.apache.xerces.xni.Augmentations)public void startGroup(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
startGroup in interface org.apache.xerces.xni.XMLDTDContentModelHandlerstartGroup in class org.apache.xerces.parsers.AbstractXMLDocumentParseraugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.startGroup(org.apache.xerces.xni.Augmentations)public void startParameterEntity(String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, String encoding, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startParameterEntity in interface org.apache.xerces.xni.XMLDTDHandlerstartParameterEntity in class org.apache.xerces.parsers.AbstractXMLDocumentParsername - the nameidentifier - the identifierencoding - the encodingaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.startParameterEntity(java.lang.String,
org.apache.xerces.xni.XMLResourceIdentifier, java.lang.String,
org.apache.xerces.xni.Augmentations)public void textDecl(String version, String encoding, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
textDecl in interface org.apache.xerces.xni.XMLDocumentHandlertextDecl in interface org.apache.xerces.xni.XMLDTDHandlertextDecl in class org.apache.xerces.parsers.AbstractXMLDocumentParserversion - the versionencoding - the encodingaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.textDecl(java.lang.String,
java.lang.String, org.apache.xerces.xni.Augmentations)public void unparsedEntityDecl(String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, String notation, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
unparsedEntityDecl in interface org.apache.xerces.xni.XMLDTDHandlerunparsedEntityDecl in class org.apache.xerces.parsers.AbstractXMLDocumentParsername - the nameidentifier - the identifiernotation - the notationaugs - the augsorg.apache.xerces.xni.XNIException - the xNI exception AbstractXMLDocumentParser.unparsedEntityDecl(java.lang.String,
org.apache.xerces.xni.XMLResourceIdentifier, java.lang.String,
org.apache.xerces.xni.Augmentations)public void warning(String domain, String key, org.apache.xerces.xni.parser.XMLParseException exception) throws org.apache.xerces.xni.XNIException
warning in interface org.apache.xerces.xni.parser.XMLErrorHandlerdomain - the domainkey - the keyexception - the exceptionorg.apache.xerces.xni.XNIException - the xNI exception XMLErrorHandler.warning(java.lang.String, java.lang.String,
org.apache.xerces.xni.parser.XMLParseException)public void writeXsd(OutputStream out)
out - the outpublic void writeXsd(Writer out)
out - the outCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.