Module com.sun.xml.fastinfoset
Class EntityDeclarationImpl
- java.lang.Object
-
- com.sun.xml.fastinfoset.stax.events.EventBase
-
- com.sun.xml.fastinfoset.stax.events.EntityDeclarationImpl
-
- All Implemented Interfaces:
javax.xml.stream.events.EntityDeclaration,javax.xml.stream.events.XMLEvent,javax.xml.stream.XMLStreamConstants
public class EntityDeclarationImpl extends EventBase implements javax.xml.stream.events.EntityDeclaration
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String_baseURIprivate java.lang.String_entityNameprivate java.lang.String_notationNameprivate java.lang.String_publicIdprivate java.lang.String_replacementprivate java.lang.String_systemId-
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
-
-
Constructor Summary
Constructors Constructor Description EntityDeclarationImpl()Creates a new instance of EntityDeclarationImplEntityDeclarationImpl(java.lang.String entityName, java.lang.String replacement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseURI()Get the base URI for this reference or null if this information is not availablejava.lang.StringgetName()The entity's namejava.lang.StringgetNotationName()The name of the associated notation.java.lang.StringgetPublicId()The entity's public identifier, or null if none was givenjava.lang.StringgetReplacementText()The replacement text of the entity.java.lang.StringgetSystemId()The entity's system identifier.protected voidinit()voidsetBaseURI(java.lang.String baseURI)voidsetName(java.lang.String entityName)voidsetNotationName(java.lang.String notationName)voidsetPublicId(java.lang.String publicId)voidsetReplacementText(java.lang.String replacement)voidsetSystemId(java.lang.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
-
-
-
-
Method Detail
-
getPublicId
public java.lang.String getPublicId()
The entity's public identifier, or null if none was given- Specified by:
getPublicIdin interfacejavax.xml.stream.events.EntityDeclaration- Returns:
- the public ID for this declaration or null
-
getSystemId
public java.lang.String getSystemId()
The entity's system identifier.- Specified by:
getSystemIdin interfacejavax.xml.stream.events.EntityDeclaration- Overrides:
getSystemIdin classEventBase- Returns:
- the system ID for this declaration or null
-
getName
public java.lang.String getName()
The entity's name- Specified by:
getNamein interfacejavax.xml.stream.events.EntityDeclaration- Returns:
- the name, may not be null
-
getNotationName
public java.lang.String getNotationName()
The name of the associated notation.- Specified by:
getNotationNamein interfacejavax.xml.stream.events.EntityDeclaration- Returns:
- the notation name
-
getReplacementText
public java.lang.String getReplacementText()
The replacement text of the entity. This method will only return non-null if this is an internal entity.- Specified by:
getReplacementTextin interfacejavax.xml.stream.events.EntityDeclaration- Returns:
- null or the replacment text
-
getBaseURI
public java.lang.String getBaseURI()
Get the base URI for this reference or null if this information is not available- Specified by:
getBaseURIin interfacejavax.xml.stream.events.EntityDeclaration- Returns:
- the base URI or null
-
setPublicId
public void setPublicId(java.lang.String publicId)
-
setSystemId
public void setSystemId(java.lang.String systemId)
-
setBaseURI
public void setBaseURI(java.lang.String baseURI)
-
setName
public void setName(java.lang.String entityName)
-
setReplacementText
public void setReplacementText(java.lang.String replacement)
-
setNotationName
public void setNotationName(java.lang.String notationName)
-
init
protected void init()
-
-