Class ParserEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class ParserEvent
    extends java.util.EventObject
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserEvent​(java.lang.Object source, Tag tag)
      Represents a parsed Tag in the Parser
      ParserEvent​(java.lang.Object source, java.lang.String text)
      Represents a parsed continous block of text, a comment, or an error.
      ParserEvent​(java.lang.Object source, java.lang.String target, java.lang.String data)
      Represents a PI (processing instruction)
      ParserEvent​(java.lang.Object source, java.lang.String root, java.lang.String publicId, java.lang.String systemId)
      Represents a DOCTYPE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getData()  
      java.lang.String getPublicId()  
      java.lang.String getRoot()  
      java.lang.String getSystemId()  
      Tag getTag()  
      java.lang.String getTarget()  
      java.lang.String getText()  
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ParserEvent

        public ParserEvent​(java.lang.Object source,
                           Tag tag)
        Represents a parsed Tag in the Parser
        Parameters:
        source - The Parser this came from
        tag - The parsed Tag.
        See Also:
        java.help.basic.Parser
      • ParserEvent

        public ParserEvent​(java.lang.Object source,
                           java.lang.String text)
        Represents a parsed continous block of text, a comment, or an error.
        Parameters:
        source - The Parser this came from
        String - The text, comment, or error
        See Also:
        java.help.basic.Parser
      • ParserEvent

        public ParserEvent​(java.lang.Object source,
                           java.lang.String target,
                           java.lang.String data)
        Represents a PI (processing instruction)
        Parameters:
        source - The Parser this came from
        target - The PI target
        data - The rest of the PI
        See Also:
        java.help.basic.Parser
      • ParserEvent

        public ParserEvent​(java.lang.Object source,
                           java.lang.String root,
                           java.lang.String publicId,
                           java.lang.String systemId)
        Represents a DOCTYPE
        Parameters:
        source - The Parser this came from
        root - The root
        publicId - The publicID (may be null)
        systemID - The systemID (may be null)
        See Also:
        java.help.basic.Parser
    • Method Detail

      • getTag

        public Tag getTag()
        Returns:
        the Tag
      • getText

        public java.lang.String getText()
        Returns:
        the text
      • getTarget

        public java.lang.String getTarget()
        Returns:
        the target
      • getData

        public java.lang.String getData()
        Returns:
        the data
      • getRoot

        public java.lang.String getRoot()
        Returns:
        the root
      • getPublicId

        public java.lang.String getPublicId()
        Returns:
        the publicId
      • getSystemId

        public java.lang.String getSystemId()
        Returns:
        the systemId