org.exolab.castor.xml.dtd

Class Notation

public class Notation extends 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, String name)
Constructor, setting name and owning DTD document of the notation.
Method Summary
DTDdocumentgetDocument()
Returns DTD document owning this notation.
StringgetName()
Returns the name of the notation.
StringgetPubIdentifier()
Returns public identifier.
StringgetSysIdentifier()
Returns system identifier.
booleanisPublic()
True if PUBLIC notation, false otherwise.
booleanisSystem()
True if SYSTEM notation, false otherwise.
voidsetPublic(String pubId, String sysId)
Sets the notation to PUBLIC.
voidsetSystem(String sysId)
Sets the notation to SYSTEM.

Constructor Detail

Notation

public Notation(DTDdocument document, 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

getDocument

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

getName

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

getPubIdentifier

public String getPubIdentifier()
Returns public identifier.

getSysIdentifier

public String getSysIdentifier()
Returns system identifier.

isPublic

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

isSystem

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

setPublic

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

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

setSystem

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

Parameters: sysId system identifier - must not be null.

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