eu.planets_project.services.validate
Class ValidateResult

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

public final class ValidateResult
extends java.lang.Object

Result type for validation services.


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
 java.util.List<ValidateResult.Message> getErrors()
           
 java.util.List<Property> getProperties()
           
 ServiceReport getReport()
           
 java.net.URI getThisFormat()
           
 java.util.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 java.util.List<ValidateResult.Message> getErrors()
Returns:
A copy of the collected errors in the file
See Also:
errors

getWarnings

public java.util.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 java.net.URI getThisFormat()
Returns:
This format
See Also:
thisFormat

getProperties

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


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