Package org.kuali.rice.kim.api.type
Class KimType
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.kim.api.type.KimType
- 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.ModelObjectBasic,org.kuali.rice.core.api.mo.ModelObjectComplete,KimTypeContract
public final class KimType
extends org.kuali.rice.core.api.mo.AbstractDataTransferObject
implements KimTypeContract
An immutable representation of a
KimTypeContract.
To construct an instance of a KimType, use the KimType.Builder class.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis builder constructs an KimType enforcing the constraints of theKimTypeContract.static class -
Method Summary
Modifier and TypeMethodDescriptionGets the KimTypeAttribute matching the id of it's KimAttribute.Gets the KimTypeAttribute matching the name of it's KimAttribute.The list of attribute definitions associated with the kim type.getId()getName()The name of the kim type.The namespace code that this kim type belongs too.The service name used to resolve attribute values.booleanisActive()Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
-
Method Details
-
getAttributeDefinitionById
Gets the KimTypeAttribute matching the id of it's KimAttribute. If no attribute definition exists with that id then null is returned.If multiple exist with the same id then the first match is returned. Since id is supposed to be unique this should not be a problem in practice.
- Parameters:
id- the KimTypeAttribute.KimAttribute's id- Returns:
- the KimTypeAttribute or null
- Throws:
IllegalArgumentException- if the id is blank
-
getAttributeDefinitionByName
Gets the KimTypeAttribute matching the name of it's KimAttribute. 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 KimTypeAttribute's name- Returns:
- the KimTypeAttribute or null
- Throws:
IllegalArgumentException- if the name is blank
-
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
getServiceName
Description copied from interface:KimTypeContractThe service name used to resolve attribute values.- Specified by:
getServiceNamein interfaceKimTypeContract- Returns:
- the service name
-
getNamespaceCode
Description copied from interface:KimTypeContractThe namespace code that this kim type belongs too.- Specified by:
getNamespaceCodein interfaceKimTypeContract- Returns:
- namespace code
-
getName
Description copied from interface:KimTypeContractThe name of the kim type.- Specified by:
getNamein interfaceKimTypeContract- Returns:
- the name
-
getAttributeDefinitions
Description copied from interface:KimTypeContractThe 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:
getAttributeDefinitionsin interfaceKimTypeContract- Returns:
- the list of attribute definitions
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
getObjectId
- Specified by:
getObjectIdin interfaceorg.kuali.rice.core.api.mo.common.GloballyUnique
-