Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.thermidor.xml
Class DTD  view DTD download DTD.java

java.lang.Object
  extended bycom.thermidor.xml.DTD

public class DTD
extends java.lang.Object

The DTD class is a utility data struct that is used to maintain a relationship between a DTDs public identifier and a java resource identifier. To facilitate the loading and caching of DTD data from the classpath.


Field Summary
private  java.lang.String docType
          The DocType Name
private  java.lang.String publicId
          The publicId attribute maintains the unique public identifier for the DTD in question.
private  java.lang.String systemId
          The system id of the DTD class generally contains a java resource identifier, allowing the DTD to be loaded from the classpath of the distribution.
 
Constructor Summary
DTD()
          Construct a default instance of the DTD class.
DTD(java.lang.String publicId, java.lang.String systemId)
          Construct a new instance of the DTD class with the specified PUBLIC id and resource identifier.
DTD(java.lang.String publicId, java.lang.String systemId, java.lang.String docType)
          Construct a new instance of the DTD class with the specified PUBLIC id and resource identifier.
 
Method Summary
 java.lang.String getPublicId()
          Retreive the public identtifier part of the DTD
 java.lang.String getSystemId()
          Retrieve the java resource identifier that will be used to load the DTD from the classpath.
 java.lang.String toString()
          Returns a String representation of the dtd.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

publicId

private java.lang.String publicId
The publicId attribute maintains the unique public identifier for the DTD in question.


systemId

private java.lang.String systemId
The system id of the DTD class generally contains a java resource identifier, allowing the DTD to be loaded from the classpath of the distribution.


docType

private java.lang.String docType
The DocType Name

Constructor Detail

DTD

public DTD()
Construct a default instance of the DTD class.


DTD

public DTD(java.lang.String publicId,
           java.lang.String systemId)
Construct a new instance of the DTD class with the specified PUBLIC id and resource identifier.


DTD

public DTD(java.lang.String publicId,
           java.lang.String systemId,
           java.lang.String docType)
Construct a new instance of the DTD class with the specified PUBLIC id and resource identifier.

Method Detail

getPublicId

public java.lang.String getPublicId()
Retreive the public identtifier part of the DTD


getSystemId

public java.lang.String getSystemId()
Retrieve the java resource identifier that will be used to load the DTD from the classpath.


toString

public java.lang.String toString()
Returns a String representation of the dtd.