public class XMLDTDDescription extends XMLResourceIdentifierImpl implements XMLDTDDescription
Modifier and Type | Field and Description |
---|---|
protected Vector |
fPossibleRoots |
protected String |
fRootName |
fBaseSystemId, fExpandedSystemId, fLiteralSystemId, fNamespace, fPublicId
XML_DTD, XML_SCHEMA
Constructor and Description |
---|
XMLDTDDescription(String publicId,
String literalId,
String baseId,
String expandedId,
String rootName) |
XMLDTDDescription(XMLInputSource source) |
XMLDTDDescription(XMLResourceIdentifier id,
String rootName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object desc)
Compares this grammar with the given grammar.
|
String |
getGrammarType()
Return the type of this grammar.
|
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(Vector possibleRoots)
Set possible roots
|
void |
setRootName(String rootName)
Set the root name
|
clear, getBaseSystemId, getExpandedSystemId, getLiteralSystemId, getNamespace, getPublicId, setBaseSystemId, setExpandedSystemId, setLiteralSystemId, setNamespace, setPublicId, setValues, setValues, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBaseSystemId, getExpandedSystemId, getLiteralSystemId, getNamespace, getPublicId, setBaseSystemId, setExpandedSystemId, setLiteralSystemId, setNamespace, setPublicId
public XMLDTDDescription(XMLResourceIdentifier id, String rootName)
public XMLDTDDescription(String publicId, String literalId, String baseId, String expandedId, String rootName)
public XMLDTDDescription(XMLInputSource source)
public String getGrammarType()
XMLGrammarDescription
getGrammarType
in interface XMLGrammarDescription
public String getRootName()
XMLDTDDescription
getRootName
in interface XMLDTDDescription
public void setRootName(String rootName)
public void setPossibleRoots(Vector possibleRoots)
public boolean equals(Object desc)
public int hashCode()
hashCode
in class XMLResourceIdentifierImpl
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.