public abstract class DTDParser extends XMLDTDBaseGrammar
XMLBaseGrammar.Context| Modifier and Type | Field and Description |
|---|---|
static char |
ELPRF
Deprecated.
|
BUFFERSIZE, Char, external, generalReferences, input, inputReader, locator, NameChar, NameStartChar, NCNameChar, NCNameStartChar, parameterReferences, PubidChar, PubidCharMinusApostrophe, RestrictedChar, S| Constructor and Description |
|---|
DTDParser()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
anyContentspec()
Deprecated.
|
protected AttDef |
attDef(QName name,
AttType attType,
DefaultDecl defaultDecl)
Deprecated.
[53] AttDef ::= S Name S AttType S DefaultDecl
[21] AttDef ::= S (QName | NSAttName) S AttType S DefaultDecl
|
protected AttDef |
attDef(String name,
AttType attType,
DefaultDecl defaultDecl)
Deprecated.
|
protected List<AttDef> |
attDefs()
Deprecated.
|
protected List<AttDef> |
attDefs(List<AttDef> attDefs,
AttDef attDef)
Deprecated.
|
protected void |
attlistDecl(QName name,
List<AttDef> attDefs)
Deprecated.
[52] AttlistDecl ::= ''
[20] AttlistDecl ::= ''
|
protected void |
attribute(QName name,
String value)
Deprecated.
[41] Attribute ::= Name Eq AttValue
[15] Attribute ::= NSAttName Eq AttValue
| QName Eq AttValue
|
protected void |
attribute(String name,
String uri)
Deprecated.
|
static List<Attribute> |
attributeListNext(List<Attribute> list,
Attribute t)
Deprecated.
|
static List<Attribute> |
attributeListStart()
Deprecated.
|
protected abstract void |
attributes()
Deprecated.
|
protected abstract AttType |
attType(AttType attType)
Deprecated.
[54] AttType ::= StringType | TokenizedType | EnumeratedType
|
protected String |
children(String content,
char quantifier)
Deprecated.
[47] children ::= (choice | seq) ('?' | '*' | '+')?
|
protected String |
choice(String choices)
Deprecated.
[49] choice ::= '(' S? cp ( S? '|' S? cp )+ S? ')'
|
protected String |
choices(String cp1,
String cp2)
Deprecated.
|
protected abstract void |
content()
Deprecated.
[43] content ::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)*
|
protected void |
content(String charData)
Deprecated.
|
protected abstract String |
contentspec(String content)
Deprecated.
|
protected String |
cp(QName name,
char quantifier)
Deprecated.
[48] cp ::= (Name | choice | seq) ('?' | '*' | '+')?
[18] cp ::= (QName | choice | seq) ('?' | '*' | '+')?
|
protected String |
cp(String content,
char quantifier)
Deprecated.
|
static DTDParser |
createDTDParser()
Deprecated.
|
protected abstract DefaultDecl |
defaultDecl(DefaultDecl defaultDecl)
Deprecated.
[60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED'
| (('#FIXED' S)? AttValue)
|
protected DefaultDecl |
defaultDecl(String value)
Deprecated.
|
protected DefaultDecl |
defaultDeclFixed(String value)
Deprecated.
|
protected DefaultDecl |
defaultDeclImplied()
Deprecated.
|
protected DefaultDecl |
defaultDeclRequired()
Deprecated.
|
protected void |
doctypedeclEnd()
Deprecated.
|
protected void |
doctypedeclStart(QName name,
String[] externalID)
Deprecated.
|
protected abstract void |
element()
Deprecated.
[39] element ::= EmptyElemTag
| STag content ETag
|
protected void |
elementdecl(QName name,
String content)
Deprecated.
[45] elementdecl ::= ''
[17] elementdecl ::= ''
|
protected String |
emptyContentspec()
Deprecated.
[46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children
|
protected void |
emptyElemTag(QName name)
Deprecated.
[44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>'
EmptyElemTag ::= '<' QName (S Attribute)* S? '/>'
|
protected abstract AttType |
enumeratedType(AttType attType)
Deprecated.
[57] EnumeratedType ::= NotationType | Enumeration
|
protected AttType |
enumeration(List<String> names)
Deprecated.
[59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')'
|
protected List<String> |
enumerationNMTokens(List<String> names,
String name)
Deprecated.
|
protected List<String> |
enumerationNMTokens(String name)
Deprecated.
|
protected void |
eTag(QName name)
Deprecated.
[42] ETag ::= '' Name S? '>'
[13] ETag ::= '' QName S? '>'
|
static void |
main(String[] args)
Deprecated.
|
protected String |
mixed()
Deprecated.
[51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*'
| '(' S? '#PCDATA' S? ')'
[19] Mixed ::= '(' S? '#PCDATA' (S? '|' S? QName)* S? ')*'
| '(' S? '#PCDATA' S? ')'
|
protected String |
mixed(String qNames)
Deprecated.
|
protected String |
mixedNames()
Deprecated.
|
protected String |
mixedNames(String qNames,
QName name)
Deprecated.
|
protected AttType |
notationType(List<String> names)
Deprecated.
[58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')'
|
protected List<String> |
notationTypeNames(List<String> names,
String name)
Deprecated.
|
protected List<String> |
notationTypeNames(String name)
Deprecated.
|
void |
parse(String officialSystemId)
Deprecated.
|
void |
parse(String publicId,
String officialSystemId)
Deprecated.
|
void |
parse(String publicId,
String officialSystemId,
String effectiveSystemId)
Deprecated.
|
protected Object |
peDef(String[] externalID)
Deprecated.
|
protected char |
quantifier()
Deprecated.
|
protected char |
quantifier(char cc)
Deprecated.
|
protected abstract char |
quantifierChar(char cc)
Deprecated.
|
protected String |
seq(String seqs)
Deprecated.
[50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')'
|
protected String |
seqs(String cp)
Deprecated.
|
protected String |
seqs(String seqs,
String cp)
Deprecated.
|
protected void |
sTag(QName name)
Deprecated.
[40] STag ::= '<' Name (S Attribute)* S? '>'
[12] STag ::= '<' QName (S Attribute)* S? '>'
|
protected AttType |
stringType()
Deprecated.
[55] StringType ::= 'CDATA'
|
protected abstract AttType |
tokenizedType(AttType attType)
Deprecated.
[56] TokenizedType ::= 'ID'
| 'IDREF'
| 'IDREFS'
| 'ENTITY'
| 'ENTITIES'
| 'NMTOKEN'
| 'NMTOKENS'
|
protected AttType |
tokenizedTypeEntities()
Deprecated.
|
protected AttType |
tokenizedTypeEntity()
Deprecated.
|
protected AttType |
tokenizedTypeId()
Deprecated.
|
protected AttType |
tokenizedTypeIdRef()
Deprecated.
|
protected AttType |
tokenizedTypeIdRefs()
Deprecated.
|
protected AttType |
tokenizedTypeNmToken()
Deprecated.
|
protected AttType |
tokenizedTypeNmTokens()
Deprecated.
|
conditionalSect, doctypedecl, doctypedeclContent, extParsedEntity, extSubset, extSubsetDecl, ignore, ignoreEnd, ignoreSect, ignoreSectContents, ignoreStart, includeSect, intSubset, markupdecl, prolog, textDeclaposAttValue, aposAttValue, aposAttValueStart, aposAttValueSub, aposEntityValue, aposEntityValue, aposEntityValueStart, aposEntityValueSub, attValue, byteOrderMark, cdSect, charData, charRef, charRefDecimal, charRefHex, comment, digit, document, emptyQuote, encName, encodingDecl, entityDecl, entityDef, entityDef, entityRef, entityValue, eol, eq, eTagName, externalID, externalID, geDecl, getEncoding, getPublicId, getSystemId, getXmlVersion, hex, misc, name, names, names, nDataDecl, nmtoken, nmtokens, nmtokens, notApos, notAposValue, notationDecl, notationDecl, notQuot, notQuotValue, nsAttName, optExternalID, optExternalID, parseAposAttValue, parseAposEntityValue, parseDocument, parseExtSubset, parseQuotAttValue, parseQuotEntityValue, peDecl, peDef, peReference, pi, pubidLiteral, pubidLiteralMinusApostrophe, pubidLiteralWithApostrophe, publicID, qName, quotAttValue, quotAttValue, quotAttValueStart, quotAttValueSub, quotEntityValue, quotEntityValue, quotEntityValueStart, quotEntityValueSub, reference, s, sdDecl, setExternal, setPublicId, setSystemId, setXmlVersion, singleApostrophe, singleQuot, sTagName, systemLiteral, utf16BE, utf16BEPrefix, utf16LE, utf16LEPrefix, utf32BE, utf32BEPrefix, utf32LE, utf32LEPrefix, utf8, utf8Prefix, version, versionInfo, versionNum, xmlDecl, xmlPrefix, yesNopublic static final char ELPRF
public static DTDParser createDTDParser() throws IOException
IOExceptionpublic void parse(String officialSystemId) throws IOException, SAXException, URISyntaxException
public void parse(String publicId, String officialSystemId) throws IOException, SAXException, URISyntaxException
public void parse(String publicId, String officialSystemId, String effectiveSystemId) throws IOException, SAXException, URISyntaxException
protected void doctypedeclStart(QName name, String[] externalID) throws SAXException, IOException
doctypedeclStart in class XMLDTDBaseGrammarSAXExceptionIOExceptionprotected void doctypedeclEnd()
throws SAXException
doctypedeclEnd in class XMLDTDBaseGrammarSAXExceptionprotected Object peDef(String[] externalID) throws SAXException, IOException
peDef in class XMLBaseGrammarSAXExceptionIOExceptionprotected abstract void element()
protected void sTag(QName name) throws SAXException
SAXExceptionprotected abstract void attributes()
protected void attribute(QName name, String value)
protected void attribute(String name, String uri) throws SAXException
SAXExceptionprotected void eTag(QName name) throws SAXException
SAXExceptionprotected abstract void content()
protected void content(String charData)
protected void emptyElemTag(QName name) throws SAXException
SAXExceptionprotected void elementdecl(QName name, String content)
protected String emptyContentspec()
protected String anyContentspec()
protected abstract char quantifierChar(char cc)
protected char quantifier()
protected char quantifier(char cc)
protected String children(String content, char quantifier)
protected String cp(QName name, char quantifier)
protected String choice(String choices)
protected String mixed()
protected String mixedNames()
protected void attlistDecl(QName name, List<AttDef> attDefs)
name - protected AttDef attDef(QName name, AttType attType, DefaultDecl defaultDecl)
name - protected AttDef attDef(String name, AttType attType, DefaultDecl defaultDecl)
protected abstract AttType attType(AttType attType)
protected AttType stringType()
protected abstract AttType tokenizedType(AttType attType)
protected AttType tokenizedTypeId()
protected AttType tokenizedTypeIdRef()
protected AttType tokenizedTypeIdRefs()
protected AttType tokenizedTypeEntity()
protected AttType tokenizedTypeEntities()
protected AttType tokenizedTypeNmToken()
protected AttType tokenizedTypeNmTokens()
protected abstract AttType enumeratedType(AttType attType)
protected AttType notationType(List<String> names)
name - protected List<String> notationTypeNames(List<String> names, String name)
protected AttType enumeration(List<String> names)
name - protected List<String> enumerationNMTokens(List<String> names, String name)
protected abstract DefaultDecl defaultDecl(DefaultDecl defaultDecl)
protected DefaultDecl defaultDeclRequired()
protected DefaultDecl defaultDeclImplied()
protected DefaultDecl defaultDeclFixed(String value)
protected DefaultDecl defaultDecl(String value)
public static List<Attribute> attributeListNext(List<Attribute> list, Attribute t)
public static void main(String[] args)
args - the command line argumentsCopyright © 2014. All rights reserved.