Class EntityReferenceEvent

  • All Implemented Interfaces:
    javax.xml.stream.events.EntityReference, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants

    public class EntityReferenceEvent
    extends EventBase
    implements javax.xml.stream.events.EntityReference
    • Field Detail

      • _entityDeclaration

        private javax.xml.stream.events.EntityDeclaration _entityDeclaration
      • _entityName

        private java.lang.String _entityName
    • Constructor Detail

      • EntityReferenceEvent

        public EntityReferenceEvent()
      • EntityReferenceEvent

        public EntityReferenceEvent​(java.lang.String entityName,
                                    javax.xml.stream.events.EntityDeclaration entityDeclaration)
    • Method Detail

      • getName

        public java.lang.String getName()
        The name of the entity
        Specified by:
        getName in interface javax.xml.stream.events.EntityReference
        Returns:
        the entity's name, may not be null
      • getDeclaration

        public javax.xml.stream.events.EntityDeclaration getDeclaration()
        Return the declaration of this entity.
        Specified by:
        getDeclaration in interface javax.xml.stream.events.EntityReference
      • setName

        public void setName​(java.lang.String name)
      • setDeclaration

        public void setDeclaration​(javax.xml.stream.events.EntityDeclaration declaration)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • init

        protected void init()