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, savedWithParentbackingObjectName, 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, toStringgetBackingObjectName, getDescription, getEmbeddedCommonMetadata, getLabel, getLabelFromPropertyName, getMergeAction, getName, getShortLabel, getUniqueKeyForMerging, isReadOnly, mergeLists, setBackingObjectName, setDescription, setEmbeddedCommonMetadata, setLabel, setMergeAction, setName, setReadOnly, setShortLabelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributeRelationships, getInverseRelationship, getParentAttributeNameRelatedToChildAttributeName, getRelatedType, isDeletedWithParent, isLoadedAtParentLoadTime, isLoadedDynamicallyUponUse, isSavedWithParentgetBackingObjectName, getDescription, getLabel, getMergeAction, getName, getShortLabel, isReadOnlyprotected 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 DataObjectCollectionpublic void setElementLabel(String elementLabel)
elementLabel - single object namepublic Long getMinItems()
DataObjectCollectionThis is an optional attribute and may not be set by the metadata provider.
getMinItems in interface DataObjectCollectionpublic 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 DataObjectCollectionpublic 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 DataObjectCollectionpublic 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 DataObjectCollectionpublic 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.