eu.planets_project.services.validate
Class ValidateResult

java.lang.Object
  extended by eu.planets_project.services.validate.ValidateResult

public final class ValidateResult
extends Object

Result type for validation services.

Author:
Andy Jackson, Asger Blekinge-Rasmussen,

Nested Class Summary
static class ValidateResult.Builder
          Builder for ValidateResult instances.
static class ValidateResult.Message
          Messages about errors and warnings collected during the validation.
 
Method Summary
 List<ValidateResult.Message> getErrors()
           
 List<Property> getProperties()
           
 ServiceReport getReport()
           
 URI getThisFormat()
           
 List<ValidateResult.Message> getWarnings()
           
 boolean isOfThisFormat()
           
 boolean isValidInRegardToThisFormat()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getErrors

public List<ValidateResult.Message> getErrors()
Returns:
A copy of the collected errors in the file
See Also:
errors

getWarnings

public List<ValidateResult.Message> getWarnings()
Returns:
A copy of the collected warnings
See Also:
errors

getReport

public ServiceReport getReport()
Returns:
the report

isOfThisFormat

public boolean isOfThisFormat()
Returns:
whether or not the file was of this format
See Also:
ofThisFormat

isValidInRegardToThisFormat

public boolean isValidInRegardToThisFormat()
Returns:
whether or not the file was valid in regards to this format
See Also:
validInRegardToThisFormat

getThisFormat

public URI getThisFormat()
Returns:
This format
See Also:
thisFormat

getProperties

public List<Property> getProperties()
Returns:
the properties


Copyright © 2013 Open Planets Foundation. All Rights Reserved.