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 Details

    • create

      public static ReferenceObjectBinding.Builder create(String krmsDiscriminatorType, String krmsObjectId, String namespace, String referenceDiscriminatorType, String referenceObjectId)
    • create

    • build

      public ReferenceObjectBinding build()
      Builds an instance of a ReferenceObjectBinding based on the current state of the builder.
      Specified by:
      build in interface ModelBuilder
      Returns:
      the fully-constructed ReferenceObjectBinding.
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface Inactivatable
    • getCollectionName

      public String getCollectionName()
      Description copied from interface: ReferenceObjectBindingContract
      This is the CollectionName of the ReferenceObjectBinding

      The CollectionName of the ReferenceObjectBinding

      Specified by:
      getCollectionName in interface ReferenceObjectBindingContract
      Returns:
      the CollectionName of the ReferenceObjectBinding
    • getId

      public String getId()
      Specified by:
      getId in interface Identifiable
    • getKrmsDiscriminatorType

      public String getKrmsDiscriminatorType()
      Description copied from interface: ReferenceObjectBindingContract
      This is the KrmsDiscriminatorType of the ReferenceObjectBinding

      The KrmsDiscriminatorType of the ReferenceObjectBinding

      Specified by:
      getKrmsDiscriminatorType in interface ReferenceObjectBindingContract
      Returns:
      the KrmsDiscriminatorType of the ReferenceObjectBinding
    • getKrmsObjectId

      public String getKrmsObjectId()
      Description copied from interface: ReferenceObjectBindingContract
      This is the KrmsObjectId of the ReferenceObjectBinding

      The KrmsObjectId of the ReferenceObjectBinding

      Specified by:
      getKrmsObjectId in interface ReferenceObjectBindingContract
      Returns:
      the KrmsObjectId of the ReferenceObjectBinding
    • getNamespace

      public String getNamespace()
      Description copied from interface: ReferenceObjectBindingContract
      This is the namespace of the ReferenceObjectBinding

      The namespace of the ReferenceObjectBinding

      Specified by:
      getNamespace in interface ReferenceObjectBindingContract
      Returns:
      the namespace of the ReferenceObjectBinding
    • getReferenceDiscriminatorType

      public String getReferenceDiscriminatorType()
      Description copied from interface: ReferenceObjectBindingContract
      This is the ReferenceDiscriminatorType of the ReferenceObjectBinding

      The ReferenceDiscriminatorType of the ReferenceObjectBinding

      Specified by:
      getReferenceDiscriminatorType in interface ReferenceObjectBindingContract
      Returns:
      the ReferenceDiscriminatorType of the ReferenceObjectBinding
    • getReferenceObjectId

      public String getReferenceObjectId()
      Description copied from interface: ReferenceObjectBindingContract
      This is the ReferenceObjectId of the ReferenceObjectBinding

      The ReferenceObjectId of the ReferenceObjectBinding

      Specified by:
      getReferenceObjectId in interface ReferenceObjectBindingContract
      Returns:
      the ReferenceObjectId of the ReferenceObjectBinding
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface Versioned
    • 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

      public void setCollectionName(String collectionName)
      Sets the value of collectionName on this builder to the given value.
      Parameters:
      collectionName - the collectionName value to set.
    • setId

      public void setId(String id)
      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

      public void setKrmsDiscriminatorType(String krmsDiscriminatorType)
      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

      public void setKrmsObjectId(String krmsObjectId)
      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

      public void setNamespace(String namespace)
      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

      public void setReferenceDiscriminatorType(String referenceDiscriminatorType)
      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

      public void setReferenceObjectId(String referenceObjectId)
      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

      public void setVersionNumber(Long versionNumber)
      Sets the value of versionNumber on this builder to the given value.
      Parameters:
      versionNumber - the versionNumber value to set.