org.apache.jackrabbit.core.nodetype
Class ValueConstraint
java.lang.Object
org.apache.jackrabbit.core.nodetype.ValueConstraint
public abstract class ValueConstraint
- extends Object
ValueConstraint and its subclasses are used to check the
syntax of a value constraint and to test if a specific value satisfies
it.
log
protected static org.slf4j.Logger log
EMPTY_ARRAY
public static final ValueConstraint[] EMPTY_ARRAY
ValueConstraint
protected ValueConstraint(String definition)
getDefinition
public String getDefinition()
- Returns the original (raw) definition of this constraint.
- Returns:
- the original (raw) definition of this constraint.
getDefinition
public 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,
String definition,
NamePathResolver resolver)
throws InvalidConstraintException
- Throws:
InvalidConstraintException
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.