public class SortDefinition extends DataDictionaryDefinitionBase
It contains an ascending/descending indicator and a list of attribute names. JSTL: defaultSort is a Map with the following keys: sortAscending (boolean String) and sortAttributes (Map). By the time JSTL export occurs, the optional attributeName from the defaultSort tag will have been converted into the first contained sortAttribute.
Modifier and Type | Field and Description |
---|---|
protected List<String> |
attributeNames |
protected boolean |
sortAscending |
id
Constructor and Description |
---|
SortDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass)
Directly validate simple fields
|
List<String> |
getAttributeNames() |
boolean |
getSortAscending()
Indicates that the items must be sorted in ascending order
|
void |
setAttributeName(String attributeName)
The sortAttribute element defines one part of the sort key.
|
void |
setAttributeNames(List<String> attributeNames)
The sortAttributes element allows a multiple-part sort key to be defined
JSTL: sortAttributes is a Map which is accessed using a key of "sortAttributes".
|
void |
setSortAscending(boolean sortAscending)
Setter for the flag to indicate ascending sorting of items
|
String |
toString() |
afterPropertiesSet, getId, setId
copy, copyProperties, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentCode, getNamespaceCode
protected boolean sortAscending
protected List<String> attributeNames
public SortDefinition()
public void setAttributeName(String attributeName)
IllegalArgumentException
- if the given attributeName is blankpublic List<String> getAttributeNames()
public boolean getSortAscending()
public void setSortAscending(boolean sortAscending)
sortAscending
- public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationDataDictionaryDefinition.completeValidation(Class, Class)
public String toString()
toString
in class Object
Object.toString()
public void setAttributeNames(List<String> attributeNames)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.