Class BaseAttribute
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.krms.api.repository.BaseAttribute
- All Implemented Interfaces:
Serializable,Identifiable,ModelObjectBasic,ModelObjectComplete,BaseAttributeContract
public abstract class BaseAttribute
extends AbstractDataTransferObject
implements BaseAttributeContract
abstract base model object for KRMS Attribute immutables.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis builder is used to construct the fields thatBaseAttributeis responsible for.static classA protected class which exposes constants which define the XML element names to use when this object is marshalled to XML.Nested classes/interfaces inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
AbstractDataTransferObject.Constants -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThis constructor should only be called by the private default constructor of subclasses, which should only be used by JAXB and never invoked directly.protectedBaseAttribute(BaseAttribute.Builder builder) Constructs a BaseAttribute from the given builder. -
Method Summary
Modifier and TypeMethodDescriptionReturns aKrmsAttributeDefinitionContract.Returns the id of the attribute definition.getId()getValue()Returns the value of the attributeMethods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
-
Constructor Details
-
BaseAttribute
protected BaseAttribute()This constructor should only be called by the private default constructor of subclasses, which should only be used by JAXB and never invoked directly. -
BaseAttribute
Constructs a BaseAttribute from the given builder. This constructor is protected and should only ever be invoked from the builder.- Parameters:
builder- the Builder from which to construct the BaseAttribute
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getAttributeDefinitionId
Description copied from interface:BaseAttributeContractReturns the id of the attribute definition.The attribute definition contains metadata about the attribute. This is a required field and may not be null or blank. Many attribute instances may share the same attribute definition.
- Specified by:
getAttributeDefinitionIdin interfaceBaseAttributeContract- Returns:
- the attribute definition id
-
getValue
Description copied from interface:BaseAttributeContractReturns the value of the attribute- Specified by:
getValuein interfaceBaseAttributeContract- Returns:
- the value of the attribute
-
getAttributeDefinition
Description copied from interface:BaseAttributeContractReturns aKrmsAttributeDefinitionContract.This is the object referred to by the attributeDefinitionId. The full object is also kept here for performance purposes. This is because the name of the attribute is referenced often for resolving name / value attribute pairs.
- Specified by:
getAttributeDefinitionin interfaceBaseAttributeContract- Returns:
- the attribute definition
-