org.exolab.castor.xml.dtd
Class Notation

java.lang.Object
  extended by org.exolab.castor.xml.dtd.Notation

public class Notation
extends java.lang.Object

Implementation of DTD Notation declaration specification.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:20 $
Author:
Alexander Totok

Constructor Summary
Notation(DTDdocument document, java.lang.String name)
          Constructor, setting name and owning DTD document of the notation.
 
Method Summary
 DTDdocument getDocument()
          Returns DTD document owning this notation.
 java.lang.String getName()
          Returns the name of the notation.
 java.lang.String getPubIdentifier()
          Returns public identifier.
 java.lang.String getSysIdentifier()
          Returns system identifier.
 boolean isPublic()
          True if PUBLIC notation, false otherwise.
 boolean isSystem()
          True if SYSTEM notation, false otherwise.
 void setPublic(java.lang.String pubId, java.lang.String sysId)
          Sets the notation to PUBLIC.
 void setSystem(java.lang.String sysId)
          Sets the notation to SYSTEM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notation

public Notation(DTDdocument document,
                java.lang.String name)
Constructor, setting name and owning DTD document of the notation.

Parameters:
document - must not be null.
name - must not be null or equal to empty String.
Method Detail

getName

public java.lang.String getName()
Returns the name of the notation.


getDocument

public DTDdocument getDocument()
Returns DTD document owning this notation.


setPublic

public void setPublic(java.lang.String pubId,
                      java.lang.String sysId)
Sets the notation to PUBLIC.

Parameters:
pubId - public identifier - must not be null.
sysId - system identifier - must not be null.

isPublic

public boolean isPublic()
True if PUBLIC notation, false otherwise.


setSystem

public void setSystem(java.lang.String sysId)
Sets the notation to SYSTEM.

Parameters:
sysId - system identifier - must not be null.

isSystem

public boolean isSystem()
True if SYSTEM notation, false otherwise.


getPubIdentifier

public java.lang.String getPubIdentifier()
Returns public identifier.


getSysIdentifier

public java.lang.String getSysIdentifier()
Returns system identifier.



Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com