Record Class PropertyInput.Value

java.lang.Object
java.lang.Record
org.saidone.unrest.mcp.PropertyInput.Value
Enclosing class:
PropertyInput

public static record PropertyInput.Value(String stringValue, Long integerValue, Double doubleValue, Boolean booleanValue, Long timestampMillis, String nodeRefValue, String qnameValue, Boolean nullValue) extends Record
Exactly one field must be supplied, mirroring PropertyValue's Protobuf oneof.
  • Constructor Details

    • Value

      public Value(@ToolParam(description="Text value",required=false) String stringValue, @ToolParam(description="Integral value",required=false) Long integerValue, @ToolParam(description="Finite floating-point value",required=false) Double doubleValue, @ToolParam(description="Boolean value",required=false) Boolean booleanValue, @ToolParam(description="Timestamp as milliseconds since the Unix epoch",required=false) Long timestampMillis, @ToolParam(description="Full Alfresco node reference",required=false) String nodeRefValue, @ToolParam(description="Qualified name, prefix:name or {uri}name",required=false) String qnameValue, @ToolParam(description="true to clear a scalar property",required=false) Boolean nullValue)
      Creates an instance of a Value record class.
      Parameters:
      stringValue - the value for the stringValue record component
      integerValue - the value for the integerValue record component
      doubleValue - the value for the doubleValue record component
      booleanValue - the value for the booleanValue record component
      timestampMillis - the value for the timestampMillis record component
      nodeRefValue - the value for the nodeRefValue record component
      qnameValue - the value for the qnameValue record component
      nullValue - the value for the nullValue record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • stringValue

      public String stringValue()
      Returns the value of the stringValue record component.
      Returns:
      the value of the stringValue record component
    • integerValue

      public Long integerValue()
      Returns the value of the integerValue record component.
      Returns:
      the value of the integerValue record component
    • doubleValue

      public Double doubleValue()
      Returns the value of the doubleValue record component.
      Returns:
      the value of the doubleValue record component
    • booleanValue

      public Boolean booleanValue()
      Returns the value of the booleanValue record component.
      Returns:
      the value of the booleanValue record component
    • timestampMillis

      public Long timestampMillis()
      Returns the value of the timestampMillis record component.
      Returns:
      the value of the timestampMillis record component
    • nodeRefValue

      public String nodeRefValue()
      Returns the value of the nodeRefValue record component.
      Returns:
      the value of the nodeRefValue record component
    • qnameValue

      public String qnameValue()
      Returns the value of the qnameValue record component.
      Returns:
      the value of the qnameValue record component
    • nullValue

      public Boolean nullValue()
      Returns the value of the nullValue record component.
      Returns:
      the value of the nullValue record component