public class SortConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_DISCARD_INVALID_SORT |
boolean |
discardInvalidSort |
java.util.List<SortBy> |
sortBy |
Constructor and Description |
---|
SortConfig() |
SortConfig(SortConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SortConfig.
|
static SortConfig |
fromString(java.lang.String s)
String representation of this SortConfig.
|
java.util.List<SortBy> |
getSortBy()
Ordered list of expresion that defines a lexicographical order (documents having the same value for the first criteria are then ordered using the second critera, and so on).
|
java.util.Map<java.lang.String,SortBy> |
getSortByAsMap()
Get the map of SortBy, indexed by name
|
SortBy |
getSortByByName(java.lang.String _lookup)
Get the SortBy for which the name matches _lookup
|
boolean |
isDiscardInvalidSort()
Auto discard sortBy not allowed rather than sending an error.
|
SortConfig |
makeCopy()
Creates and returns a deep copy of this SortConfig.
|
static SortConfig |
readFrom(java.io.InputStream is)
Read this SortConfig from an XML fragment.
|
boolean |
removeSortByByName(java.lang.String _lookup)
Removes the SortBy for which the name matches _lookup
|
void |
setDiscardInvalidSort(boolean discardInvalidSort)
Auto discard sortBy not allowed rather than sending an error.
|
java.lang.String |
toString()
String representation of this SortConfig.
|
SortConfig |
withDiscardInvalidSort(boolean discardInvalidSort) |
SortConfig |
withDiscardInvalidSort(java.lang.Boolean discardInvalidSort) |
SortConfig |
withSortBy(java.util.Collection<SortBy> __values) |
SortConfig |
withSortBy(SortBy... __values)
Ordered list of expresion that defines a lexicographical order (documents having the same value for the first criteria are then ordered using the second critera, and so on).
|
void |
writeTo(java.io.OutputStream os)
Write this SortConfig as an XML fragment
|
public java.util.List<SortBy> sortBy
public boolean discardInvalidSort
public static final boolean DEFAULT_DISCARD_INVALID_SORT
public SortConfig()
public SortConfig(SortConfig o)
public java.util.List<SortBy> getSortBy()
public SortBy getSortByByName(java.lang.String _lookup)
public java.util.Map<java.lang.String,SortBy> getSortByAsMap()
public boolean removeSortByByName(java.lang.String _lookup)
public SortConfig withSortBy(SortBy... __values)
public SortConfig withSortBy(java.util.Collection<SortBy> __values)
public void setDiscardInvalidSort(boolean discardInvalidSort)
public boolean isDiscardInvalidSort()
public SortConfig withDiscardInvalidSort(boolean discardInvalidSort)
public SortConfig withDiscardInvalidSort(java.lang.Boolean discardInvalidSort)
public SortConfig makeCopy()
public static SortConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static SortConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.