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.apache.log4j.Logger log
EMPTY_ARRAY
public static final ValueConstraint[] EMPTY_ARRAY
ValueConstraint
protected ValueConstraint(String definition)
equals
public boolean equals(Object other)
hashCode
public int hashCode()
- Returns zero to satisfy the Object equals/hashCode contract.
This class is mutable and not meant to be used as a hash key.
- Returns:
- always zero
- See Also:
Object.hashCode()
getDefinition
public String getDefinition()
- Returns the original (raw) definition of this constraint.
- Returns:
- the original (raw) definition of this constraint.
getDefinition
public String getDefinition(NamespaceResolver nsResolver)
- 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.
- Returns:
- the definition of this constraint.
create
public static ValueConstraint create(int type,
String definition,
NamespaceResolver nsResolver)
throws InvalidConstraintException
- Throws:
InvalidConstraintException
Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.