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.
|
java.lang.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 ConstraintViolationException, RepositoryException
value
- The value to be tested.ConstraintViolationException
- If the specified value is
null
or does not matches the constraint.RepositoryException
- If another error occurs.java.lang.String getString()
PropertyDefinition#getValueConstraints()
.
Those that are namespace prefix mapping sensitive (e.g.
NameConstraint
, PathConstraint
and
ReferenceConstraint
) return an internal string.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"