org.merlotxml.util.xml
Class DTDCacheEntry
java.lang.Object
|
+--org.merlotxml.util.xml.DTDCacheEntry
- Direct Known Subclasses:
- PluginDTDCacheEntry
- public class DTDCacheEntry
- extends java.lang.Object
- implements java.lang.Comparable
This contains information we need to keep with a dtd that has been
cached.
- Author:
- Kelly A. Campbell
Field Summary |
protected char[] |
_cachedDTDStream
cached char array of the dtd stream |
protected java.lang.String |
_filePath
Path to the file containing the DTD... |
protected DTDDocument |
_parsedDTD
a parsed version of the dtd |
protected java.lang.String |
_publicId
The publicId |
protected java.lang.String |
_rootElement
Root element for this particular entry |
protected java.lang.String |
_systemId
optional system id |
protected long |
_timestamp
last modification time of the file the dtd was loaded from. |
Constructor Summary |
DTDCacheEntry(java.lang.String publicId,
java.lang.String systemId)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
_publicId
protected java.lang.String _publicId
- The publicId
_systemId
protected java.lang.String _systemId
- optional system id
_rootElement
protected java.lang.String _rootElement
- Root element for this particular entry
_filePath
protected java.lang.String _filePath
- Path to the file containing the DTD... can be a system path, a url,
or a path into a jar, including a ! if the file
_timestamp
protected long _timestamp
- last modification time of the file the dtd was loaded from. if this is 0, then we cache
the file indefinitely, and never check back with the source
_cachedDTDStream
protected char[] _cachedDTDStream
- cached char array of the dtd stream
_parsedDTD
protected DTDDocument _parsedDTD
- a parsed version of the dtd
DTDCacheEntry
public DTDCacheEntry(java.lang.String publicId,
java.lang.String systemId)
setPublicId
public void setPublicId(java.lang.String s)
setSystemId
public void setSystemId(java.lang.String s)
getPublicId
public java.lang.String getPublicId()
getSystemId
public java.lang.String getSystemId()
setFilePath
public void setFilePath(java.lang.String s)
getFilePath
public java.lang.String getFilePath()
setTimestamp
public void setTimestamp(long t)
getTimestamp
public long getTimestamp()
setCachedDTDStream
public void setCachedDTDStream(char[] s)
getCachedDTDStream
public char[] getCachedDTDStream()
setParsedDTD
public void setParsedDTD(DTDDocument parsedDTD)
getParsedDTD
public DTDDocument getParsedDTD()
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
getPossibleRootNames
public java.util.List getPossibleRootNames()
compareTo
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
- Specified by:
- compareTo in interface java.lang.Comparable