Package org.saidone.unrest.mcp
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebooleanValuerecord component.Returns the value of thedoubleValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theintegerValuerecord component.Returns the value of thenodeRefValuerecord component.Returns the value of thenullValuerecord component.Returns the value of theqnameValuerecord component.Returns the value of thestringValuerecord component.Returns the value of thetimestampMillisrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aValuerecord class.- Parameters:
stringValue- the value for thestringValuerecord componentintegerValue- the value for theintegerValuerecord componentdoubleValue- the value for thedoubleValuerecord componentbooleanValue- the value for thebooleanValuerecord componenttimestampMillis- the value for thetimestampMillisrecord componentnodeRefValue- the value for thenodeRefValuerecord componentqnameValue- the value for theqnameValuerecord componentnullValue- the value for thenullValuerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
stringValue
Returns the value of thestringValuerecord component.- Returns:
- the value of the
stringValuerecord component
-
integerValue
Returns the value of theintegerValuerecord component.- Returns:
- the value of the
integerValuerecord component
-
doubleValue
Returns the value of thedoubleValuerecord component.- Returns:
- the value of the
doubleValuerecord component
-
booleanValue
Returns the value of thebooleanValuerecord component.- Returns:
- the value of the
booleanValuerecord component
-
timestampMillis
Returns the value of thetimestampMillisrecord component.- Returns:
- the value of the
timestampMillisrecord component
-
nodeRefValue
Returns the value of thenodeRefValuerecord component.- Returns:
- the value of the
nodeRefValuerecord component
-
qnameValue
Returns the value of theqnameValuerecord component.- Returns:
- the value of the
qnameValuerecord component
-
nullValue
Returns the value of thenullValuerecord component.- Returns:
- the value of the
nullValuerecord component
-