public static final class TypeTypeRelation.Builder extends Object implements Serializable, ModelBuilder, TypeTypeRelationContract
TypeTypeRelation instances. Enforces the constraints of the TypeTypeRelationContract.| Modifier and Type | Method and Description |
|---|---|
TypeTypeRelation |
build()
Builds an instance of a TypeTypeRelation based on the current state of the builder.
|
static TypeTypeRelation.Builder |
create(String fromTypeId,
RelationshipType relationshipType,
Integer sequenceNumber,
String toTypeId) |
static TypeTypeRelation.Builder |
create(TypeTypeRelationContract contract) |
String |
getFromTypeId()
This is the FromTypeId of the TypeTypeRelation
|
String |
getId() |
RelationshipType |
getRelationshipType()
This is the RelationshipType of the TypeTypeRelation
|
Integer |
getSequenceNumber() |
String |
getToTypeId()
This is the ToTypeId of the TypeTypeRelation
|
Long |
getVersionNumber() |
boolean |
isActive() |
void |
setActive(boolean active)
Sets the value of active on this builder to the given value.
|
void |
setFromTypeId(String fromTypeId)
Sets the value of fromTypeId on this builder to the given value.
|
void |
setId(String id)
Sets the value of id on this builder to the given value.
|
void |
setRelationshipType(RelationshipType relationshipType)
Sets the value of relationshipType on this builder to the given value.
|
void |
setSequenceNumber(Integer sequenceNumber)
Sets the value of sequenceNumber on this builder to the given value.
|
void |
setToTypeId(String toTypeId)
Sets the value of toTypeId on this builder to the given value.
|
void |
setVersionNumber(Long versionNumber)
Sets the value of versionNumber on this builder to the given value.
|
public static TypeTypeRelation.Builder create(String fromTypeId, RelationshipType relationshipType, Integer sequenceNumber, String toTypeId)
public static TypeTypeRelation.Builder create(TypeTypeRelationContract contract)
public TypeTypeRelation build()
build in interface ModelBuilderpublic boolean isActive()
isActive in interface Inactivatablepublic String getFromTypeId()
TypeTypeRelationContractThe FromTypeId of the TypeTypeRelation
getFromTypeId in interface TypeTypeRelationContractpublic String getId()
getId in interface Identifiablepublic RelationshipType getRelationshipType()
TypeTypeRelationContractThe RelationshipType of the TypeTypeRelation
getRelationshipType in interface TypeTypeRelationContractpublic Integer getSequenceNumber()
getSequenceNumber in interface TypeTypeRelationContractpublic String getToTypeId()
TypeTypeRelationContractThe ToTypeId of the TypeTypeRelation
getToTypeId in interface TypeTypeRelationContractpublic Long getVersionNumber()
getVersionNumber in interface Versionedpublic void setActive(boolean active)
active - the active value to set.public void setFromTypeId(String fromTypeId)
fromTypeId - the fromTypeId value to set., must not be null or blankIllegalArgumentException - if the fromTypeId is null or blankpublic void setId(String id)
id - the id value to set., may be null, representing the Object has not been persisted, but must not be blank.IllegalArgumentException - if the id is blankpublic void setRelationshipType(RelationshipType relationshipType)
relationshipType - the relationshipType value to set., must not be nullIllegalArgumentException - if the relationshipType is nullpublic void setSequenceNumber(Integer sequenceNumber)
sequenceNumber - the sequenceNumber value to set., must not be nullIllegalArgumentException - if the sequenceNumber is nullpublic void setToTypeId(String toTypeId)
toTypeId - the toTypeId value to set., must not be null or blankIllegalArgumentException - if the toTypeId is null or blankpublic void setVersionNumber(Long versionNumber)
versionNumber - the versionNumber value to set.Copyright © 2005–2016 The Kuali Foundation. All rights reserved.