public abstract class MetadataCommonBase extends Object implements MetadataCommonInternal
Modifier and Type | Field and Description |
---|---|
protected String |
backingObjectName |
protected String |
description |
protected MetadataCommon |
embeddedCommonMetadata |
protected String |
label |
protected MetadataMergeAction |
mergeAction |
protected String |
name |
protected Boolean |
readOnly |
protected String |
shortLabel |
Constructor and Description |
---|
MetadataCommonBase() |
Modifier and Type | Method and Description |
---|---|
String |
getBackingObjectName()
Provider specific name of the persistent storage behind this object type.
|
String |
getDescription()
A longer description of the object.
|
MetadataCommon |
getEmbeddedCommonMetadata()
If this data object instance is wrapping another (generated by a lower metadata provider), return that.
|
String |
getLabel()
The user displayed name of the object.
|
protected String |
getLabelFromPropertyName(String propertyName)
Parses the label from the property name.
|
MetadataMergeAction |
getMergeAction()
MetadataMergeAction which determines how to handle the embedding of this object when multiple metadata
providers are in use. |
String |
getName()
The name of the object as known to the system.
|
String |
getShortLabel()
A shorter version of the user displayed name of the object.
|
Object |
getUniqueKeyForMerging()
Returns the object's name without relying on embedded metadata.
|
boolean |
isReadOnly()
Whether this metadata object should be considered read-only by calling code.
|
protected <T extends MetadataCommon> |
mergeLists(List<T> embeddedList,
List<T> localList)
Merges multiple lists into one.
|
void |
setBackingObjectName(String backingObjectName) |
void |
setDescription(String description) |
void |
setEmbeddedCommonMetadata(MetadataCommon embeddedCommonMetadata) |
void |
setLabel(String label) |
void |
setMergeAction(MetadataMergeAction mergeAction) |
void |
setName(String name) |
void |
setReadOnly(boolean readOnly) |
void |
setShortLabel(String shortLabel) |
String |
toString() |
protected MetadataCommon embeddedCommonMetadata
protected MetadataMergeAction mergeAction
protected String backingObjectName
protected String shortLabel
protected String description
public MetadataCommonBase()
public Object getUniqueKeyForMerging()
getUniqueKeyForMerging
in interface MetadataCommonInternal
public String getBackingObjectName()
MetadataCommon
getBackingObjectName
in interface MetadataCommon
public void setBackingObjectName(String backingObjectName)
public String getName()
MetadataCommon
getName
in interface MetadataCommon
public String getLabel()
MetadataCommon
getLabel
in interface MetadataCommon
public String getShortLabel()
MetadataCommon
getShortLabel
in interface MetadataCommon
public void setShortLabel(String shortLabel)
public String getDescription()
MetadataCommon
getDescription
in interface MetadataCommon
public void setDescription(String description)
public boolean isReadOnly()
MetadataCommon
That is, the persistence layer is not likely to accept/persist an update to this object, attribute, collection, reference.
isReadOnly
in interface MetadataCommon
public void setReadOnly(boolean readOnly)
protected String getLabelFromPropertyName(String propertyName)
propertyName
- the full property name including separatorspublic MetadataCommon getEmbeddedCommonMetadata()
MetadataCommonInternal
getEmbeddedCommonMetadata
in interface MetadataCommonInternal
public void setEmbeddedCommonMetadata(MetadataCommon embeddedCommonMetadata)
setEmbeddedCommonMetadata
in interface MetadataCommonInternal
public MetadataMergeAction getMergeAction()
MetadataCommon
MetadataMergeAction
which determines how to handle the embedding of this object when multiple metadata
providers are in use.getMergeAction
in interface MetadataCommon
MetadataMergeAction
public void setMergeAction(MetadataMergeAction mergeAction)
protected <T extends MetadataCommon> List<T> mergeLists(List<T> embeddedList, List<T> localList)
Merges embedded and locallists.
embeddedList
- the embedded list.localList
- the local list.Copyright © 2005–2016 The Kuali Foundation. All rights reserved.