public class XMLDTDDescription extends XMLResourceIdentifierImpl implements org.apache.xerces.xni.grammars.XMLDTDDescription
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList |
fPossibleRoots |
protected java.lang.String |
fRootName |
fBaseSystemId, fExpandedSystemId, fLiteralSystemId, fNamespace, fPublicId
Constructor and Description |
---|
XMLDTDDescription(java.lang.String publicId,
java.lang.String literalId,
java.lang.String baseId,
java.lang.String expandedId,
java.lang.String rootName) |
XMLDTDDescription(org.apache.xerces.xni.parser.XMLInputSource source) |
XMLDTDDescription(org.apache.xerces.xni.XMLResourceIdentifier id,
java.lang.String rootName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object desc)
Compares this grammar with the given grammar.
|
java.lang.String |
getGrammarType()
Return the type of this grammar.
|
java.lang.String |
getRootName()
Return the root name of this DTD.
|
int |
hashCode()
Returns the hash code of this grammar
Because our .equals method is so complex, we just return a very
simple hash that might avoid calls to the equals method a bit...
|
void |
setPossibleRoots(java.util.ArrayList possibleRoots)
Set possible roots
|
void |
setPossibleRoots(java.util.Vector possibleRoots)
Set possible roots
|
void |
setRootName(java.lang.String rootName)
Set the root name
|
clear, getBaseSystemId, getExpandedSystemId, getLiteralSystemId, getNamespace, getPublicId, setBaseSystemId, setExpandedSystemId, setLiteralSystemId, setNamespace, setPublicId, setValues, setValues, toString
protected java.lang.String fRootName
protected java.util.ArrayList fPossibleRoots
public XMLDTDDescription(org.apache.xerces.xni.XMLResourceIdentifier id, java.lang.String rootName)
public XMLDTDDescription(java.lang.String publicId, java.lang.String literalId, java.lang.String baseId, java.lang.String expandedId, java.lang.String rootName)
public XMLDTDDescription(org.apache.xerces.xni.parser.XMLInputSource source)
public java.lang.String getGrammarType()
org.apache.xerces.xni.grammars.XMLGrammarDescription
getGrammarType
in interface org.apache.xerces.xni.grammars.XMLGrammarDescription
public java.lang.String getRootName()
org.apache.xerces.xni.grammars.XMLDTDDescription
getRootName
in interface org.apache.xerces.xni.grammars.XMLDTDDescription
public void setRootName(java.lang.String rootName)
public void setPossibleRoots(java.util.ArrayList possibleRoots)
public void setPossibleRoots(java.util.Vector possibleRoots)
public boolean equals(java.lang.Object desc)
equals
in class java.lang.Object
desc
- The description of the grammar to be compared withpublic int hashCode()
hashCode
in class XMLResourceIdentifierImpl
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.