Class ReferenceObjectBinding.Builder
java.lang.Object
org.kuali.rice.krms.api.repository.reference.ReferenceObjectBinding.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,Identifiable,Versioned,ModelBuilder,ReferenceObjectBindingContract
- Enclosing class:
ReferenceObjectBinding
public static final class ReferenceObjectBinding.Builder
extends Object
implements Serializable, ModelBuilder, ReferenceObjectBindingContract
A builder which can be used to construct
ReferenceObjectBinding instances. Enforces the constraints of the ReferenceObjectBindingContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance of a ReferenceObjectBinding based on the current state of the builder.create(String krmsDiscriminatorType, String krmsObjectId, String namespace, String referenceDiscriminatorType, String referenceObjectId) create(ReferenceObjectBindingContract contract) This is the CollectionName of the ReferenceObjectBindinggetId()This is the KrmsDiscriminatorType of the ReferenceObjectBindingThis is the KrmsObjectId of the ReferenceObjectBindingThis is the namespace of the ReferenceObjectBindingThis is the ReferenceDiscriminatorType of the ReferenceObjectBindingThis is the ReferenceObjectId of the ReferenceObjectBindingbooleanisActive()voidsetActive(boolean active) Sets the value of active on this builder to the given value.voidsetCollectionName(String collectionName) Sets the value of collectionName on this builder to the given value.voidSets the value of id on this builder to the given value.voidsetKrmsDiscriminatorType(String krmsDiscriminatorType) Sets the value of krmsDiscriminatorType on this builder to the given value.voidsetKrmsObjectId(String krmsObjectId) Sets the value of krmsObjectId on this builder to the given value.voidsetNamespace(String namespace) Sets the value of namespace on this builder to the given value.voidsetReferenceDiscriminatorType(String referenceDiscriminatorType) Sets the value of referenceDiscriminatorType on this builder to the given value.voidsetReferenceObjectId(String referenceObjectId) Sets the value of referenceObjectId on this builder to the given value.voidsetVersionNumber(Long versionNumber) Sets the value of versionNumber on this builder to the given value.
-
Method Details
-
create
-
create
-
build
Builds an instance of a ReferenceObjectBinding based on the current state of the builder.- Specified by:
buildin interfaceModelBuilder- Returns:
- the fully-constructed ReferenceObjectBinding.
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
getCollectionName
Description copied from interface:ReferenceObjectBindingContractThis is the CollectionName of the ReferenceObjectBindingThe CollectionName of the ReferenceObjectBinding
- Specified by:
getCollectionNamein interfaceReferenceObjectBindingContract- Returns:
- the CollectionName of the ReferenceObjectBinding
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getKrmsDiscriminatorType
Description copied from interface:ReferenceObjectBindingContractThis is the KrmsDiscriminatorType of the ReferenceObjectBindingThe KrmsDiscriminatorType of the ReferenceObjectBinding
- Specified by:
getKrmsDiscriminatorTypein interfaceReferenceObjectBindingContract- Returns:
- the KrmsDiscriminatorType of the ReferenceObjectBinding
-
getKrmsObjectId
Description copied from interface:ReferenceObjectBindingContractThis is the KrmsObjectId of the ReferenceObjectBindingThe KrmsObjectId of the ReferenceObjectBinding
- Specified by:
getKrmsObjectIdin interfaceReferenceObjectBindingContract- Returns:
- the KrmsObjectId of the ReferenceObjectBinding
-
getNamespace
Description copied from interface:ReferenceObjectBindingContractThis is the namespace of the ReferenceObjectBindingThe namespace of the ReferenceObjectBinding
- Specified by:
getNamespacein interfaceReferenceObjectBindingContract- Returns:
- the namespace of the ReferenceObjectBinding
-
getReferenceDiscriminatorType
Description copied from interface:ReferenceObjectBindingContractThis is the ReferenceDiscriminatorType of the ReferenceObjectBindingThe ReferenceDiscriminatorType of the ReferenceObjectBinding
- Specified by:
getReferenceDiscriminatorTypein interfaceReferenceObjectBindingContract- Returns:
- the ReferenceDiscriminatorType of the ReferenceObjectBinding
-
getReferenceObjectId
Description copied from interface:ReferenceObjectBindingContractThis is the ReferenceObjectId of the ReferenceObjectBindingThe ReferenceObjectId of the ReferenceObjectBinding
- Specified by:
getReferenceObjectIdin interfaceReferenceObjectBindingContract- Returns:
- the ReferenceObjectId of the ReferenceObjectBinding
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setActive
public void setActive(boolean active) Sets the value of active on this builder to the given value.- Parameters:
active- the active value to set.
-
setCollectionName
Sets the value of collectionName on this builder to the given value.- Parameters:
collectionName- the collectionName value to set.
-
setId
Sets the value of id on this builder to the given value.- Parameters:
id- the id value to set., may be null, representing the Object has not been persisted, but must not be blank.- Throws:
IllegalArgumentException- if the id is blank
-
setKrmsDiscriminatorType
Sets the value of krmsDiscriminatorType on this builder to the given value.- Parameters:
krmsDiscriminatorType- the krmsDiscriminatorType value to set., must not be null or blank- Throws:
IllegalArgumentException- if the krmsDiscriminatorType is null or blank
-
setKrmsObjectId
Sets the value of krmsObjectId on this builder to the given value.- Parameters:
krmsObjectId- the krmsObjectId value to set., must not be null or blank- Throws:
IllegalArgumentException- if the krmsObjectId is null or blank
-
setNamespace
Sets the value of namespace on this builder to the given value.- Parameters:
namespace- the namespace value to set., must not be null or blank- Throws:
IllegalArgumentException- if the namespace is null or blank
-
setReferenceDiscriminatorType
Sets the value of referenceDiscriminatorType on this builder to the given value.- Parameters:
referenceDiscriminatorType- the referenceDiscriminatorType value to set., must not be null or blank- Throws:
IllegalArgumentException- if the referenceDiscriminatorType is null or blank
-
setReferenceObjectId
Sets the value of referenceObjectId on this builder to the given value.- Parameters:
referenceObjectId- the referenceObjectId value to set., must not be null or blank- Throws:
IllegalArgumentException- if the referenceObjectId is null or blank
-
setVersionNumber
Sets the value of versionNumber on this builder to the given value.- Parameters:
versionNumber- the versionNumber value to set.
-