Class XmlEventBase

  • All Implemented Interfaces:
    XMLEvent

    public abstract class XmlEventBase
    extends java.lang.Object
    implements XMLEvent
    Abstract base class which implements the type part XMLEvent.
    • Constructor Detail

      • XmlEventBase

        public XmlEventBase()
      • XmlEventBase

        public XmlEventBase​(int type)
    • Method Detail

      • setType

        public void setType​(int type)
      • getType

        public int getType()
        Description copied from interface: XMLEvent
        Get the event type of the current element, returns an integer so that switch statements can be written on the result
        Specified by:
        getType in interface XMLEvent
      • getTypeAsString

        public java.lang.String getTypeAsString()
        Description copied from interface: XMLEvent
        Get the string value of the type name
        Specified by:
        getTypeAsString in interface XMLEvent
      • isStartElement

        public boolean isStartElement()
        Description copied from interface: XMLEvent
        Method access to the elements type
        Specified by:
        isStartElement in interface XMLEvent
      • isSpace

        public boolean isSpace()
        Specified by:
        isSpace in interface XMLEvent
      • isNull

        public boolean isNull()
        Specified by:
        isNull in interface XMLEvent