Class CompositeStep
- java.lang.Object
-
- io.openapiprocessor.jsonschema.validator.steps.CompositeStep
-
- All Implemented Interfaces:
Annotations,ValidationStep
- Direct Known Subclasses:
AllOfStep,AnyOfStep,ContainsStep,DependenciesStep,DependentSchemasStep,DependentSchemaStep,DynamicRefStep,NotStep,OneOfStep,PropertyNamesStep,RefStep,RequiredStep,SchemaStep
public abstract class CompositeStep extends java.lang.Object implements ValidationStep, Annotations
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<ValidationStep>steps
-
Constructor Summary
Constructors Constructor Description CompositeStep()CompositeStep(java.util.Collection<ValidationStep> steps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ValidationStep step)@Nullable AnnotationgetAnnotation()java.util.Collection<Annotation>getAnnotations(java.lang.String keyword)@Nullable ValidationMessagegetMessage()java.util.Collection<ValidationStep>getSteps()booleanisEmpty()booleanisNotEmpty()booleanisValid()AnnotationsCompositemergeAnnotations(Annotations annotations)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.openapiprocessor.jsonschema.validator.steps.ValidationStep
getAbsoluteKeywordLocation, getInstanceLocation, getKeywordLocation, isValidatable
-
-
-
-
Field Detail
-
steps
protected final java.util.Collection<ValidationStep> steps
-
-
Constructor Detail
-
CompositeStep
public CompositeStep()
-
CompositeStep
public CompositeStep(java.util.Collection<ValidationStep> steps)
-
-
Method Detail
-
isNotEmpty
public boolean isNotEmpty()
-
isEmpty
public boolean isEmpty()
-
add
public void add(ValidationStep step)
- Specified by:
addin interfaceValidationStep
-
getMessage
public @Nullable ValidationMessage getMessage()
- Specified by:
getMessagein interfaceValidationStep
-
getAnnotation
public @Nullable Annotation getAnnotation()
- Specified by:
getAnnotationin interfaceValidationStep
-
getSteps
public java.util.Collection<ValidationStep> getSteps()
- Specified by:
getStepsin interfaceValidationStep
-
getAnnotations
public java.util.Collection<Annotation> getAnnotations(java.lang.String keyword)
- Specified by:
getAnnotationsin interfaceAnnotations- Specified by:
getAnnotationsin interfaceValidationStep
-
mergeAnnotations
public AnnotationsComposite mergeAnnotations(Annotations annotations)
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceValidationStep
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-