org.apache.jackrabbit.jcr2spi.nodetype
Class NodeTypeImpl

java.lang.Object
  extended by org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeImpl
All Implemented Interfaces:
javax.jcr.nodetype.NodeType

public class NodeTypeImpl
extends Object
implements javax.jcr.nodetype.NodeType

NodeTypeImpl ...


Method Summary
 boolean canAddChildNode(String childNodeName)
           
 boolean canAddChildNode(String childNodeName, String nodeTypeName)
           
 boolean canRemoveItem(String itemName)
           
 boolean canSetProperty(String propertyName, javax.jcr.Value value)
           
 boolean canSetProperty(String propertyName, javax.jcr.Value[] values)
           
 javax.jcr.nodetype.NodeDefinition[] getChildNodeDefinitions()
           
 javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()
           
 javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
           
 javax.jcr.nodetype.NodeType[] getDeclaredSupertypes()
           
 String getName()
           
 String getPrimaryItemName()
           
 javax.jcr.nodetype.PropertyDefinition[] getPropertyDefinitions()
           
 javax.jcr.nodetype.NodeType[] getSupertypes()
           
 boolean hasOrderableChildNodes()
           
 boolean isMixin()
           
 boolean isNodeType(Name nodeTypeName)
          Test if this nodetype equals or is directly or indirectly derived from the node type with the specified nodeTypeName, without checking of a node type of that name really exists.
 boolean isNodeType(String nodeTypeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isNodeType

public boolean isNodeType(Name nodeTypeName)
Test if this nodetype equals or is directly or indirectly derived from the node type with the specified nodeTypeName, without checking of a node type of that name really exists.

Parameters:
nodeTypeName - A node type name.
Returns:
true if this node type represents the type with the given nodeTypeName or if it is directly or indirectly derived from it; otherwise false. If no node type exists with the specified name this method will also return false.

getName

public String getName()
Specified by:
getName in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.getName()

getPrimaryItemName

public String getPrimaryItemName()
Specified by:
getPrimaryItemName in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.getPrimaryItemName()

isMixin

public boolean isMixin()
Specified by:
isMixin in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.isMixin()

isNodeType

public boolean isNodeType(String nodeTypeName)
Specified by:
isNodeType in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.isNodeType(String)

hasOrderableChildNodes

public boolean hasOrderableChildNodes()
Specified by:
hasOrderableChildNodes in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.hasOrderableChildNodes()

getSupertypes

public javax.jcr.nodetype.NodeType[] getSupertypes()
Specified by:
getSupertypes in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.getSupertypes()

getChildNodeDefinitions

public javax.jcr.nodetype.NodeDefinition[] getChildNodeDefinitions()
Specified by:
getChildNodeDefinitions in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.getChildNodeDefinitions()

getPropertyDefinitions

public javax.jcr.nodetype.PropertyDefinition[] getPropertyDefinitions()
Specified by:
getPropertyDefinitions in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.getPropertyDefinitions()

getDeclaredPropertyDefinitions

public javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
Specified by:
getDeclaredPropertyDefinitions in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.getDeclaredPropertyDefinitions()

getDeclaredSupertypes

public javax.jcr.nodetype.NodeType[] getDeclaredSupertypes()
Specified by:
getDeclaredSupertypes in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.getDeclaredSupertypes()

getDeclaredChildNodeDefinitions

public javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()
Specified by:
getDeclaredChildNodeDefinitions in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.getDeclaredChildNodeDefinitions()

canSetProperty

public boolean canSetProperty(String propertyName,
                              javax.jcr.Value value)
Specified by:
canSetProperty in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.canSetProperty(String, Value)

canSetProperty

public boolean canSetProperty(String propertyName,
                              javax.jcr.Value[] values)
Specified by:
canSetProperty in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.canSetProperty(String, Value[])

canAddChildNode

public boolean canAddChildNode(String childNodeName)
Specified by:
canAddChildNode in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.canAddChildNode(String)

canAddChildNode

public boolean canAddChildNode(String childNodeName,
                               String nodeTypeName)
Specified by:
canAddChildNode in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.canAddChildNode(String, String)

canRemoveItem

public boolean canRemoveItem(String itemName)
Specified by:
canRemoveItem in interface javax.jcr.nodetype.NodeType
See Also:
NodeType.canRemoveItem(String)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.