public interface QValueConstraint
QValueConstraint is used to check the syntax of a value
 constraint and to test if a specific value satisfies it.PropertyDefinition.getValueConstraints()| Modifier and Type | Field and Description | 
|---|---|
static QValueConstraint[] | 
EMPTY_ARRAY
Empty array of  
QValueConstraint. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
check(QValue value)
Check if the specified value matches this constraint. 
 | 
String | 
getString()
For constraints that are not namespace prefix mapping sensitive this
 method returns the same defined in
  
. | 
static final QValueConstraint[] EMPTY_ARRAY
QValueConstraint.void check(QValue value) throws javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
value - The value to be tested.javax.jcr.nodetype.ConstraintViolationException - If the specified value is
 null or does not matches the constraint.javax.jcr.RepositoryException - If another error occurs.String getString()
PropertyDefinition.getValueConstraints().
 
 Those that are namespace prefix mapping sensitive (e.g.
 NameConstraint, PathConstraint and
 ReferenceConstraint) return an internal string.
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.