Class KewTypeAttribute.Builder

java.lang.Object
org.kuali.rice.kew.api.repository.type.KewTypeAttribute.Builder
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.active.Inactivatable, org.kuali.rice.core.api.mo.common.Identifiable, org.kuali.rice.core.api.mo.ModelBuilder, KewTypeAttributeContract
Enclosing class:
KewTypeAttribute

public static class KewTypeAttribute.Builder extends Object implements KewTypeAttributeContract, org.kuali.rice.core.api.mo.ModelBuilder, Serializable
This builder is used to construct instances of KewTypeAttribute.
See Also:
  • Method Details

    • attributeDefinition

      public KewTypeAttribute.Builder attributeDefinition(KewAttributeDefinition.Builder attributeDefinition)
    • create

      public static KewTypeAttribute.Builder create(String id, String typeId, String attributeDefinitionId, Integer sequenceNumber)
      Creates a builder from the given parameters.
      Parameters:
      id - the KewTypeAtribute id
      typeId - the KewType Id
      attributeDefinitionId - The attributeDefinitionId
      sequenceNumber -
      Returns:
      an instance of the builder with the fields already populated
      Throws:
      IllegalArgumentException - if the either the id, name or namespace is null or blank
    • create

      public static KewTypeAttribute.Builder create(KewTypeAttributeContract contract)
    • setId

      public void setId(String id)
      Sets the value of the id on this builder to the given value.
      Parameters:
      id - the id value to set, must be null or non-blank
      Throws:
      IllegalArgumentException - if the id is not null and blank
    • setTypeId

      public void setTypeId(String typeId)
    • setAttributeDefinitionId

      public void setAttributeDefinitionId(String attributeDefinitionId)
    • setSequenceNumber

      public void setSequenceNumber(Integer sequenceNumber)
    • setAttributeDefinition

      public void setAttributeDefinition(KewAttributeDefinition.Builder attributeDefinition)
    • setActive

      public void setActive(boolean active)
    • getId

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

      public String getTypeId()
      Description copied from interface: KewTypeAttributeContract
      This is the KewType to which the attribute applies

      It is a id of a KEW type related to the attribute.

      Specified by:
      getTypeId in interface KewTypeAttributeContract
      Returns:
      id for KEW type related to the attribute.
    • getAttributeDefinitionId

      public String getAttributeDefinitionId()
      Description copied from interface: KewTypeAttributeContract
      This is the id of the definition of the attribute.

      It identifies the attribute definition

      Specified by:
      getAttributeDefinitionId in interface KewTypeAttributeContract
      Returns:
      the attribute definition id.
    • getSequenceNumber

      public Integer getSequenceNumber()
      Description copied from interface: KewTypeAttributeContract
      This is the sequence number of the attribute
      Specified by:
      getSequenceNumber in interface KewTypeAttributeContract
      Returns:
      the service name of the KewTypeAttribute
    • getAttributeDefinition

      public KewAttributeDefinition.Builder getAttributeDefinition()
      Description copied from interface: KewTypeAttributeContract
      This is the definition of the attribute
      Specified by:
      getAttributeDefinition in interface KewTypeAttributeContract
    • isActive

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

      public KewTypeAttribute build()
      Builds an instance of a KewTypeAttribute based on the current state of the builder.
      Specified by:
      build in interface org.kuali.rice.core.api.mo.ModelBuilder
      Returns:
      the fully-constructed KewTypeAttribute