Class ValidationModelImpl
java.lang.Object
org.apache.sling.validation.impl.model.ValidationModelImpl
- All Implemented Interfaces:
ValidationModel
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the paths under which resources will be validated by this model.Returns the expected children for a resource validated by this model.Returns the properties validated by this model.Returns the type of resource this model validates.inthashCode()toString()
-
Method Details
-
getResourceProperties
Description copied from interface:ValidationModelReturns the properties validated by this model.- Specified by:
getResourcePropertiesin interfaceValidationModel- Returns:
- the properties list (never
null, but might be empty list)
-
getValidatingResourceType
Description copied from interface:ValidationModelReturns the type of resource this model validates.- Specified by:
getValidatingResourceTypein interfaceValidationModel- Returns:
- the resource type to be validated, never
null
-
getApplicablePaths
Description copied from interface:ValidationModelReturns the paths under which resources will be validated by this model. Might return a single element array containing only the empty string, in which case the validation model has no path restriction.- Specified by:
getApplicablePathsin interfaceValidationModel- Returns:
- a path array. Is never
nullnor an empty collection.
-
getChildren
Description copied from interface:ValidationModelReturns the expected children for a resource validated by this model.- Specified by:
getChildrenin interfaceValidationModel- Returns:
- the children list (can be empty if there are no children), never
null
-
getSource
- Specified by:
getSourcein interfaceValidationModel- Returns:
- a string indicating the original source of this validation model, e.g. a resource path
-
toString
-
hashCode
public int hashCode() -
equals
-