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:
EntityDeclaration
,XMLEvent
,XMLStreamConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private String
private String
private String
private String
private String
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
ConstructorsConstructorDescriptionCreates a new instance of EntityDeclarationImplEntityDeclarationImpl
(String entityName, String replacement) -
Method Summary
Modifier and TypeMethodDescriptionGet the base URI for this reference or null if this information is not availablegetName()
The entity's nameThe name of the associated notation.The entity's public identifier, or null if none was givenThe replacement text of the entity.The entity's system identifier.protected void
init()
void
setBaseURI
(String baseURI) void
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
-
Field Details
-
_publicId
-
_systemId
-
_baseURI
-
_entityName
-
_replacement
-
_notationName
-
-
Constructor Details
-
EntityDeclarationImpl
public EntityDeclarationImpl()Creates a new instance of EntityDeclarationImpl -
EntityDeclarationImpl
-
-
Method Details
-
getPublicId
The entity's public identifier, or null if none was given- Specified by:
getPublicId
in interfaceEntityDeclaration
- Returns:
- the public ID for this declaration or null
-
getSystemId
The entity's system identifier.- Specified by:
getSystemId
in interfaceEntityDeclaration
- Overrides:
getSystemId
in classEventBase
- Returns:
- the system ID for this declaration or null
-
getName
The entity's name- Specified by:
getName
in interfaceEntityDeclaration
- Returns:
- the name, may not be null
-
getNotationName
The name of the associated notation.- Specified by:
getNotationName
in interfaceEntityDeclaration
- Returns:
- the notation name
-
getReplacementText
The replacement text of the entity. This method will only return non-null if this is an internal entity.- Specified by:
getReplacementText
in interfaceEntityDeclaration
- Returns:
- null or the replacment text
-
getBaseURI
Get the base URI for this reference or null if this information is not available- Specified by:
getBaseURI
in interfaceEntityDeclaration
- Returns:
- the base URI or null
-
setPublicId
-
setSystemId
-
setBaseURI
-
setName
-
setReplacementText
-
setNotationName
-
init
protected void init()
-