Class KimAttribute.Builder

java.lang.Object
org.kuali.rice.kim.api.common.attribute.KimAttribute.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, KimAttributeContract
Enclosing class:
KimAttribute

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

    • create

      public static KimAttribute.Builder create(String componentName, String attributeName, String namespaceCode)
      creates a KimAttribute with the required fields.
    • create

      public static KimAttribute.Builder create(KimAttributeContract contract)
      creates a KimAttribute from an existing KimAttributeContract.
    • getId

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

      public void setId(String id)
    • getComponentName

      public String getComponentName()
      Description copied from interface: KimAttributeContract
      A fully-qualified class name which contains the KimAttributeContract.getAttributeName(). This cannot be null or a blank string.
      Specified by:
      getComponentName in interface KimAttributeContract
      Returns:
      the name
    • setComponentName

      public void setComponentName(String componentName)
    • getAttributeName

      public String getAttributeName()
      Description copied from interface: KimAttributeContract
      The name of the attribute on the KimAttributeContract.getComponentName(). This cannot be null or a blank string.
      Specified by:
      getAttributeName in interface KimAttributeContract
      Returns:
      the name
    • setAttributeName

      public void setAttributeName(String attributeName)
    • getNamespaceCode

      public String getNamespaceCode()
      Description copied from interface: KimAttributeContract
      The namespace code that this kim attribute belongs too. This cannot be null or a blank string.
      Specified by:
      getNamespaceCode in interface KimAttributeContract
      Returns:
      namespace code
    • setNamespaceCode

      public void setNamespaceCode(String namespaceCode)
    • getAttributeLabel

      public String getAttributeLabel()
      Description copied from interface: KimAttributeContract
      The label for the kim attribute. This is optional and can be null or blank.
      Specified by:
      getAttributeLabel in interface KimAttributeContract
      Returns:
      the label
    • setAttributeLabel

      public void setAttributeLabel(String attributeLabel)
    • 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 KimAttribute build()
      Specified by:
      build in interface org.kuali.rice.core.api.mo.ModelBuilder