Class KewTypeDefinition
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.kew.api.repository.type.KewTypeDefinition
- All Implemented Interfaces:
Serializable,Inactivatable,Identifiable,Versioned,ModelObjectBasic,ModelObjectComplete,KewTypeDefinitionContract
public final class KewTypeDefinition
extends AbstractDataTransferObject
implements KewTypeDefinitionContract
Concrete model object implementation of KEW KewType.
immutable.
Instances of KewType can be (un)marshalled to and from XML.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis builder is used to construct instances of KEW KewType.static classA private class which exposes constants which define the XML element names to use when this object is marshalled to XML. -
Method Summary
Modifier and TypeMethodDescriptionGets the KewTypeAttribute matching the name of it's KewAttribute.This method returns a list of attributes associated with the KewTypegetId()getName()This is the name for the KEWTypeThis is the namespace code.This is the name of the KEW KewType servicebooleanisActive()Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getName
Description copied from interface:KewTypeDefinitionContractThis is the name for the KEWTypeIt is a name of a KEW type.
- Specified by:
getNamein interfaceKewTypeDefinitionContract- Returns:
- name for KEW type.
-
getNamespace
Description copied from interface:KewTypeDefinitionContractThis is the namespace code.It provides scope of the KEW type.
- Specified by:
getNamespacein interfaceKewTypeDefinitionContract- Returns:
- the namespace code of the KEW type.
-
getServiceName
Description copied from interface:KewTypeDefinitionContractThis is the name of the KEW KewType service- Specified by:
getServiceNamein interfaceKewTypeDefinitionContract- Returns:
- the service name of the KEW type
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
getAttributes
Description copied from interface:KewTypeDefinitionContractThis method returns a list of attributes associated with the KewType- Specified by:
getAttributesin interfaceKewTypeDefinitionContract- Returns:
- a list of KewTypeAttribute objects.
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
getAttributeDefinitionByName
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
-