Class MetadataCommonBase
java.lang.Object
org.kuali.rice.krad.data.metadata.impl.MetadataCommonBase
- All Implemented Interfaces:
Serializable,MetadataCommonInternal,MetadataCommon
- Direct Known Subclasses:
DataObjectAttributeImpl,DataObjectMetadataImpl,MetadataChildBase
Class defining common attributes on many different components of the metadata (data objects, attributes, etc...)
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected MetadataCommonprotected Stringprotected MetadataMergeActionprotected Stringprotected Booleanprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvider specific name of the persistent storage behind this object type.A longer description of the object.If this data object instance is wrapping another (generated by a lower metadata provider), return that.getLabel()The user displayed name of the object.protected StringgetLabelFromPropertyName(String propertyName) Parses the label from the property name.MetadataMergeActionwhich determines how to handle the embedding of this object when multiple metadata providers are in use.getName()The name of the object as known to the system.A shorter version of the user displayed name of the object.Returns the object's name without relying on embedded metadata.booleanWhether this metadata object should be considered read-only by calling code.protected <T extends MetadataCommon>
List<T> mergeLists(List<T> embeddedList, List<T> localList) Merges multiple lists into one.voidsetBackingObjectName(String backingObjectName) voidsetDescription(String description) voidsetEmbeddedCommonMetadata(MetadataCommon embeddedCommonMetadata) voidvoidsetMergeAction(MetadataMergeAction mergeAction) voidvoidsetReadOnly(boolean readOnly) voidsetShortLabel(String shortLabel) toString()
-
Field Details
-
embeddedCommonMetadata
-
mergeAction
-
backingObjectName
-
name
-
label
-
shortLabel
-
description
-
readOnly
-
-
Constructor Details
-
MetadataCommonBase
public MetadataCommonBase()
-
-
Method Details
-
getUniqueKeyForMerging
Returns the object's name without relying on embedded metadata. To override, this name must be set.- Specified by:
getUniqueKeyForMergingin interfaceMetadataCommonInternal
-
getBackingObjectName
Description copied from interface:MetadataCommonProvider specific name of the persistent storage behind this object type. For a data object, this would likely be the table name. For an attribute, this would be the table column name. It is to be used for reference purposes only. The default implementation will return the name property if none is provided by the metadata providers.- Specified by:
getBackingObjectNamein interfaceMetadataCommon- Returns:
- String representing the backing object. Must not return null.
-
setBackingObjectName
-
getName
Description copied from interface:MetadataCommonThe name of the object as known to the system. This would be the class name, attribute name, etc...- Specified by:
getNamein interfaceMetadataCommon- Returns:
- name
-
setName
-
getLabel
Description copied from interface:MetadataCommonThe user displayed name of the object.- Specified by:
getLabelin interfaceMetadataCommon- Returns:
- user diplayed name
-
setLabel
-
getShortLabel
Description copied from interface:MetadataCommonA shorter version of the user displayed name of the object.- Specified by:
getShortLabelin interfaceMetadataCommon- Returns:
- short name
-
setShortLabel
-
getDescription
Description copied from interface:MetadataCommonA longer description of the object. This can be used to provide a more complete description of the data object and its purpose. This information can be used when displaying help information to the end-user.- Specified by:
getDescriptionin interfaceMetadataCommon- Returns:
- description
-
setDescription
-
isReadOnly
public boolean isReadOnly()Description copied from interface:MetadataCommonWhether this metadata object should be considered read-only by calling code.That is, the persistence layer is not likely to accept/persist an update to this object, attribute, collection, reference.
- Specified by:
isReadOnlyin interfaceMetadataCommon- Returns:
- whether metadata read-only
-
setReadOnly
public void setReadOnly(boolean readOnly) -
toString
-
getLabelFromPropertyName
Parses the label from the property name.- Parameters:
propertyName- the full property name including separators
-
getEmbeddedCommonMetadata
Description copied from interface:MetadataCommonInternalIf this data object instance is wrapping another (generated by a lower metadata provider), return that. Returns null if this instance is not wrapping another.- Specified by:
getEmbeddedCommonMetadatain interfaceMetadataCommonInternal
-
setEmbeddedCommonMetadata
- Specified by:
setEmbeddedCommonMetadatain interfaceMetadataCommonInternal
-
getMergeAction
Description copied from interface:MetadataCommonMetadataMergeActionwhich determines how to handle the embedding of this object when multiple metadata providers are in use.- Specified by:
getMergeActionin interfaceMetadataCommon- Returns:
- the merge action to use when embedding this metadata when multiple metadata providers are in use
- See Also:
-
setMergeAction
-
mergeLists
Merges multiple lists into one.Merges embedded and locallists.
- Parameters:
embeddedList- the embedded list.localList- the local list.
-