eu.planets_project.services.datatypes
Class ServiceReport

java.lang.Object
  extended by eu.planets_project.services.datatypes.ServiceReport

public final class ServiceReport
extends java.lang.Object

A report from a preservation service defined based on the need identified in the 1st and 4th Service Developers Meetings. Where possible, information concerning the quality of the outputs should be placed in Events associated with DigitalObjects.


Nested Class Summary
static class ServiceReport.Status
          Service report status.
static class ServiceReport.Type
          Type of information returned by a service.
 
Constructor Summary
ServiceReport(ServiceReport.Type type, ServiceReport.Status status, java.lang.String message)
          Create a service report with specified status, type and message.
ServiceReport(ServiceReport.Type type, ServiceReport.Status status, java.lang.String message, java.util.List<Property> properties)
          Create a service report with specified status, type and message.
 
Method Summary
 java.lang.String getMessage()
           
 java.util.List<Property> getProperties()
           
 ServiceReport.Status getStatus()
           
 ServiceReport.Type getType()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceReport

public ServiceReport(ServiceReport.Type type,
                     ServiceReport.Status status,
                     java.lang.String message)
Create a service report with specified status, type and message.

Parameters:
type - The Type enum element
status - The Status enum element
message - The message

ServiceReport

public ServiceReport(ServiceReport.Type type,
                     ServiceReport.Status status,
                     java.lang.String message,
                     java.util.List<Property> properties)
Create a service report with specified status, type and message.

Parameters:
type - The Type enum element
status - The Status enum element
message - The message
properties - A list of ad hoc properties
Method Detail

getMessage

public java.lang.String getMessage()
Returns:
The message

getStatus

public ServiceReport.Status getStatus()
Returns:
The status, an element of ServiceReport.Status

getType

public ServiceReport.Type getType()
Returns:
The type, an element of ServiceReport.Type

getProperties

public java.util.List<Property> getProperties()
Returns:
An unmodifiable copy of the list of Property objects associated with this ServiceReport

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.