public interface NodeType
Modifier and Type | Method and Description |
---|---|
boolean |
canAddChildNode(java.lang.String childNodeName)
Returns
true if this node type allows the addition of a child node called childNodeName without specific node type information (that is, given the definition of this parent node type, the child node name is sufficient to determine the intended child node type). |
boolean |
canAddChildNode(java.lang.String childNodeName, java.lang.String nodeTypeName)
Returns
true if this node type allows the addition of a child node called childNodeName of node type nodeTypeName . |
boolean |
canRemoveItem(java.lang.String itemName)
Returns true if removing the child item called
itemName is allowed by this node type. |
boolean |
canSetProperty(java.lang.String propertyName, Value value)
Returns
true if setting propertyName to value is allowed by this node type. |
boolean |
canSetProperty(java.lang.String propertyName, Value[] values)
Returns
true if setting propertyName to values is allowed by this node type. |
NodeDefinition[] |
getChildNodeDefinitions()
Returns an array containing the child node definitions of this node type, including the child node definitions inherited from supertypes of this node type.
|
NodeDefinition[] |
getDeclaredChildNodeDefinitions()
Returns an array containing the child node definitions explicitly specified in the declaration of this node type.
|
PropertyDefinition[] |
getDeclaredPropertyDefinitions()
Returns an array containing the property definitions explicitly specified in the declaration of this node type.
|
NodeType[] |
getDeclaredSupertypes()
Returns the direct supertypes of this node type in the node type inheritance hierarchy, that is, those actually declared in this node type.
|
java.lang.String |
getName()
Returns the name of the node type.
|
java.lang.String |
getPrimaryItemName()
Returns the name of the primary item (one of the child items of the node's of this node type).
|
PropertyDefinition[] |
getPropertyDefinitions()
Returns an array containing the property definitions of this node type, including the property definitions inherited from supertypes of this node type.
|
NodeType[] |
getSupertypes()
Returns all supertypes of this node type in the node type inheritance hierarchy.
|
boolean |
hasOrderableChildNodes()
Returns
true if nodes of this type must support orderable child nodes; returns false otherwise. |
boolean |
isMixin()
Returns
true if this node type is a mixin node type. |
boolean |
isNodeType(java.lang.String nodeTypeName)
Returns true if this node type is
nodeTypeName or a subtype of nodeTypeName , otherwise returns false . |
java.lang.String getName()
boolean isMixin()
true
if this node type is a mixin node type. Returns false
if this node type is a primary node type.boolean hasOrderableChildNodes()
true
if nodes of this type must support orderable child nodes; returns false
otherwise. If a node type returns true
on a call to this method, then all nodes of that node type must support the method Node.orderBefore(java.lang.String, java.lang.String)
. If a node type returns false
on a call to this method, then nodes of that node type may support these ordering methods. Only the primary node type of a node controls that node's status in this regard. This setting on a mixin node type will not have any effect on the node.true
if nodes of this type must support orderable child nodes; returns false
otherwise.java.lang.String getPrimaryItemName()
null
. This indicator is used by the method Node.getPrimaryItem()
.NodeType[] getSupertypes()
nt:base
, this list will always include at least nt:base
. For mixin types, there is no required supertype.NodeType
objects.getDeclaredSupertypes()
NodeType[] getDeclaredSupertypes()
NodeType
objects.getSupertypes()
boolean isNodeType(java.lang.String nodeTypeName)
nodeTypeName
or a subtype of nodeTypeName
, otherwise returns false
.nodeTypeName
- the name of a node type.PropertyDefinition[] getPropertyDefinitions()
getDeclaredPropertyDefinitions()
PropertyDefinition[] getDeclaredPropertyDefinitions()
getPropertyDefinitions()
NodeDefinition[] getChildNodeDefinitions()
getDeclaredChildNodeDefinitions()
NodeDefinition[] getDeclaredChildNodeDefinitions()
getChildNodeDefinitions()
boolean canSetProperty(java.lang.String propertyName, Value value)
true
if setting propertyName
to value
is allowed by this node type. Otherwise returns false
.propertyName
- The name of the propertyvalue
- A Value
object.boolean canSetProperty(java.lang.String propertyName, Value[] values)
true
if setting propertyName
to values
is allowed by this node type. Otherwise returns false
.propertyName
- The name of the propertyvalues
- A Value
array.boolean canAddChildNode(java.lang.String childNodeName)
true
if this node type allows the addition of a child node called childNodeName
without specific node type information (that is, given the definition of this parent node type, the child node name is sufficient to determine the intended child node type). Returns false
otherwise.childNodeName
- The name of the child node.boolean canAddChildNode(java.lang.String childNodeName, java.lang.String nodeTypeName)
true
if this node type allows the addition of a child node called childNodeName
of node type nodeTypeName
. Returns false
otherwise.childNodeName
- The name of the child node.nodeTypeName
- The name of the node type of the child node.boolean canRemoveItem(java.lang.String itemName)
itemName
is allowed by this node type. Otherwise returns false
.itemName
- The name of the child itemCopyright © 2004-2005 Day Software Management AG. All Rights Reserved.