org.exolab.castor.xml.dtd

Class 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, String name)
Constructor, setting name and owning DTD document of the notation.

Method Summary

DTDdocument
getDocument()
Returns DTD document owning this notation.
String
getName()
Returns the name of the notation.
String
getPubIdentifier()
Returns public identifier.
String
getSysIdentifier()
Returns system identifier.
boolean
isPublic()
True if PUBLIC notation, false otherwise.
boolean
isSystem()
True if SYSTEM notation, false otherwise.
void
setPublic(String pubId, String sysId)
Sets the notation to PUBLIC.
void
setSystem(String sysId)
Sets the notation to SYSTEM.

Constructor Details

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 Details

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-2003. All rights reserved http://www.intalio.com