Package org.saidone.unrest.mcp
Record Class PropertyInput
java.lang.Object
java.lang.Record
org.saidone.unrest.mcp.PropertyInput
MCP input schema for the same explicit scalar/list values used by the gRPC contract.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordExactly one field must be supplied, mirroring PropertyValue's Protobuf oneof. -
Constructor Summary
ConstructorsConstructorDescriptionPropertyInput(boolean multiValued, List<PropertyInput.Value> values) Creates an instance of aPropertyInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themultiValuedrecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
PropertyInput
public PropertyInput(@ToolParam(description="true for a list, false for a scalar; must match the Alfresco dictionary") boolean multiValued, @ToolParam(description="Exactly one value for a scalar, zero or more for a list; empty lists clear the property") List<PropertyInput.Value> values) Creates an instance of aPropertyInputrecord class.- Parameters:
multiValued- the value for themultiValuedrecord componentvalues- the value for thevaluesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
multiValued
public boolean multiValued()Returns the value of themultiValuedrecord component.- Returns:
- the value of the
multiValuedrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-