eu.scape_project.watch.adaptor.c3po.common
Class ProfileResult

java.lang.Object
  extended by eu.scape_project.watch.adaptor.c3po.common.ProfileResult
All Implemented Interfaces:
ResultInterface

public class ProfileResult
extends Object
implements ResultInterface

A simple profile result object.

Author:
Petar Petrov

Constructor Summary
ProfileResult()
          The default constructor initializes the result list.
ProfileResult(List<PropertyValue> result)
          Initializes this object and passes the result list.
 
Method Summary
 void add(List<PropertyValue> values)
          Adds all values of the passed list to the result list if the list is not null.
 void add(PropertyValue v)
          Adds the value to the result list.
 List<PropertyValue> getPropertyValues()
          Retrieves the property values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileResult

public ProfileResult()
The default constructor initializes the result list.


ProfileResult

public ProfileResult(List<PropertyValue> result)
Initializes this object and passes the result list.

Parameters:
result - the result list to use.
Method Detail

add

public void add(PropertyValue v)
Adds the value to the result list.

Parameters:
v - the value to add.

add

public void add(List<PropertyValue> values)
Adds all values of the passed list to the result list if the list is not null.

Parameters:
values - the values to add.

getPropertyValues

public List<PropertyValue> getPropertyValues()
Retrieves the property values.

Specified by:
getPropertyValues in interface ResultInterface
Returns:
the list of properties.


Copyright © 2012. All Rights Reserved.