|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.nodetype.EffectiveNodeType
public class EffectiveNodeType
An EffectiveNodeType represents one or more
NodeTypes as one 'effective' node type where inheritance
is resolved.
EffectiveNodeType are immutable.
| Method Summary | |
|---|---|
void |
checkAddNodeConstraints(Name name)
|
void |
checkAddNodeConstraints(Name name,
Name nodeTypeName,
NodeTypeRegistry ntReg)
|
void |
checkRemoveItemConstraints(Name name)
|
void |
checkRemoveNodeConstraints(Name name)
|
void |
checkRemovePropertyConstraints(Name name)
|
static void |
checkSetPropertyValueConstraints(PropDef pd,
InternalValue[] values)
Tests if the value constraints defined in the property definition pd are satisfied by the the specified values. |
protected java.lang.Object |
clone()
|
ItemDef[] |
getAllItemDefs()
|
NodeDef[] |
getAllNodeDefs()
|
Name[] |
getAllNodeTypes()
|
PropDef[] |
getAllPropDefs()
|
NodeDef |
getApplicableChildNodeDef(Name name,
Name nodeTypeName,
NodeTypeRegistry ntReg)
Returns the applicable child node definition for a child node with the specified name and node type. |
PropDef |
getApplicablePropertyDef(Name name,
int type)
Returns the applicable property definition for a property with the specified name and type. |
PropDef |
getApplicablePropertyDef(Name name,
int type,
boolean multiValued)
Returns the applicable property definition for a property with the specified name, type and multiValued characteristic. |
NodeDef[] |
getAutoCreateNodeDefs()
|
PropDef[] |
getAutoCreatePropDefs()
|
Name[] |
getInheritedNodeTypes()
|
NodeDef[] |
getMandatoryNodeDefs()
|
PropDef[] |
getMandatoryPropDefs()
|
Name[] |
getMergedNodeTypes()
|
ItemDef[] |
getNamedItemDefs()
|
ItemDef[] |
getNamedItemDefs(Name name)
|
NodeDef[] |
getNamedNodeDefs()
|
NodeDef[] |
getNamedNodeDefs(Name name)
|
PropDef[] |
getNamedPropDefs()
|
PropDef[] |
getNamedPropDefs(Name name)
|
ItemDef[] |
getUnnamedItemDefs()
|
NodeDef[] |
getUnnamedNodeDefs()
|
PropDef[] |
getUnnamedPropDefs()
|
boolean |
hasNamedItemDef(Name name)
|
boolean |
includesNodeType(Name nodeTypeName)
Determines whether this effective node type representation includes (either through inheritance or aggregation) the given node type. |
boolean |
includesNodeTypes(Name[] nodeTypeNames)
Determines whether this effective node type representation includes (either through inheritance or aggregation) all of the given node types. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Name[] getMergedNodeTypes()
public Name[] getInheritedNodeTypes()
public Name[] getAllNodeTypes()
public ItemDef[] getAllItemDefs()
public ItemDef[] getNamedItemDefs()
public ItemDef[] getUnnamedItemDefs()
public boolean hasNamedItemDef(Name name)
public ItemDef[] getNamedItemDefs(Name name)
public NodeDef[] getAllNodeDefs()
public NodeDef[] getNamedNodeDefs()
public NodeDef[] getNamedNodeDefs(Name name)
public NodeDef[] getUnnamedNodeDefs()
public NodeDef[] getAutoCreateNodeDefs()
public PropDef[] getAllPropDefs()
public PropDef[] getNamedPropDefs()
public PropDef[] getNamedPropDefs(Name name)
public PropDef[] getUnnamedPropDefs()
public PropDef[] getAutoCreatePropDefs()
public PropDef[] getMandatoryPropDefs()
public NodeDef[] getMandatoryNodeDefs()
public boolean includesNodeType(Name nodeTypeName)
nodeTypeName - name of node type
true if the given node type is included, otherwise
falsepublic boolean includesNodeTypes(Name[] nodeTypeNames)
nodeTypeNames - array of node type names
true if all of the given node types are included,
otherwise false
public static void checkSetPropertyValueConstraints(PropDef pd,
InternalValue[] values)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
pd are satisfied by the the specified values.
Note that the protected flag is not checked. Also note that no
type conversions are attempted if the type of the given values does not
match the required type as specified in the given definition.
pd - The definiton of the propertyvalues - An array of InternalValue objects.
javax.jcr.nodetype.ConstraintViolationException - if the value constraints defined in
the property definition are satisfied
by the the specified values
javax.jcr.RepositoryException - if another error occurs
public void checkAddNodeConstraints(Name name)
throws javax.jcr.nodetype.ConstraintViolationException
name -
javax.jcr.nodetype.ConstraintViolationException
public void checkAddNodeConstraints(Name name,
Name nodeTypeName,
NodeTypeRegistry ntReg)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.nodetype.NoSuchNodeTypeException
name - nodeTypeName - ntReg -
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.nodetype.NoSuchNodeTypeException
public NodeDef getApplicableChildNodeDef(Name name,
Name nodeTypeName,
NodeTypeRegistry ntReg)
throws javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.nodetype.ConstraintViolationException
name - nodeTypeName - ntReg -
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.nodetype.ConstraintViolationException - if no applicable child node definition
could be found
public PropDef getApplicablePropertyDef(Name name,
int type,
boolean multiValued)
throws javax.jcr.nodetype.ConstraintViolationException
name - type - multiValued -
javax.jcr.nodetype.ConstraintViolationException - if no applicable property definition
could be found
public PropDef getApplicablePropertyDef(Name name,
int type)
throws javax.jcr.nodetype.ConstraintViolationException
getApplicablePropertyDef(Name, int, boolean)
this method does not take the multiValued flag into account in the
selection algorithm. If there more than one applicable definitions then
the following rules are applied:
name - type -
javax.jcr.nodetype.ConstraintViolationException - if no applicable property definition
could be found
public void checkRemoveItemConstraints(Name name)
throws javax.jcr.nodetype.ConstraintViolationException
name -
javax.jcr.nodetype.ConstraintViolationException
public void checkRemoveNodeConstraints(Name name)
throws javax.jcr.nodetype.ConstraintViolationException
name -
javax.jcr.nodetype.ConstraintViolationException
public void checkRemovePropertyConstraints(Name name)
throws javax.jcr.nodetype.ConstraintViolationException
name -
javax.jcr.nodetype.ConstraintViolationExceptionprotected java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||