Record Class SchemaSignature.Position
java.lang.Object
java.lang.Record
network.ike.plugin.schema.SchemaSignature.Position
- Record Components:
name- the position's name as the schema spells it,operandkind- element or attributevalueType- the type of value the position holdsminimum- the fewest values allowed,0for optionalmaximum- the most values allowed, orUNBOUNDEDdocumentation- the schema's own description of this position on this type, empty when the schema gives none
- Enclosing class:
SchemaSignature
public static record SchemaSignature.Position(String name, SchemaSignature.PositionKind kind, SchemaSignature.TypeReference valueType, int minimum, int maximum, String documentation)
extends Record
One argument position of a type: a child element or an attribute, with the type of
value it holds and how many of them the schema allows.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum recorded for a position the schema leaves unbounded. -
Constructor Summary
ConstructorsConstructorDescriptionPosition(String name, SchemaSignature.PositionKind kind, SchemaSignature.TypeReference valueType, int minimum, int maximum, String documentation) Creates an instance of aPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.intmaximum()Returns the value of themaximumrecord component.intminimum()Returns the value of theminimumrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueTyperecord component.
-
Field Details
-
UNBOUNDED
public static final int UNBOUNDEDThe maximum recorded for a position the schema leaves unbounded.- See Also:
-
-
Constructor Details
-
Position
public Position(String name, SchemaSignature.PositionKind kind, SchemaSignature.TypeReference valueType, int minimum, int maximum, String documentation) Creates an instance of aPositionrecord class.- Parameters:
name- the value for thenamerecord componentkind- the value for thekindrecord componentvalueType- the value for thevalueTyperecord componentminimum- the value for theminimumrecord componentmaximum- the value for themaximumrecord componentdocumentation- the value for thedocumentationrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
name
-
kind
-
valueType
-
minimum
-
maximum
-
documentation
Returns the value of thedocumentationrecord component.- Returns:
- the value of the
documentationrecord component
-