Package com.floragunn.codova.validation
Class ValidatingDocNode.ListAttribute
- java.lang.Object
-
- com.floragunn.codova.validation.ValidatingDocNode.AbstractAttribute<ValidatingDocNode.ListAttribute>
-
- com.floragunn.codova.validation.ValidatingDocNode.ListAttribute
-
- Enclosing class:
- ValidatingDocNode
public class ValidatingDocNode.ListAttribute extends ValidatingDocNode.AbstractAttribute<ValidatingDocNode.ListAttribute>
-
-
Field Summary
-
Fields inherited from class com.floragunn.codova.validation.ValidatingDocNode.AbstractAttribute
documentNode, expandedVariable, expected, fullAttributePath, name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatingDocNode.IntegerListAttributeinRange(int min, int max)ValidatingDocNode.ListAttributeminElements(int minElements)List<DayOfWeek>ofDayOfWeek()com.floragunn.fluent.collections.ImmutableList<Integer>ofIntegers()List<com.jayway.jsonpath.JsonPath>ofJsonPath()<T> ValidationResult<com.floragunn.fluent.collections.ImmutableList<T>>ofObjectsParsedBy(Parser.ReturningValidationResult<T,Parser.Context> parser)<T> com.floragunn.fluent.collections.ImmutableList<T>ofObjectsParsedBy(Parser<T,Parser.Context> parser)<T> com.floragunn.fluent.collections.ImmutableList<T>ofObjectsParsedBy(ValidatingFunction<DocNode,T> parser)<T> com.floragunn.fluent.collections.ImmutableList<T>ofObjectsParsedByString(ValidatingFunction<String,T> parser)com.floragunn.fluent.collections.ImmutableList<String>ofStrings()<T> com.floragunn.fluent.collections.ImmutableList<Template<T>>ofTemplates(ValidatingFunction<String,T> parser)com.floragunn.fluent.collections.ImmutableList<URI>ofURIs()ValidatingDocNode.StringListAttributevalidatedBy(Predicate<String> validationPredicate)ValidatingDocNode.StringListAttributewithDefault(String... defaultValue)ValidatingDocNode.ListAttributewithEmptyListAsDefault()-
Methods inherited from class com.floragunn.codova.validation.ValidatingDocNode.AbstractAttribute
expandVariable, expandVariable, expandVariables, expandVariablesForStrings, expected, getAttributePathForValidationError
-
-
-
-
Method Detail
-
minElements
public ValidatingDocNode.ListAttribute minElements(int minElements)
-
withEmptyListAsDefault
public ValidatingDocNode.ListAttribute withEmptyListAsDefault()
-
withDefault
public ValidatingDocNode.StringListAttribute withDefault(String... defaultValue)
-
validatedBy
public ValidatingDocNode.StringListAttribute validatedBy(Predicate<String> validationPredicate)
-
inRange
public ValidatingDocNode.IntegerListAttribute inRange(int min, int max)
-
ofStrings
public com.floragunn.fluent.collections.ImmutableList<String> ofStrings()
-
ofIntegers
public com.floragunn.fluent.collections.ImmutableList<Integer> ofIntegers()
-
ofJsonPath
public List<com.jayway.jsonpath.JsonPath> ofJsonPath()
-
ofTemplates
public <T> com.floragunn.fluent.collections.ImmutableList<Template<T>> ofTemplates(ValidatingFunction<String,T> parser)
-
ofURIs
public com.floragunn.fluent.collections.ImmutableList<URI> ofURIs()
-
ofObjectsParsedByString
public <T> com.floragunn.fluent.collections.ImmutableList<T> ofObjectsParsedByString(ValidatingFunction<String,T> parser)
-
ofObjectsParsedBy
public <T> com.floragunn.fluent.collections.ImmutableList<T> ofObjectsParsedBy(ValidatingFunction<DocNode,T> parser)
-
ofObjectsParsedBy
public <T> com.floragunn.fluent.collections.ImmutableList<T> ofObjectsParsedBy(Parser<T,Parser.Context> parser)
-
ofObjectsParsedBy
public <T> ValidationResult<com.floragunn.fluent.collections.ImmutableList<T>> ofObjectsParsedBy(Parser.ReturningValidationResult<T,Parser.Context> parser)
-
-