|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.data.metadata.impl.MetadataCommonBase
org.kuali.rice.krad.data.metadata.impl.MetadataChildBase
org.kuali.rice.krad.data.metadata.impl.DataObjectCollectionImpl
public class DataObjectCollectionImpl
Collection meta data.
Implementation that represents the meta data for a collection in a data object.
| Field Summary | |
|---|---|
protected List<DataObjectCollectionSortAttribute> |
defaultOrdering
|
protected String |
elementLabel
|
protected DataObjectCollection |
embeddedCollection
|
protected Boolean |
indirectCollection
|
protected Long |
maxItems
|
protected Long |
minItems
|
| Fields inherited from class org.kuali.rice.krad.data.metadata.impl.MetadataChildBase |
|---|
attributeRelationships, deletedWithParent, embeddedMetadataChild, inverseRelationship, loadedAtParentLoadTime, loadedDynamicallyUponUse, relatedType, savedWithParent |
| Fields inherited from class org.kuali.rice.krad.data.metadata.impl.MetadataCommonBase |
|---|
backingObjectName, description, embeddedCommonMetadata, label, mergeAction, name, readOnly, shortLabel |
| Constructor Summary | |
|---|---|
DataObjectCollectionImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.kuali.rice.krad.data.metadata.impl.MetadataCommonBase |
|---|
getBackingObjectName, getDescription, getEmbeddedCommonMetadata, getLabel, getLabelFromPropertyName, getMergeAction, getName, getShortLabel, getUniqueKeyForMerging, isReadOnly, mergeLists, setBackingObjectName, setDescription, setEmbeddedCommonMetadata, setLabel, setMergeAction, setName, setReadOnly, setShortLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.kuali.rice.krad.data.metadata.MetadataChild |
|---|
getAttributeRelationships, getInverseRelationship, getParentAttributeNameRelatedToChildAttributeName, getRelatedType, isDeletedWithParent, isLoadedAtParentLoadTime, isLoadedDynamicallyUponUse, isSavedWithParent |
| Methods inherited from interface org.kuali.rice.krad.data.metadata.MetadataCommon |
|---|
getBackingObjectName, getDescription, getLabel, getMergeAction, getName, getShortLabel, isReadOnly |
| Field Detail |
|---|
protected DataObjectCollection embeddedCollection
protected String elementLabel
protected Long minItems
protected Long maxItems
protected List<DataObjectCollectionSortAttribute> defaultOrdering
protected Boolean indirectCollection
| Constructor Detail |
|---|
public DataObjectCollectionImpl()
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||