eu.planets_project.services.compare
Class CompareResult

java.lang.Object
  extended by eu.planets_project.services.compare.CompareResult

public final class CompareResult
extends Object

Result type for the Compare interface.

Author:
Fabian Steeg (fabian.steeg@uni-koeln.de)

Constructor Summary
CompareResult(ArrayList<Property> props, String fragmentID, ServiceReport report, List<CompareResult> embedded)
          Deprecated. 
CompareResult(List<Property> result, String fragmentID, ServiceReport report)
          Deprecated. 
CompareResult(List<PropertyComparison> properties, ServiceReport report)
           
CompareResult(List<PropertyComparison> properties, ServiceReport report, List<CompareResult> results)
           
CompareResult(List<PropertyComparison> properties, ServiceReport report, List<CompareResult> results, String fragmentID)
           
CompareResult(List<PropertyComparison> properties, ServiceReport report, String fragmentID)
           
 
Method Summary
 List<PropertyComparison> getComparisons()
           
 String getFragmentID()
           
 List<Property> getProperties()
          Deprecated. 
 ServiceReport getReport()
           
 List<CompareResult> getResults()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareResult

public CompareResult(List<PropertyComparison> properties,
                     ServiceReport report)
Parameters:
properties - The result properties
report - The report

CompareResult

public CompareResult(List<PropertyComparison> properties,
                     ServiceReport report,
                     String fragmentID)
Parameters:
properties - The result properties
report - The report
fragmentID - the id of the fragment the result refers to

CompareResult

public CompareResult(List<PropertyComparison> properties,
                     ServiceReport report,
                     List<CompareResult> results)
Parameters:
properties - The result properties
report - The report
results - The embedded results

CompareResult

public CompareResult(List<PropertyComparison> properties,
                     ServiceReport report,
                     List<CompareResult> results,
                     String fragmentID)
Parameters:
properties - The result properties
report - The report
results - The embedded results
fragmentID - the id of the fragment the result refers to

CompareResult

@Deprecated
public CompareResult(List<Property> result,
                                String fragmentID,
                                ServiceReport report)
Deprecated. 

Parameters:
result -
report2 -

CompareResult

@Deprecated
public CompareResult(ArrayList<Property> props,
                                String fragmentID,
                                ServiceReport report,
                                List<CompareResult> embedded)
Deprecated. 

Parameters:
arrayList -
object -
serviceReport -
embedded -
Method Detail

getComparisons

public List<PropertyComparison> getComparisons()
Returns:
An unmodifiable copy of the result comparisons

getProperties

@Deprecated
public List<Property> getProperties()
Deprecated. 

Note that this skips a lot of important info, and you should use getComparisons() instead.

Returns:
An unmodifiable copy of the result properties

getReport

public ServiceReport getReport()
Returns:
The report

getResults

public List<CompareResult> getResults()
Returns:
An unmodifiable copy of the embedded results

getFragmentID

public String getFragmentID()
Returns:
The fragment ID


Copyright © 2013 Open Planets Foundation. All Rights Reserved.