org.merlotxml.util.xml
Class DTDCacheEntry

java.lang.Object
  extended byorg.merlotxml.util.xml.DTDCacheEntry
All Implemented Interfaces:
java.lang.Comparable
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)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 char[] getCachedDTDStream()
           
 java.lang.String getFilePath()
           
 DTDDocument getParsedDTD()
           
 java.util.List getPossibleRootNames()
           
 java.lang.String getPublicId()
           
 java.lang.String getSystemId()
           
 long getTimestamp()
           
 void setCachedDTDStream(char[] s)
           
 void setFilePath(java.lang.String s)
           
 void setParsedDTD(DTDDocument parsedDTD)
           
 void setPublicId(java.lang.String s)
           
 void setSystemId(java.lang.String s)
           
 void setTimestamp(long t)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_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

Constructor Detail

DTDCacheEntry

public DTDCacheEntry(java.lang.String publicId,
                     java.lang.String systemId)
Method Detail

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()

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
Throws:
java.lang.ClassCastException