Package org.apache.jackrabbit.spi
Interface QValueConstraint
- All Known Implementing Classes:
ValueConstraint
public interface QValueConstraint
QValueConstraint is used to check the syntax of a value
constraint and to test if a specific value satisfies it.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QValueConstraint[]Empty array ofQValueConstraint. -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck if the specified value matches this constraint.For constraints that are not namespace prefix mapping sensitive this method returns the same defined in.PropertyDefinition.getValueConstraints()
-
Field Details
-
EMPTY_ARRAY
Empty array ofQValueConstraint.
-
-
Method Details
-
check
Check if the specified value matches this constraint.- Parameters:
value- The value to be tested.- Throws:
ConstraintViolationException- If the specified value isnullor does not matches the constraint.RepositoryException- If another error occurs.
-
getString
String getString()For constraints that are not namespace prefix mapping sensitive this method returns the same defined in.PropertyDefinition.getValueConstraints()Those that are namespace prefix mapping sensitive (e.g.
NameConstraint,PathConstraintandReferenceConstraint) return an internal string.- Returns:
- the internal definition String
-