Class YAMLString

java.lang.Object
net.pwall.json.JSONString
net.pwall.yaml.YAMLString
All Implemented Interfaces:
Serializable, CharSequence, net.pwall.json.JSONValue, YAMLNode, YAMLScalar

public class YAMLString extends net.pwall.json.JSONString implements YAMLScalar
A YAML string scalar.
Author:
Peter Wall
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a YAMLString with the given value and the default tag.
    YAMLString(String value, String tag)
    Construct a YAMLString with the given value and tag.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    Get the tag of the node.
    int
     

    Methods inherited from class net.pwall.json.JSONString

    appendJSON, charAt, getValue, length, subSequence, toSimpleValue, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.CharSequence

    chars, codePoints, isEmpty

    Methods inherited from interface net.pwall.json.JSONValue

    appendJSON, toJSON, toSimpleValue
  • Field Details

  • Constructor Details

    • YAMLString

      public YAMLString(String value, String tag)
      Construct a YAMLString with the given value and tag.
      Parameters:
      value - the value
      tag - the tag
    • YAMLString

      public YAMLString(String value)
      Construct a YAMLString with the given value and the default tag.
      Parameters:
      value - the value
  • Method Details

    • getTag

      public String getTag()
      Description copied from interface: YAMLNode
      Get the tag of the node.
      Specified by:
      getTag in interface YAMLNode
      Returns:
      the tag
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class net.pwall.json.JSONString
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class net.pwall.json.JSONString