BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.apache.xerces.impl.dtd
Class XMLDTDDescription

java.lang.Object
  |
  +--weblogic.apache.xerces.util.XMLResourceIdentifierImpl
        |
        +--weblogic.apache.xerces.impl.dtd.XMLDTDDescription

public class XMLDTDDescription
extends XMLResourceIdentifierImpl
implements XMLGrammarDescription


Field Summary
protected  java.util.Vector fPossibleRoots
           
protected  java.lang.String fRootName
           
 
Fields inherited from class weblogic.apache.xerces.util.XMLResourceIdentifierImpl
fBaseSystemId, fExpandedSystemId, fLiteralSystemId, fPublicId
 
Constructor Summary
XMLDTDDescription(java.lang.String publicId, java.lang.String literalId, java.lang.String baseId, java.lang.String expandedId, java.lang.String rootName)
           
XMLDTDDescription(XMLInputSource source)
           
XMLDTDDescription(XMLResourceIdentifier id, java.lang.String rootName)
           
 
Method Summary
 boolean equals(java.lang.Object desc)
          Compares this grammar with the given grammar.
 java.lang.String getGrammarType()
           
 java.lang.String getRootName()
           
 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.Vector possibleRoots)
           
 void setRootName(java.lang.String rootName)
           
 
Methods inherited from class weblogic.apache.xerces.util.XMLResourceIdentifierImpl
clear, getBaseSystemId, getExpandedSystemId, getLiteralSystemId, getPublicId, setBaseSystemId, setExpandedSystemId, setLiteralSystemId, setPublicId, setValues, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fRootName

protected java.lang.String fRootName

fPossibleRoots

protected java.util.Vector fPossibleRoots
Constructor Detail

XMLDTDDescription

public XMLDTDDescription(XMLResourceIdentifier id,
                         java.lang.String rootName)

XMLDTDDescription

public XMLDTDDescription(java.lang.String publicId,
                         java.lang.String literalId,
                         java.lang.String baseId,
                         java.lang.String expandedId,
                         java.lang.String rootName)

XMLDTDDescription

public XMLDTDDescription(XMLInputSource source)
Method Detail

getGrammarType

public java.lang.String getGrammarType()
Specified by:
getGrammarType in interface XMLGrammarDescription


getRootName

public java.lang.String getRootName()


setRootName

public void setRootName(java.lang.String rootName)


setPossibleRoots

public void setPossibleRoots(java.util.Vector possibleRoots)


equals

public boolean equals(java.lang.Object desc)
Compares this grammar with the given grammar. Currently, we compare as follows: - if grammar type not equal return false immediately - try and find a common root name: - if both have roots, use them - else if one has a root, examine other's possible root's for a match; - else try all combinations - test fExpandedSystemId and fPublicId as above

Parameters:
desc - The description of the grammar to be compared with
Returns:
True if they are equal, else false
Overrides:
equals in class java.lang.Object

hashCode

public 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...

Returns:
The hash code
Overrides:
hashCode in class XMLResourceIdentifierImpl

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b