public class SimpleExpression extends Expression implements Serializable
Example: (<property> <operator> [<argument> [<argument> ...]])
Java class for SimpleExpression complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SimpleExpression"> <complexContent> <extension base="{}Expression"> <sequence> <element name="argument" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="operator" use="required" type="{http://www.w3.org/2001/XMLSchema}normalizedString" /> <attribute name="property" use="required" type="{http://www.w3.org/2001/XMLSchema}normalizedString" /> </extension> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<String> |
arguments |
static SimpleExpression |
EMPTY_INSTANCE |
protected String |
operator |
protected String |
property |
Constructor and Description |
---|
SimpleExpression() |
Modifier and Type | Method and Description |
---|---|
SimpleExpression |
copy()
Deep copies the fields of the this model into a new instance of this class and returns it.
|
SimpleExpression |
copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.
|
protected SimpleExpression |
copy(SimpleExpression nobj,
boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
|
boolean |
equals(Object o) |
List<String> |
getArguments()
The arguments for this simple expression.
|
String |
getOperator()
The operator for this simple expression.
|
String |
getProperty()
The object property for this simple expression.
|
int |
hashCode() |
void |
setOperator(String value)
Sets the value of the operator property.
|
void |
setProperty(String value)
Sets the value of the property property.
|
String |
toString() |
SimpleExpression |
withArguments(Collection<? extends String> newValues)
Adds the given newValues to the current arguments property List and returns this instance.
|
SimpleExpression |
withArguments(String... newValues)
Adds the given newValues to the current arguments property List and returns this instance.
|
SimpleExpression |
withOperator(String newValue)
Sets the operator property to the given newValue and returns this instance.
|
SimpleExpression |
withProperty(String newValue)
Sets the property property to the given newValue and returns this instance.
|
copy
protected String operator
protected String property
public static final SimpleExpression EMPTY_INSTANCE
public List<String> getArguments()
Gets the value of the arguments property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the arguments property.
For example, to add a new item, do as follows:
getArguments().add(newItem);
Objects of the following type(s) are allowed in the list
String
public String getOperator()
String
public void setOperator(String value)
value
- allowed object is
String
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 int hashCode()
hashCode
in class Expression
public String toString()
toString
in class Expression
public boolean equals(Object o)
equals
in class Expression
public SimpleExpression copy()
copy
in class Expression
public SimpleExpression copy(boolean isDeep)
copy
in class Expression
protected SimpleExpression copy(SimpleExpression nobj, boolean isDeep)
public SimpleExpression withArguments(String... newValues)
public SimpleExpression withArguments(Collection<? extends String> newValues)
public SimpleExpression withOperator(String newValue)
public SimpleExpression withProperty(String newValue)