public class Condition extends Object implements Serializable
Constructor and Description |
---|
Condition()
Instantiates a new Condition.
|
Condition(ConditionType conditionType)
Instantiates a new Condition with the specified
ConditionType . |
Modifier and Type | Method and Description |
---|---|
boolean |
containsParameter(String name)
Determines whether this condition contains the parameter identified by the specified name.
|
boolean |
equals(Object o) |
ConditionType |
getConditionType()
Retrieves the associated condition type.
|
String |
getConditionTypeId()
Retrieves the identifier of the associated condition type.
|
Object |
getParameter(String name)
Retrieves the parameter identified by the specified name.
|
Map<String,Object> |
getParameterValues()
Retrieves a Map of all parameter name - value pairs for this condition.
|
int |
hashCode() |
void |
setConditionType(ConditionType conditionType)
Sets the condition type.
|
void |
setConditionTypeId(String conditionTypeId)
Sets the identifier of the associated condition type.
|
void |
setParameter(String name,
Object value)
Sets the parameter identified by the specified name to the specified value.
|
void |
setParameterValues(Map<String,Object> parameterValues)
Sets the parameter name - value pairs for this profile.
|
String |
toString() |
public Condition()
public Condition(ConditionType conditionType)
ConditionType
.conditionType
- the condition typepublic ConditionType getConditionType()
public void setConditionType(ConditionType conditionType)
conditionType
- the condition typepublic String getConditionTypeId()
public void setConditionTypeId(String conditionTypeId)
conditionTypeId
- the identifier of the associated condition typepublic Map<String,Object> getParameterValues()
public void setParameterValues(Map<String,Object> parameterValues)
parameterValues
- a Map containing the parameter name - value pairs for this profilepublic boolean containsParameter(String name)
name
- the name identifying the parameter whose existence we want to determinetrue
if this condition contains a parameter with the specified name, false
otherwisepublic Object getParameter(String name)
name
- the name of the parameter to retrievenull
if no such parameter existspublic void setParameter(String name, Object value)
name
- the name of the parameter to setvalue
- the value of the parameterCopyright © 2014–2023 Apache Software Foundation. All rights reserved.