|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase org.kuali.rice.krad.datadictionary.CollectionDefinition
public class CollectionDefinition
CollectionDefinition defines a single Collection attribute definition in the DataDictionary
It contains information relating to the display, validation,
and general maintenance of a specific Collection attribute of an entry. It helps to provide meaningful labels for
collections on a business or data object.
It can be used to define collections that are generated at runtime and marked using @Transient
in the
containing
business or data object class.
Field Summary | |
---|---|
protected String |
dataObjectClass
|
protected String |
description
|
protected String |
elementLabel
|
protected String |
label
|
protected Integer |
maxOccurs
|
protected Integer |
minOccurs
|
protected String |
name
|
protected String |
shortLabel
|
protected String |
summary
|
Fields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase |
---|
id |
Constructor Summary | |
---|---|
CollectionDefinition()
default constructor |
Method Summary | |
---|---|
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass)
Directly validate simple fields, call completeValidation on Definition fields |
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass,
ValidationTrace tracer)
Directly validate simple fields, call completeValidation on Definition fields. |
String |
getDataObjectClass()
gets the data object class |
String |
getDescription()
gets the description |
String |
getElementLabel()
Gets the elementLabel attribute |
String |
getLabel()
gets the label |
Integer |
getMaximumNumberOfElements()
|
Integer |
getMaxOccurs()
gets maximum amount of items in this collection |
Integer |
getMinimumNumberOfElements()
|
Integer |
getMinOccurs()
gets the minimum amount of items in this collection |
String |
getName()
gets the name of the collection |
String |
getShortLabel()
gets the short label |
String |
getSummary()
gets the summary |
void |
setDataObjectClass(String dataObjectClass)
sets the data object class |
void |
setDescription(String description)
sets the description |
void |
setElementLabel(String elementLabel)
gets the element label |
void |
setLabel(String label)
sets the label |
void |
setMaxOccurs(Integer maxOccurs)
sets maximum amount of items in this collection |
void |
setMinOccurs(Integer minOccurs)
gets the minimum amount of items in this collection |
void |
setName(String name)
sets the name of the collection |
void |
setShortLabel(String shortLabel)
sets the short label |
void |
setSummary(String summary)
gets the summary |
String |
toString()
|
Methods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase |
---|
afterPropertiesSet, getId, setId |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode |
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.datadictionary.DictionaryBean |
---|
getComponentCode, getNamespaceCode |
Field Detail |
---|
protected String dataObjectClass
protected String name
protected String label
protected String shortLabel
protected String elementLabel
protected String summary
protected String description
protected Integer minOccurs
protected Integer maxOccurs
Constructor Detail |
---|
public CollectionDefinition()
Method Detail |
---|
public String getName()
getName
in interface Constrainable
public void setName(String name)
name
- - the collection name
IllegalArgumentException
- if the name is blankpublic String getLabel()
public void setLabel(String label)
label
- - a descriptive string to use for a labelpublic String getShortLabel()
public void setShortLabel(String shortLabel)
shortLabel
- - the short label
IllegalArgumentException
- when shortLabel
is blankpublic String getElementLabel()
public void setElementLabel(String elementLabel)
The elementLabel defines the name to be used for a single object within the collection. For example: "Address" may be the name of one object within the "Addresses" collection.
public String getSummary()
summary element is used to provide a short description of the attribute or collection. This is designed to be used for help purposes.
public void setSummary(String summary)
public String getDescription()
The description element is used to provide a long description of the attribute or collection. This is designed to be used for help purposes.
public void setDescription(String description)
description
- - the description to setpublic String getDataObjectClass()
This is the Java class type of the object contained in this collection
public void setDataObjectClass(String dataObjectClass)
dataObjectClass
- the dataObjectClass to setpublic void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
completeValidation
in interface DataDictionaryDefinition
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationDataDictionaryEntry.completeValidation()
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer)
DataDictionaryEntry.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)
public String toString()
toString
in class Object
Object.toString()
public Integer getMaximumNumberOfElements()
getMaximumNumberOfElements
in interface CollectionSizeConstraint
CollectionSizeConstraint.getMaximumNumberOfElements()
public Integer getMinimumNumberOfElements()
getMinimumNumberOfElements
in interface CollectionSizeConstraint
CollectionSizeConstraint.getMinimumNumberOfElements()
public Integer getMinOccurs()
public void setMinOccurs(Integer minOccurs)
minOccurs
- the minOccurs to setpublic Integer getMaxOccurs()
public void setMaxOccurs(Integer maxOccurs)
maxOccurs
- the maxOccurs to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |