Class TagValue


  • public class TagValue
    extends java.lang.Object

    Utility class for representing tag-value pairs for TagValueParser implementors.

    Since:
    1.2
    Author:
    Matthew Pocock
    • Constructor Summary

      Constructors 
      Constructor Description
      TagValue​(java.lang.Object tag, java.lang.Object value, boolean newTag)
      Build a new TagValue with a tag, a value and a flag indicating if this is a new example of this tag or a continuation of an old example.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getTag()  
      java.lang.Object getValue()  
      boolean isNewTag()  
      • Methods inherited from class java.lang.Object

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

      • TagValue

        public TagValue​(java.lang.Object tag,
                        java.lang.Object value,
                        boolean newTag)
        Build a new TagValue with a tag, a value and a flag indicating if this is a new example of this tag or a continuation of an old example.
        Parameters:
        tag - the tag Object
        value - the value Object
        newTag - true if startTag events should be thrown even if the tag is identical to the previously observed tag
    • Method Detail

      • getTag

        public java.lang.Object getTag()
      • getValue

        public java.lang.Object getValue()
      • isNewTag

        public boolean isNewTag()