Class CharacteristicTypeAssignmentReference.Builder
Object
Builder
- Enclosing class:
CharacteristicTypeAssignmentReference
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.This method will be removed in the future.build()but()Deprecated.This method will be removed in the future.The maximum allowed, unlimited when null.min(int min) The minimum allowed.When set totrue, the value of the assigned Characteristic Type cannot be edited by the user.relationTypeDirection(RelationTypeDirection relationTypeDirection) The relation type direction, if the referenced resource is a relation type; otherwise null.relationTypeRestriction(UUID relationTypeRestriction) The relation type restriction of the target asset type, if the referenced resource is a relation type; otherwise null.resourceDiscriminator(String resourceDiscriminator) Either this field, or the resourceType is required. The resource discriminator.toString()type(ResourceType resourceType) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
id
Deprecated.This field will become private in the next major release.
-
-
Method Details
-
aCharacteristicTypeAssignmentReference
@Deprecated public static CharacteristicTypeAssignmentReference.Builder aCharacteristicTypeAssignmentReference()Deprecated.This method will be removed in the future. UseCharacteristicTypeAssignmentReference.builder()instead.Create a new Builder. -
id
-
type
@Deprecated(since="2025.01", forRemoval=true) public CharacteristicTypeAssignmentReference.Builder type(ResourceType resourceType) Deprecated, for removal: This API element is subject to removal in a future version. -
but
Deprecated.This method will be removed in the future. UseCharacteristicTypeAssignmentReference.builder()instead.Clone method for this Builder. -
min
The minimum allowed.- Returns:
this.
-
max
The maximum allowed, unlimited when null.- Returns:
this.
-
readOnly
When set totrue, the value of the assigned Characteristic Type cannot be edited by the user. Only applicable to AttributeType assignment lines. Whennull, the existing read-only flag is preserved on change paths (allowing clients that pre-date this field to send change requests without unintentionally clearing it).- Returns:
this.
-
resourceDiscriminator
public CharacteristicTypeAssignmentReference.Builder resourceDiscriminator(String resourceDiscriminator) Either this field, or the resourceType is required. The resource discriminator. Possible values: 'AttributeType', 'RelationType', 'DerivedRelationType' and 'ComplexRelationType'.- Returns:
this.
-
relationTypeDirection
public CharacteristicTypeAssignmentReference.Builder relationTypeDirection(RelationTypeDirection relationTypeDirection) The relation type direction, if the referenced resource is a relation type; otherwise null.- Returns:
this.
-
relationTypeRestriction
public CharacteristicTypeAssignmentReference.Builder relationTypeRestriction(UUID relationTypeRestriction) The relation type restriction of the target asset type, if the referenced resource is a relation type; otherwise null. When specified, it effectively replaces the source asset type of the relation when relationTypeDirection = TO_SOURCE or the target asset type of the relation when relationTypeDirection = TO_TARGET. You can specify the relation type restriction only when relationTypeDirection is not null. If specified, it must be an ID of a subtype of the source or target asset type, depending on the value of relationTypeDirection.- Returns:
this.
-
build
-
toString
-