com.ctc.wstx.dtd
Class DTDId

java.lang.Object
  extended by com.ctc.wstx.dtd.DTDId

public final class DTDId
extends Object

Simple key object class, used for accessing (external) DTDs when stored for caching. Main idea is that the primary id of a DTD (public or system id; latter normalized if possible) has to match, as well as couple of on/off settings for parsing (namespace support, text normalization). Latter restriction is needed since although DTDs do not deal with (or understand) namespaces, some parsing is done to be able to validate namespace aware/non-aware documents, and handling differs between the two. As to primary key part, public id is used if one was defined; if so, comparison is String equality. If not, then system id is compared: system id has to be expressed as URL if so.


Field Summary
protected  int mConfigFlags
           
protected  int mHashCode
           
protected  String mPublicId
           
protected  URI mSystemId
           
protected  boolean mXml11
           
 
Method Summary
static DTDId construct(String publicId, URI systemId, int configFlags, boolean xml11)
           
static DTDId constructFromPublicId(String publicId, int configFlags, boolean xml11)
           
static DTDId constructFromSystemId(URI systemId, int configFlags, boolean xml11)
           
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mPublicId

protected final String mPublicId

mSystemId

protected final URI mSystemId

mConfigFlags

protected final int mConfigFlags

mXml11

protected final boolean mXml11

mHashCode

protected int mHashCode
Method Detail

constructFromPublicId

public static DTDId constructFromPublicId(String publicId,
                                          int configFlags,
                                          boolean xml11)

constructFromSystemId

public static DTDId constructFromSystemId(URI systemId,
                                          int configFlags,
                                          boolean xml11)

construct

public static DTDId construct(String publicId,
                              URI systemId,
                              int configFlags,
                              boolean xml11)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object