org.apache.jackrabbit.core.nodetype
Class ValueConstraint
java.lang.Object
org.apache.jackrabbit.core.nodetype.ValueConstraint
public abstract class ValueConstraint
- extends java.lang.Object
ValueConstraint and its subclasses are used to check the
syntax of a value constraint and to test if a specific value satisfies
it.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.slf4j.Logger log
EMPTY_ARRAY
public static final ValueConstraint[] EMPTY_ARRAY
ValueConstraint
protected ValueConstraint(java.lang.String definition)
getDefinition
public java.lang.String getDefinition()
- Returns the original (raw) definition of this constraint.
- Returns:
- the original (raw) definition of this constraint.
getDefinition
public java.lang.String getDefinition(NamePathResolver resolver)
- For constraints that are not namespace prefix mapping sensitive this
method returns the same result as
getDefinition().
Those that are namespace prefix mapping sensitive (e.g.
NameConstraint, PathConstraint and
ReferenceConstraint) use the given nsResolver
to reflect the current mapping in the returned value.
- Parameters:
resolver -
- Returns:
- the definition of this constraint.
create
public static ValueConstraint create(int type,
java.lang.String definition,
NamePathResolver resolver)
throws InvalidConstraintException
- Throws:
InvalidConstraintException
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.