org.apache.cocoon.components.serializers.util
Class DocType

java.lang.Object
  extended byorg.apache.cocoon.components.serializers.util.DocType
Direct Known Subclasses:
SGMLDocType

public class DocType
extends Object

The DocType class encapsulates informations regarding the document type public and system IDs and root element name.

Version:
CVS $Id: DocType.java 123620 2004-12-29 10:32:54Z antonio $
Author:
Pier Fumagalli, February 2003

Field Summary
protected  String public_id
          The configured system identifier.
protected  String root_name
          The name of the root element.
protected  String system_id
          The configured public identifier.
 
Constructor Summary
DocType(String root_name)
          Create a new DocType instance.
DocType(String root_name, String system_id)
          Create a new DocType instance.
DocType(String root_name, String public_id, String system_id)
          Create a new DocType instance.
 
Method Summary
 boolean equals(Object object)
          Check if the specified object is equal to this DocType instance.
 String getName()
          Return the document root element name.
 String getPublicId()
          Return the document type public identifier or null if none configured..
 String getSystemId()
          Return the document type system identifier or null if none configured..
 String toString()
          Return the document type declaration as a string
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

root_name

protected String root_name
The name of the root element.


public_id

protected String public_id
The configured system identifier.


system_id

protected String system_id
The configured public identifier.

Constructor Detail

DocType

public DocType(String root_name)
Create a new DocType instance.

Parameters:
root_name - The document root element name.

DocType

public DocType(String root_name,
               String system_id)
Create a new DocType instance.

Parameters:
root_name - The document root element name.
system_id - The document type system identifier.

DocType

public DocType(String root_name,
               String public_id,
               String system_id)
Create a new DocType instance.

Parameters:
root_name - The document root element name.
public_id - The document type public identifier.
system_id - The document type system identifier.
Method Detail

getName

public String getName()
Return the document root element name.


getPublicId

public String getPublicId()
Return the document type public identifier or null if none configured..


getSystemId

public String getSystemId()
Return the document type system identifier or null if none configured..


toString

public String toString()
Return the document type declaration as a string


equals

public boolean equals(Object object)
Check if the specified object is equal to this DocType instance.



Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.