Class ConditionDefinition
java.lang.Object
com.inet.taskplanner.server.api.job.ConditionDefinition
Represents a condition for a
job which decides whether the result of the job must be processed
by resultActions or not.
A condition is identified with its key. The available conditions for a Job are included in
AbstractFactory.getInformation(GUID). When a job was executed, the condition is checked in the
job instance.
- Since:
- taskplanner 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ConditionDefinition instance.ConditionDefinition(@Nullable Map<String, String> properties) Creates a new ConditionDefinition instance. -
Method Summary
Modifier and TypeMethodDescription@Nonnull ConditionDefinitionMakes a deep copy of this condition definition.booleanGet the properties object from this condition definition.getProperty(String key) Returns the value of a property of this definitioninthashCode()removeProperty(String key) Removes a property of this definitionvoidsetProperty(@Nullable String key, @Nullable String value) Sets a property, defined by the key, to this definition
-
Constructor Details
-
ConditionDefinition
public ConditionDefinition()Creates a new ConditionDefinition instance.- Since:
- taskplanner 3.0
-
ConditionDefinition
Creates a new ConditionDefinition instance.- Parameters:
properties- the initial properties to be set,nullwill have no effect- Since:
- taskplanner 3.0
-
-
Method Details
-
getProperties
Get the properties object from this condition definition.- Returns:
- properties for this definition.
- Since:
- taskplanner 3.0
-
getProperty
Returns the value of a property of this definition- Parameters:
key- the key of the property- Returns:
- the value or
nullif there is no such property - Since:
- taskplanner 3.0
-
setProperty
Sets a property, defined by the key, to this definition- Parameters:
key- the key of the propertyvalue- the value to be set,nullwill not remove but setnull- Since:
- taskplanner 3.0
-
removeProperty
Removes a property of this definition- Parameters:
key- the key of the property- Returns:
- the previously set value
- Since:
- taskplanner 3.0
-
copyDefinition
Makes a deep copy of this condition definition.- Returns:
- a copy of this object
- Since:
- taskplanner 3.0
-
hashCode
public int hashCode() -
equals
-