Class TermSpecificationDefinition
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.krms.api.repository.term.TermSpecificationDefinition
- All Implemented Interfaces:
Serializable,Inactivatable,Identifiable,Versioned,ModelObjectBasic,ModelObjectComplete,TermSpecificationDefinitionContract
public final class TermSpecificationDefinition
extends AbstractDataTransferObject
implements TermSpecificationDefinitionContract
Immutable DTO for TermSpecifications. Construction must be done via the
TermSpecificationDefinition.Builder inner class.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for theTermSpecificationDefinitionimmutable DTO.static class -
Method Summary
Modifier and TypeMethodDescriptionGets an ordered list of the categories which this term specification definition belongs to.Gets a list of the IDs for the contexts this TermSpecification can be used in.Gets the description for this term specification, which will typically be a suitable description for any term having this specification as well.getId()This value will be non-null for persistedgetName()Gets the name for thisTermSpecificationDefinitionContract.Gets the namespace of thisTermSpecificationDefinitionContract.getType()Gets the fully qualified class name for the values of any term having this specification.booleanisActive()Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
-
Method Details
-
getId
This value will be non-null for persisted- Specified by:
getIdin interfaceIdentifiable- See Also:
-
getName
Description copied from interface:TermSpecificationDefinitionContractGets the name for thisTermSpecificationDefinitionContract. This is an important key that must be unique within a namespace, and is used to determine how to resolve any terms having this specification. Will not be null or empty.- Specified by:
getNamein interfaceTermSpecificationDefinitionContract- Returns:
- the name
- See Also:
-
getNamespace
Description copied from interface:TermSpecificationDefinitionContractGets the namespace of thisTermSpecificationDefinitionContract. Will not be null or empty.- Specified by:
getNamespacein interfaceTermSpecificationDefinitionContract- Returns:
- the namespace of the TermSpecificationDefinitionContract
-
getType
Description copied from interface:TermSpecificationDefinitionContractGets the fully qualified class name for the values of any term having this specification. E.g. if the type of the fact values for the "total dollar amount of a grant" term wasBigDecimal, then the term specification's type would be the String "java.math.BigDecimal". Will never return null or the empty string.- Specified by:
getTypein interfaceTermSpecificationDefinitionContract- Returns:
- the fully qualified name of the java type of values for this term.
- See Also:
-
getDescription
Description copied from interface:TermSpecificationDefinitionContractGets the description for this term specification, which will typically be a suitable description for any term having this specification as well. May return null if no description is specified for the term specification.- Specified by:
getDescriptionin interfaceTermSpecificationDefinitionContract- Returns:
- the description for this term specification.
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned- See Also:
-
getCategories
Description copied from interface:TermSpecificationDefinitionContractGets an ordered list of the categories which this term specification definition belongs to. This list can be empty but will never be null.- Specified by:
getCategoriesin interfaceTermSpecificationDefinitionContract- Returns:
- the list of categories for this term specification definition.
- See Also:
-
getContextIds
Description copied from interface:TermSpecificationDefinitionContractGets a list of the IDs for the contexts this TermSpecification can be used in.- Specified by:
getContextIdsin interfaceTermSpecificationDefinitionContract- Returns:
- the list of contexts for this term specification definition
-