com.sun.xml.fastinfoset.stax.events
Class EntityDeclarationImpl

java.lang.Object
  extended by com.sun.xml.fastinfoset.stax.events.EventBase
      extended by com.sun.xml.fastinfoset.stax.events.EntityDeclarationImpl
All Implemented Interfaces:
EntityDeclaration, XMLEvent, XMLStreamConstants

public class EntityDeclarationImpl
extends EventBase
implements EntityDeclaration


Field Summary
 
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Constructor Summary
EntityDeclarationImpl()
          Creates a new instance of EntityDeclarationImpl
EntityDeclarationImpl(String entityName, String replacement)
           
 
Method Summary
 String getBaseURI()
          Get the base URI for this reference or null if this information is not available
 String getName()
          The entity's name
 String getNotationName()
          The name of the associated notation.
 String getPublicId()
          The entity's public identifier, or null if none was given
 String getReplacementText()
          The replacement text of the entity.
 String getSystemId()
          The entity's system identifier.
protected  void init()
           
 void setBaseURI(String baseURI)
           
 void setName(String entityName)
           
 void setNotationName(String notationName)
           
 void setPublicId(String publicId)
           
 void setReplacementText(String replacement)
           
 void setSystemId(String systemId)
           
 
Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Constructor Detail

EntityDeclarationImpl

public EntityDeclarationImpl()
Creates a new instance of EntityDeclarationImpl


EntityDeclarationImpl

public EntityDeclarationImpl(String entityName,
                             String replacement)
Method Detail

getPublicId

public String getPublicId()
The entity's public identifier, or null if none was given

Specified by:
getPublicId in interface EntityDeclaration
Returns:
the public ID for this declaration or null

getSystemId

public String getSystemId()
The entity's system identifier.

Specified by:
getSystemId in interface EntityDeclaration
Overrides:
getSystemId in class EventBase
Returns:
the system ID for this declaration or null

getName

public String getName()
The entity's name

Specified by:
getName in interface EntityDeclaration
Returns:
the name, may not be null

getNotationName

public String getNotationName()
The name of the associated notation.

Specified by:
getNotationName in interface EntityDeclaration
Returns:
the notation name

getReplacementText

public String getReplacementText()
The replacement text of the entity. This method will only return non-null if this is an internal entity.

Specified by:
getReplacementText in interface EntityDeclaration
Returns:
null or the replacment text

getBaseURI

public String getBaseURI()
Get the base URI for this reference or null if this information is not available

Specified by:
getBaseURI in interface EntityDeclaration
Returns:
the base URI or null

setPublicId

public void setPublicId(String publicId)

setSystemId

public void setSystemId(String systemId)

setBaseURI

public void setBaseURI(String baseURI)

setName

public void setName(String entityName)

setReplacementText

public void setReplacementText(String replacement)

setNotationName

public void setNotationName(String notationName)

init

protected void init()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.