Package org.apache.jackrabbit.spi
Interface QValueConstraint
- 
- All Known Implementing Classes:
- ValueConstraint
 
 public interface QValueConstraintQValueConstraintis used to check the syntax of a value constraint and to test if a specific value satisfies it.- See Also:
- PropertyDefinition.getValueConstraints()
 
- 
- 
Field SummaryFields Modifier and Type Field Description static QValueConstraint[]EMPTY_ARRAYEmpty array ofQValueConstraint.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheck(QValue value)Check if the specified value matches this constraint.StringgetString()For constraints that are not namespace prefix mapping sensitive this method returns the same defined inPropertyDefinition.getValueConstraints()
 
- 
- 
- 
Field Detail- 
EMPTY_ARRAYstatic final QValueConstraint[] EMPTY_ARRAY Empty array ofQValueConstraint.
 
- 
 - 
Method Detail- 
checkvoid check(QValue value) throws ConstraintViolationException, RepositoryException Check if the specified value matches this constraint.- Parameters:
- value- The value to be tested.
- Throws:
- ConstraintViolationException- If the specified value is- nullor does not matches the constraint.
- RepositoryException- If another error occurs.
 
 - 
getStringString getString() For constraints that are not namespace prefix mapping sensitive this method returns the same defined inPropertyDefinition.getValueConstraints()Those that are namespace prefix mapping sensitive (e.g. NameConstraint,PathConstraintandReferenceConstraint) return an internal string.- Returns:
- the internal definition String
 
 
- 
 
-