Class CharactersEvent

    • Constructor Detail

      • CharactersEvent

        public CharactersEvent()
      • CharactersEvent

        public CharactersEvent​(String data)
        Parameters:
        data - Character Data.
      • CharactersEvent

        public CharactersEvent​(String data,
                               boolean isCData)
        Parameters:
        data - Character Data.
        isCData - true if is CData
    • Method Detail

      • getData

        public String getData()
        Get the character data of this event
        Specified by:
        getData in interface Characters
      • setData

        public void setData​(String data)
      • isCData

        public boolean isCData()
        Specified by:
        isCData in interface Characters
        Returns:
        boolean returns true if the data is CData
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        String return the String representation of this event.
      • isIgnorableWhiteSpace

        public boolean isIgnorableWhiteSpace()
        Return true if this is ignorableWhiteSpace. If this event is ignorableWhiteSpace its event type will be SPACE.
        Specified by:
        isIgnorableWhiteSpace in interface Characters
        Returns:
        boolean true if this is ignorableWhiteSpace.
      • isWhiteSpace

        public boolean isWhiteSpace()
        Returns true if this set of Characters are all whitespace. Whitspace inside a document is reported as CHARACTERS. This method allows checking of CHARACTERS events to see if they are composed of only whitespace characters
        Specified by:
        isWhiteSpace in interface Characters
        Returns:
        boolean true if this set of Characters are all whitespace
      • setSpace

        public void setSpace​(boolean isSpace)
      • setIgnorable

        public void setIgnorable​(boolean isIgnorable)