org.alfresco.jcr.dictionary
Class NodeTypeImpl

java.lang.Object
  extended by org.alfresco.jcr.dictionary.NodeTypeImpl
All Implemented Interfaces:
javax.jcr.nodetype.NodeType

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

Alfresco implementation of a Node Type Definition


Field Summary
static org.alfresco.service.namespace.QName MIX_LOCKABLE
           
static org.alfresco.service.namespace.QName MIX_REFERENCEABLE
           
static org.alfresco.service.namespace.QName MIX_VERSIONABLE
           
static org.alfresco.service.namespace.QName NT_BASE
           
 
Constructor Summary
NodeTypeImpl(NodeTypeManagerImpl typeManager, org.alfresco.service.cmr.dictionary.ClassDefinition classDefinition)
          Construct
 
Method Summary
 boolean canAddChildNode(java.lang.String childNodeName)
           
 boolean canAddChildNode(java.lang.String childNodeName, java.lang.String nodeTypeName)
           
 boolean canRemoveItem(java.lang.String itemName)
           
 boolean canSetProperty(java.lang.String propertyName, javax.jcr.Value value)
           
 boolean canSetProperty(java.lang.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()
           
 java.lang.String getName()
           
 java.lang.String getPrimaryItemName()
           
 javax.jcr.nodetype.PropertyDefinition[] getPropertyDefinitions()
           
 javax.jcr.nodetype.NodeType[] getSupertypes()
           
 boolean hasOrderableChildNodes()
           
 boolean isMixin()
           
 boolean isNodeType(java.lang.String nodeTypeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NT_BASE

public static org.alfresco.service.namespace.QName NT_BASE

MIX_REFERENCEABLE

public static org.alfresco.service.namespace.QName MIX_REFERENCEABLE

MIX_LOCKABLE

public static org.alfresco.service.namespace.QName MIX_LOCKABLE

MIX_VERSIONABLE

public static org.alfresco.service.namespace.QName MIX_VERSIONABLE
Constructor Detail

NodeTypeImpl

public NodeTypeImpl(NodeTypeManagerImpl typeManager,
                    org.alfresco.service.cmr.dictionary.ClassDefinition classDefinition)
Construct

Parameters:
classDefinition - Alfresco class definition
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface javax.jcr.nodetype.NodeType

isMixin

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

hasOrderableChildNodes

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

getPrimaryItemName

public java.lang.String getPrimaryItemName()
Specified by:
getPrimaryItemName in interface javax.jcr.nodetype.NodeType

getSupertypes

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

getDeclaredSupertypes

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

isNodeType

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

getPropertyDefinitions

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

getDeclaredPropertyDefinitions

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

getChildNodeDefinitions

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

getDeclaredChildNodeDefinitions

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

canSetProperty

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

canSetProperty

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

canAddChildNode

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

canAddChildNode

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

canRemoveItem

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.