Package org.tweetyproject.plugin
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
ConstructorDescriptionConstructs anOutputField
with an empty value and no description.OutputField
(String val) Constructs anOutputField
with the specified value and no description.OutputField
(String description, String val) Constructs anOutputField
with the specified description and value. -
Method Summary
-
Constructor Details
-
OutputField
public OutputField()Constructs anOutputField
with an empty value and no description. -
OutputField
Constructs anOutputField
with 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.
-