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 |
embeddedDataObjectMetadata, generatedFromMetadata, id
componentCode, namespaceCode
Constructor and Description |
---|
SortDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass,
ValidationTrace tracer)
Empty implementation so that all subclasses do not need to implement this method if they have no local validation to perform.
|
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() |
completeValidation, getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadata
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dataDictionaryPostProcessing, 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, ValidationTrace tracer)
DataDictionaryDefinitionBase
completeValidation
in interface DataDictionaryDefinition
completeValidation
in class DataDictionaryDefinitionBase
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationtracer
- ValidationTrace
class used to track what was being validated at the time of any problems discoveredpublic void setAttributeNames(List<String> attributeNames)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.