xmlgp
Class Representation

java.lang.Object
  extended by xmlgp.Representation

public class Representation
extends java.lang.Object

This class is the data holder for Representation.
It has setters and getters to the attributes of Representation.

It also has the annotations which will be used by jsefa to deserialize representation XML element to representation object and to serialize representation object to representation XML element.

Author:
dharani

Constructor Summary
Representation()
           
 
Method Summary
 int getId()
          Returns the id of the representation.
 Node getNode()
          Returns the node which represents the results.
 java.util.List<Statistics> getStatistics()
          Returns the list of statistical measures of the representation.
 RepresentationType getType()
          Returns the type of the representation.
 void setAttributes(int id, RepresentationType type, java.util.List<Statistics> statistics, Node node)
          Sets all the attributes of this class.
 void setId(int id)
          Sets the id of the representation.
 void setNode(Node node)
          Sets the node which represents the results.
 void setStatistics(java.util.List<Statistics> statistics)
          Sets the list of statistical measures of the representation.
 void setType(RepresentationType type)
          Sets the type of the representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Representation

public Representation()
Method Detail

setAttributes

public void setAttributes(int id,
                          RepresentationType type,
                          java.util.List<Statistics> statistics,
                          Node node)
Sets all the attributes of this class. This method is just for convenience to set all attributes at once instead of setting one by one. Null is passed if an attribute doesn't need to be set.

Parameters:
id - the id of representation to set
type - the type of representation to set
statistics - the list of statistics to set
node - the node which represents the results to set

getId

public int getId()
Returns the id of the representation.

Returns:
the id of the representation

setId

public void setId(int id)
Sets the id of the representation.

Parameters:
id - the id of representation to set

getType

public RepresentationType getType()
Returns the type of the representation.

Returns:
the type of the representation

setType

public void setType(RepresentationType type)
Sets the type of the representation.

Parameters:
type - the type of representation to set

getStatistics

public java.util.List<Statistics> getStatistics()
Returns the list of statistical measures of the representation.

Returns:
the list of statistical measures of the representation

setStatistics

public void setStatistics(java.util.List<Statistics> statistics)
Sets the list of statistical measures of the representation.

Parameters:
statistics - list of statistical measures to set

getNode

public Node getNode()
Returns the node which represents the results.

Returns:
the node which represents the results

setNode

public void setNode(Node node)
Sets the node which represents the results.

Parameters:
node - the node which represents the results to set