Top Fields Constructors Methods
com.sun.xml.fastinfoset.stax.events

public Class EntityDeclarationImpl

extends EventBase
implements EntityDeclaration
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.EntityDeclaration, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
javax.xml.stream.events.EntityDeclaration

Field Summary

Modifier and TypeField and Description
private String
private String
private String
private String
private String
private String
Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
_eventType_location

Constructor Summary

AccessConstructor and Description
public
EntityDeclarationImpl()

Creates a new instance of EntityDeclarationImpl

public
EntityDeclarationImpl(String entityName, String replacement)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the base URI or null
getBaseURI
()

Implements javax.xml.stream.events.EntityDeclaration.getBaseURI.

Get the base URI for this reference or null if this information is not available

public String

Returns:

the name, may not be null
getName
()

Implements javax.xml.stream.events.EntityDeclaration.getName.

The entity's name

public String

Returns:

the notation name
getNotationName
()

Implements javax.xml.stream.events.EntityDeclaration.getNotationName.

The name of the associated notation.

public String

Returns:

the public ID for this declaration or null
getPublicId
()

Implements javax.xml.stream.events.EntityDeclaration.getPublicId.

The entity's public identifier, or null if none was given

public String

Returns:

null or the replacment text
getReplacementText
()

Implements javax.xml.stream.events.EntityDeclaration.getReplacementText.

The replacement text of the entity.

public String

Returns:

the system ID for this declaration or null
getSystemId
()

Overrides com.sun.xml.fastinfoset.stax.events.EventBase.getSystemId.

Implements javax.xml.stream.events.EntityDeclaration.getSystemId.

The entity's system identifier.

protected void
init()

public void
setBaseURI(String baseURI)

public void
setName(String entityName)

public void
setNotationName(String notationName)

public void
setPublicId(String publicId)

public void
public void
setSystemId(String systemId)

Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypeisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementsetEventTypesetLocationwriteAsEncodedUnicode

Field Detail

_baseURIback to summary
private String _baseURI
_entityNameback to summary
private String _entityName
_notationNameback to summary
private String _notationName
_publicIdback to summary
private String _publicId
_replacementback to summary
private String _replacement
_systemIdback to summary
private String _systemId

Constructor Detail

EntityDeclarationImplback to summary
public EntityDeclarationImpl()

Creates a new instance of EntityDeclarationImpl

Annotations
@SuppressWarnings:this-escape
EntityDeclarationImplback to summary
public EntityDeclarationImpl(String entityName, String replacement)

Method Detail

getBaseURIback to summary
public String getBaseURI()

Implements javax.xml.stream.events.EntityDeclaration.getBaseURI.

Get the base URI for this reference or null if this information is not available

Returns:String

the base URI or null

Annotations
@Override
getNameback to summary
public String getName()

Implements javax.xml.stream.events.EntityDeclaration.getName.

The entity's name

Returns:String

the name, may not be null

Annotations
@Override
getNotationNameback to summary
public String getNotationName()

Implements javax.xml.stream.events.EntityDeclaration.getNotationName.

The name of the associated notation.

Returns:String

the notation name

Annotations
@Override
getPublicIdback to summary
public String getPublicId()

Implements javax.xml.stream.events.EntityDeclaration.getPublicId.

The entity's public identifier, or null if none was given

Returns:String

the public ID for this declaration or null

Annotations
@Override
getReplacementTextback to summary
public String getReplacementText()

Implements javax.xml.stream.events.EntityDeclaration.getReplacementText.

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

Returns:String

null or the replacment text

Annotations
@Override
getSystemIdback to summary
public String getSystemId()

Overrides com.sun.xml.fastinfoset.stax.events.EventBase.getSystemId.

Implements javax.xml.stream.events.EntityDeclaration.getSystemId.

The entity's system identifier.

Returns:String

the system ID for this declaration or null

Annotations
@Override
initback to summary
protected void init()
setBaseURIback to summary
public void setBaseURI(String baseURI)
setNameback to summary
public void setName(String entityName)
setNotationNameback to summary
public void setNotationName(String notationName)
setPublicIdback to summary
public void setPublicId(String publicId)
setReplacementTextback to summary
public void setReplacementText(String replacement)
setSystemIdback to summary
public void setSystemId(String systemId)