Entity Class Reference

#include <Pt/Xml/Entity.h>

An entity declaration in a DTD.

Public Member Functions

 Entity (const Pt::String &name)
 Constructs with entity name.
 
const Pt::Stringname () const
 Returns the name of the entity.
 
bool isExternal () const
 Returns true if the entity in external.
 
bool isInternal () const
 Returns true if the entity in internal.
 
const Pt::Stringvalue () const
 Returns the value of the entity.
 
Pt::Stringvalue ()
 Returns the value of the entity.
 
void setValue (const Pt::String &val)
 Sets the value of the entity.
 
const Pt::StringpublicId () const
 Returns the public ID of the entity.
 
void setPublicId (const Pt::String &pubId)
 Sets the public ID of the entity.
 
const Pt::StringsystemId () const
 Returns the system ID of the entity.
 
void setSystemId (const Pt::String &sysId)
 Sets the system ID of the entity.
 
bool isUnparsed () const
 Indicates if the entity is unparsed (NDATA).
 
void setUnparsed (const Pt::String &notation)
 Sets the notation of an unparsed entity (NDATA).
 
const Pt::StringnotationName () const
 Returns the name of the notation.