Class OutputField
java.lang.Object
org.tweetyproject.plugin.OutputField
This class models individual fields used for the PluginOutput.
Each field consists of a description and its corresponding value.
For example, in the following case:
Query: a + b || !a + !b
"Query:" is the description and "a + b || !a + !b" is the value.
Authors: Bastian Wolf
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anOutputFieldwith an empty value and no description.OutputField(String val) Constructs anOutputFieldwith the specified value and no description.OutputField(String description, String val) Constructs anOutputFieldwith the specified description and value. -
Method Summary
-
Constructor Details
-
OutputField
public OutputField()Constructs anOutputFieldwith an empty value and no description. -
OutputField
Constructs anOutputFieldwith the specified value and no description.- Parameters:
val- the value to be associated with this field.
-
OutputField
-
-
Method Details
-
merge
Merges the description and value into a single string representation.The resulting string is formatted as:
description: value
- Returns:
- a string that merges the description and value.
-