Class 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 Detail

      • _publicId

        private java.lang.String _publicId
      • _systemId

        private java.lang.String _systemId
      • _baseURI

        private java.lang.String _baseURI
      • _entityName

        private java.lang.String _entityName
      • _replacement

        private java.lang.String _replacement
      • _notationName

        private java.lang.String _notationName
    • Constructor Detail

      • EntityDeclarationImpl

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

        public EntityDeclarationImpl​(java.lang.String entityName,
                                     java.lang.String replacement)
    • Method Detail

      • getPublicId

        public java.lang.String getPublicId()
        The entity's public identifier, or null if none was given
        Specified by:
        getPublicId in interface javax.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:
        getSystemId in interface javax.xml.stream.events.EntityDeclaration
        Overrides:
        getSystemId in class EventBase
        Returns:
        the system ID for this declaration or null
      • getName

        public java.lang.String getName()
        The entity's name
        Specified by:
        getName in interface javax.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:
        getNotationName in interface javax.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:
        getReplacementText in interface javax.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:
        getBaseURI in interface javax.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()