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

public class EntityDeclarationImpl extends EventBase implements EntityDeclaration
  • Field Details

    • _publicId

      private String _publicId
    • _systemId

      private String _systemId
    • _baseURI

      private String _baseURI
    • _entityName

      private String _entityName
    • _replacement

      private String _replacement
    • _notationName

      private String _notationName
  • Constructor Details

    • EntityDeclarationImpl

      public EntityDeclarationImpl()
      Creates a new instance of EntityDeclarationImpl
    • EntityDeclarationImpl

      public EntityDeclarationImpl(String entityName, String replacement)
  • Method Details

    • 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()