Class KewTypeDefinition

java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.kew.api.repository.type.KewTypeDefinition
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.common.Versioned, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.core.api.mo.ModelObjectComplete, KewTypeDefinitionContract

public final class KewTypeDefinition extends org.kuali.rice.core.api.mo.AbstractDataTransferObject implements KewTypeDefinitionContract
Concrete model object implementation of KEW KewType. immutable. Instances of KewType can be (un)marshalled to and from XML.
See Also:
  • Method Details

    • getId

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

      public String getName()
      Description copied from interface: KewTypeDefinitionContract
      This is the name for the KEWType

      It is a name of a KEW type.

      Specified by:
      getName in interface KewTypeDefinitionContract
      Returns:
      name for KEW type.
    • getNamespace

      public String getNamespace()
      Description copied from interface: KewTypeDefinitionContract
      This is the namespace code.

      It provides scope of the KEW type.

      Specified by:
      getNamespace in interface KewTypeDefinitionContract
      Returns:
      the namespace code of the KEW type.
    • getServiceName

      public String getServiceName()
      Description copied from interface: KewTypeDefinitionContract
      This is the name of the KEW KewType service
      Specified by:
      getServiceName in interface KewTypeDefinitionContract
      Returns:
      the service name of the KEW type
    • isActive

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

      public List<KewTypeAttribute> getAttributes()
      Description copied from interface: KewTypeDefinitionContract
      This method returns a list of attributes associated with the KewType
      Specified by:
      getAttributes in interface KewTypeDefinitionContract
      Returns:
      a list of KewTypeAttribute objects.
    • getVersionNumber

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

      public KewAttributeDefinition getAttributeDefinitionByName(String name)
      Gets the KewTypeAttribute matching the name of it's KewAttribute. If no attribute definition exists with that name then null is returned.

      If multiple exist with the same name then the first match is returned. Since name is supposed to be unique this should not be a problem in practice.

      Parameters:
      name - the KewTypeAttribute's name
      Returns:
      the KewTypeAttribute or null
      Throws:
      IllegalArgumentException - if the name is blank