public class ImportRequestValidator extends java.lang.Object implements util.validation.Validator<Error,ImportRequest>
ImportRequest
.
Validation is carried out using field parsers to check whether it's possible
to instantiate valid values from the provided input fields and if the validate
method returns successfully (i.e. right
value) the parsed values will be available through the various getters
provided by this class.Constructor and Description |
---|
ImportRequestValidator() |
Modifier and Type | Method and Description |
---|---|
java.util.List<PositiveN> |
getAnnotationIds() |
java.util.Optional<DatasetId> |
getDatasetId() |
Email |
getEmail() |
java.net.URI |
getOmero() |
ImportRequest |
getRequest() |
java.util.Optional<ScreenId> |
getScreenId() |
java.lang.String |
getSession() |
java.net.URI |
getTarget() |
java.util.List<TextAnnotation> |
getTextAnnotations() |
util.object.Either<Error,ImportRequest> |
validate(ImportRequest r) |
public util.object.Either<Error,ImportRequest> validate(ImportRequest r)
validate
in interface util.validation.Validator<Error,ImportRequest>
public ImportRequest getRequest()
public Email getEmail()
public java.net.URI getTarget()
public java.net.URI getOmero()
public java.lang.String getSession()
public java.util.Optional<DatasetId> getDatasetId()
public java.util.Optional<ScreenId> getScreenId()
public java.util.List<TextAnnotation> getTextAnnotations()
public java.util.List<PositiveN> getAnnotationIds()