public class DataObjectCollectionImpl extends MetadataChildBase implements DataObjectCollection
Implementation that represents the meta data for a collection in a data object.
Modifier and Type | Field and Description |
---|---|
protected List<DataObjectCollectionSortAttribute> |
defaultOrdering |
protected String |
elementLabel |
protected DataObjectCollection |
embeddedCollection |
protected Boolean |
indirectCollection |
protected Long |
maxItems |
protected Long |
minItems |
attributeRelationships, deletedWithParent, embeddedMetadataChild, inverseRelationship, loadedAtParentLoadTime, loadedDynamicallyUponUse, relatedType, savedWithParent
backingObjectName, description, embeddedCommonMetadata, label, mergeAction, name, readOnly, shortLabel
Constructor and Description |
---|
DataObjectCollectionImpl() |
Modifier and Type | Method and Description |
---|---|
List<DataObjectCollectionSortAttribute> |
getDefaultOrdering()
Gets the default ordering of a collection.
|
String |
getElementLabel()
The elementLabel defines the name to be used for a single object within the collection.
|
DataObjectCollection |
getEmbeddedCollection()
Gets the embedded collection.
|
Long |
getMaxItems()
The maximum number of items which may be in the collection.
|
Long |
getMinItems()
Gets the minimum number of items which may be in the collection.
|
boolean |
isIndirectCollection()
Determines whether a linked objected is used.
|
void |
setDefaultCollectionOrderingAttributeNames(List<DataObjectCollectionSortAttribute> defaultCollectionOrdering)
Sets attribute that the default order of the collection.
|
void |
setElementLabel(String elementLabel)
Sets name used for single object within collection.
|
void |
setEmbeddedCollection(DataObjectCollection embeddedCollection) |
void |
setIndirectCollection(boolean indirectCollection)
Sets whether linked item is used.
|
void |
setMaxItemsInCollection(Long maxOccurs)
Sets maximum items in collection.
|
void |
setMinItemsInCollection(Long minOccurs)
Sets minimum items in collection.
|
getAttributeRelationships, getEmbeddedMetadataChild, getInverseRelationship, getParentAttributeNameRelatedToChildAttributeName, getRelatedType, isDeletedWithParent, isLoadedAtParentLoadTime, isLoadedDynamicallyUponUse, isSavedWithParent, setAttributeRelationships, setDeletedWithParent, setEmbeddedMetadataChild, setInverseRelationship, setLoadedAtParentLoadTime, setLoadedDynamicallyUponUse, setRelatedType, setSavedWithParent, toString
getBackingObjectName, getDescription, getEmbeddedCommonMetadata, getLabel, getLabelFromPropertyName, getMergeAction, getName, getShortLabel, getUniqueKeyForMerging, isReadOnly, mergeLists, setBackingObjectName, setDescription, setEmbeddedCommonMetadata, setLabel, setMergeAction, setName, setReadOnly, setShortLabel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttributeRelationships, getInverseRelationship, getParentAttributeNameRelatedToChildAttributeName, getRelatedType, isDeletedWithParent, isLoadedAtParentLoadTime, isLoadedDynamicallyUponUse, isSavedWithParent
getBackingObjectName, getDescription, getLabel, getMergeAction, getName, getShortLabel, isReadOnly
protected DataObjectCollection embeddedCollection
protected String elementLabel
protected List<DataObjectCollectionSortAttribute> defaultOrdering
protected Boolean indirectCollection
public DataObjectCollectionImpl()
public String getElementLabel()
For example: "Address" may be the name of one object within the "Addresses" collection.
getElementLabel
in interface DataObjectCollection
public void setElementLabel(String elementLabel)
elementLabel
- single object namepublic Long getMinItems()
DataObjectCollection
This is an optional attribute and may not be set by the metadata provider.
getMinItems
in interface DataObjectCollection
public void setMinItemsInCollection(Long minOccurs)
minOccurs
- minimum items in collection.public Long getMaxItems()
This is an optional attribute and may not be set by the metadata provider.
getMaxItems
in interface DataObjectCollection
public void setMaxItemsInCollection(Long maxOccurs)
maxOccurs
- maximum items in collection.public List<DataObjectCollectionSortAttribute> getDefaultOrdering()
The default ordering of collection items as specified by the metadata provider.
getDefaultOrdering
in interface DataObjectCollection
public void setDefaultCollectionOrderingAttributeNames(List<DataObjectCollectionSortAttribute> defaultCollectionOrdering)
defaultCollectionOrdering
- attribute namepublic boolean isIndirectCollection()
Whether the referenced collection uses a linking object in the underlying implementation. (In case that is somehow important to using code.).
isIndirectCollection
in interface DataObjectCollection
public void setIndirectCollection(boolean indirectCollection)
indirectCollection
- whether link item used.public DataObjectCollection getEmbeddedCollection()
public void setEmbeddedCollection(DataObjectCollection embeddedCollection)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.