|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.base.nodetype.BaseNodeType
Node type base class.
| Constructor Summary | |
protected |
BaseNodeType()
Protected constructor. |
| Method Summary | |
boolean |
canAddChildNode(String childNodeName)
Implemented by finding the definition of the named child node (or the wildcard child node definition if the named child node definition is not found). |
boolean |
canAddChildNode(String childNodeName,
String nodeTypeName)
Not implemented. |
boolean |
canRemoveItem(String itemName)
Implemented by finding the definition of the named item (property or child node) and checking that the defined item is not mandatory. |
boolean |
canSetProperty(String propertyName,
Value value)
Implemented by finding the definition of the named property (or the wildcard property definition if the named property definition is not found) and checking whether the defined property is single-valued. |
boolean |
canSetProperty(String propertyName,
Value[] values)
Implemented by finding the definition of the named property (or the wildcard property definition if the named property definition is not found) and checking whether the defined property is multi-valued. |
NodeDefinition[] |
getChildNodeDefinitions()
Implemented by calling getDeclaredChildNodeDefinitions()
on this node type and all supertypes returned by
getSupertypes(). |
NodeDefinition[] |
getDeclaredChildNodeDefinitions()
Always returns an empty node definition array. |
PropertyDefinition[] |
getDeclaredPropertyDefinitions()
Always returns an empty property definition array. |
NodeType[] |
getDeclaredSupertypes()
Always returns an empty supertype array. |
String |
getName()
Not implemented. |
String |
getPrimaryItemName()
Not implemented. |
PropertyDefinition[] |
getPropertyDefinitions()
Implemented by calling getDeclaredPropertyDefinitions()
this node type and all supertypes returned by
getSupertypes(). |
NodeType[] |
getSupertypes()
Implemented by calling getDeclaredSupertypes() and
recursively collecting all supertypes. |
boolean |
hasOrderableChildNodes()
Always returns false. |
boolean |
isMixin()
Always returns false. |
boolean |
isNodeType(String nodeTypeName)
Implemented by calling getName() and comparing the
result to the given node type name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected BaseNodeType()
| Method Detail |
public String getName()
getName in interface NodeTypepublic boolean isMixin()
false.
isMixin in interface NodeTypepublic boolean hasOrderableChildNodes()
false.
hasOrderableChildNodes in interface NodeTypepublic String getPrimaryItemName()
getPrimaryItemName in interface NodeTypepublic NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes in interface NodeTypepublic NodeType[] getSupertypes()
getDeclaredSupertypes() and
recursively collecting all supertypes. The collected supertype
set is returned as a node type array.
getSupertypes in interface NodeTypepublic boolean isNodeType(String nodeTypeName)
getName() and comparing the
result to the given node type name. If the match fails, recursively
checks all declared supertypes.
isNodeType in interface NodeTypepublic PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions in interface NodeTypepublic PropertyDefinition[] getPropertyDefinitions()
getDeclaredPropertyDefinitions()
this node type and all supertypes returned by
getSupertypes(). The collected property definition set
is returned as a property definition array.
getPropertyDefinitions in interface NodeTypepublic NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions in interface NodeTypepublic NodeDefinition[] getChildNodeDefinitions()
getDeclaredChildNodeDefinitions()
on this node type and all supertypes returned by
getSupertypes(). The collected node definition set
is returned as a node definition array.
getChildNodeDefinitions in interface NodeType
public boolean canSetProperty(String propertyName,
Value value)
true instead of throwing an
UnsupportedOperationException
for all value constraint comparisons.
canSetProperty in interface NodeType
public boolean canSetProperty(String propertyName,
Value[] values)
true instead of throwing an
UnsupportedOperationException
for all value constraint comparisons.
canSetProperty in interface NodeTypepublic boolean canAddChildNode(String childNodeName)
true if a node definition is found,
false otherwise.
canAddChildNode in interface NodeType
public boolean canAddChildNode(String childNodeName,
String nodeTypeName)
canAddChildNode in interface NodeTypepublic boolean canRemoveItem(String itemName)
canRemoveItem in interface NodeType
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||