Class KimType.Builder

java.lang.Object
org.kuali.rice.kim.api.type.KimType.Builder
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.active.Inactivatable, org.kuali.rice.core.api.mo.common.GloballyUnique, org.kuali.rice.core.api.mo.common.Identifiable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelBuilder, KimTypeContract
Enclosing class:
KimType

public static final class KimType.Builder extends Object implements KimTypeContract, org.kuali.rice.core.api.mo.ModelBuilder, Serializable
This builder constructs an KimType enforcing the constraints of the KimTypeContract.
See Also:
  • Method Details

    • create

      public static KimType.Builder create()
      creates a KimType with the required fields.
    • create

      public static KimType.Builder create(KimTypeContract contract)
      creates a KimType from an existing KimTypeContract.
    • getId

      public String getId()
      Specified by:
      getId in interface org.kuali.rice.core.api.mo.common.Identifiable
    • setId

      public void setId(String id)
    • getServiceName

      public String getServiceName()
      Description copied from interface: KimTypeContract
      The service name used to resolve attribute values.
      Specified by:
      getServiceName in interface KimTypeContract
      Returns:
      the service name
    • setServiceName

      public void setServiceName(String serviceName)
    • getNamespaceCode

      public String getNamespaceCode()
      Description copied from interface: KimTypeContract
      The namespace code that this kim type belongs too.
      Specified by:
      getNamespaceCode in interface KimTypeContract
      Returns:
      namespace code
    • setNamespaceCode

      public void setNamespaceCode(String namespaceCode)
    • getName

      public String getName()
      Description copied from interface: KimTypeContract
      The name of the kim type.
      Specified by:
      getName in interface KimTypeContract
      Returns:
      the name
    • setName

      public void setName(String name)
    • getAttributeDefinitions

      public List<KimTypeAttribute.Builder> getAttributeDefinitions()
      Description copied from interface: KimTypeContract
      The list of attribute definitions associated with the kim type. This cannot be null. If no attribute definitions are associated with the kim type then this will return an empty collection.
      Specified by:
      getAttributeDefinitions in interface KimTypeContract
      Returns:
      the list of attribute definitions
    • setAttributeDefinitions

      public void setAttributeDefinitions(List<KimTypeAttribute.Builder> attributeDefinitions)
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.kuali.rice.core.api.mo.common.active.Inactivatable
    • setActive

      public void setActive(boolean active)
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned
    • setVersionNumber

      public void setVersionNumber(Long versionNumber)
    • getObjectId

      public String getObjectId()
      Specified by:
      getObjectId in interface org.kuali.rice.core.api.mo.common.GloballyUnique
    • setObjectId

      public void setObjectId(String objectId)
    • build

      public KimType build()
      Specified by:
      build in interface org.kuali.rice.core.api.mo.ModelBuilder