public class Sort extends Object implements Serializable
Java class for Sort complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Sort"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="property" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="sortOrder" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
static Sort |
EMPTY_INSTANCE |
protected String |
property |
protected String |
sortOrder |
Constructor and Description |
---|
Sort() |
Modifier and Type | Method and Description |
---|---|
Sort |
copy()
Deep copies the fields of the this model into a new instance of this class and returns it.
|
Sort |
copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.
|
protected Sort |
copy(Sort nobj,
boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
|
boolean |
equals(Object o) |
String |
getProperty()
The object property for this simple expression.
|
String |
getSortOrder()
The sort order for the given property.
|
int |
hashCode() |
void |
setProperty(String value)
Sets the value of the property property.
|
void |
setSortOrder(String value)
Sets the value of the sortOrder property.
|
String |
toString() |
Sort |
withProperty(String newValue)
Sets the property property to the given newValue and returns this instance.
|
Sort |
withSortOrder(String newValue)
Sets the sortOrder property to the given newValue and returns this instance.
|
protected String property
protected String sortOrder
public static final Sort EMPTY_INSTANCE
public String getProperty()
Example:
// Object Type <xs:complexType name="Order"> <xs:sequence> <xs:element name="item"> <xs:complexType> <xs:sequence> <xs:element name="description"/> </xs:sequence> <xs:attribute name="price"/> </xs:complexType> </xs:element> <xs:element name="userName"/> </xs:sequence> <xs:attribute name="id"/> </xs:complexType> // property names for addressable properties: Order.userName -> "userName" Order.id -> "[@id]" Order.item.description -> "item/description" Order.item.price -> "item[@price]"
String
public void setProperty(String value)
value
- allowed object is
String
public String getSortOrder()
String
public void setSortOrder(String value)
value
- allowed object is
String
public Sort copy()
public Sort copy(boolean isDeep)
protected Sort copy(Sort nobj, boolean isDeep)
public Sort withProperty(String newValue)