Class CommentEvent

java.lang.Object
com.sun.xml.fastinfoset.stax.events.EventBase
com.sun.xml.fastinfoset.stax.events.CommentEvent
All Implemented Interfaces:
Comment, XMLEvent, XMLStreamConstants

public class CommentEvent extends EventBase implements Comment
  • Field Details

    • _text

      private String _text
  • Constructor Details

    • CommentEvent

      public CommentEvent()
    • CommentEvent

      public CommentEvent(String text)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      String String representation of this event
    • getText

      public String getText()
      Return the string data of the comment, returns empty string if it does not exist
      Specified by:
      getText in interface Comment
    • setText

      public void setText(String text)