|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.nodetype.EffectiveNodeType
public class EffectiveNodeType
An EffectiveNodeType
represents one or more
NodeType
s 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 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
false
public 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 ConstraintViolationException, 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.
ConstraintViolationException
- if the value constraints defined in
the property definition are satisfied
by the the specified values
RepositoryException
- if another error occurspublic void checkAddNodeConstraints(Name name) throws ConstraintViolationException
name
-
ConstraintViolationException
public void checkAddNodeConstraints(Name name, Name nodeTypeName, NodeTypeRegistry ntReg) throws ConstraintViolationException, NoSuchNodeTypeException
name
- nodeTypeName
- ntReg
-
ConstraintViolationException
NoSuchNodeTypeException
public NodeDef getApplicableChildNodeDef(Name name, Name nodeTypeName, NodeTypeRegistry ntReg) throws NoSuchNodeTypeException, ConstraintViolationException
name
- nodeTypeName
- ntReg
-
NoSuchNodeTypeException
ConstraintViolationException
- if no applicable child node definition
could be foundpublic PropDef getApplicablePropertyDef(Name name, int type, boolean multiValued) throws ConstraintViolationException
name
- type
- multiValued
-
ConstraintViolationException
- if no applicable property definition
could be foundpublic PropDef getApplicablePropertyDef(Name name, int type) throws 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
-
ConstraintViolationException
- if no applicable property definition
could be foundpublic void checkRemoveItemConstraints(Name name) throws ConstraintViolationException
name
-
ConstraintViolationException
public void checkRemoveNodeConstraints(Name name) throws ConstraintViolationException
name
-
ConstraintViolationException
public void checkRemovePropertyConstraints(Name name) throws ConstraintViolationException
name
-
ConstraintViolationException
protected Object clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |