dpvis.output
Class OutputElement

java.lang.Object
  extended by dpvis.output.OutputElement

public class OutputElement
extends java.lang.Object

Class for storing an abstract representation of single output sections generated by a dependency processor. Each dependency processor generates a list of such output elements. The description string identifies the type of output that can be used for clever formatting when the final output is generated. Note that in order for this to work the dynamic type of the data property must correspond with the description. The following predefined descriptions are available:

Author:
Felix

Field Summary
static java.lang.String DEPENDENCY_PAIR_PROBLEM
           
static java.lang.String HEADLINE1
           
static java.lang.String HEADLINE2
           
static java.lang.String HEADLINE3
           
static java.lang.String ORDERED_LIST
           
static java.lang.String PARAGRAPH
           
static java.lang.String PRECEDENCE
           
static java.lang.String RULE_LIST
           
static java.lang.String SEPARATOR
           
static java.lang.String STYLED_PARAGRAPH
           
static java.lang.String TABLE
           
static java.lang.String TABLE_LIST
           
static java.lang.String UNORDERED_LIST
           
 
Constructor Summary
OutputElement(java.lang.Object data, java.lang.String description)
           
 
Method Summary
 java.lang.Object getData()
           
 java.lang.String getDescription()
           
 void setData(java.lang.Object data)
           
 void setDescription(java.lang.String description)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAGRAPH

public static final java.lang.String PARAGRAPH
See Also:
Constant Field Values

RULE_LIST

public static final java.lang.String RULE_LIST
See Also:
Constant Field Values

DEPENDENCY_PAIR_PROBLEM

public static final java.lang.String DEPENDENCY_PAIR_PROBLEM
See Also:
Constant Field Values

UNORDERED_LIST

public static final java.lang.String UNORDERED_LIST
See Also:
Constant Field Values

ORDERED_LIST

public static final java.lang.String ORDERED_LIST
See Also:
Constant Field Values

PRECEDENCE

public static final java.lang.String PRECEDENCE
See Also:
Constant Field Values

TABLE

public static final java.lang.String TABLE
See Also:
Constant Field Values

HEADLINE1

public static final java.lang.String HEADLINE1
See Also:
Constant Field Values

HEADLINE2

public static final java.lang.String HEADLINE2
See Also:
Constant Field Values

HEADLINE3

public static final java.lang.String HEADLINE3
See Also:
Constant Field Values

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values

TABLE_LIST

public static final java.lang.String TABLE_LIST
See Also:
Constant Field Values

STYLED_PARAGRAPH

public static final java.lang.String STYLED_PARAGRAPH
See Also:
Constant Field Values
Constructor Detail

OutputElement

public OutputElement(java.lang.Object data,
                     java.lang.String description)
Method Detail

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getData

public java.lang.Object getData()

setData

public void setData(java.lang.Object data)