org.apache.jackrabbit.spi.commons
Class QNodeTypeDefinitionImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.QNodeTypeDefinitionImpl
All Implemented Interfaces:
Serializable, QNodeTypeDefinition

public class QNodeTypeDefinitionImpl
extends Object
implements QNodeTypeDefinition, Serializable

QNodeTypeDefinitionImpl implements a serializable qualified node type definition.

See Also:
Serialized Form

Constructor Summary
QNodeTypeDefinitionImpl(Name name, Name[] supertypes, boolean isMixin, boolean hasOrderableChildNodes, Name primaryItemName, QPropertyDefinition[] declaredPropDefs, QNodeDefinition[] declaredNodeDefs)
          Deprecated. use QNodeTypeDefinitionImpl(Name, Name[], Name[], boolean, boolean, Name, QPropertyDefinition[], QNodeDefinition[])
QNodeTypeDefinitionImpl(Name name, Name[] supertypes, Name[] supportedMixins, boolean isMixin, boolean hasOrderableChildNodes, Name primaryItemName, QPropertyDefinition[] declaredPropDefs, QNodeDefinition[] declaredNodeDefs)
          Creates a new serializable qualified node type definition.
QNodeTypeDefinitionImpl(QNodeTypeDefinition nt)
          Copy constructor.
 
Method Summary
 QNodeDefinition[] getChildNodeDefs()
          
 Collection getDependencies()
          
 Name getName()
          
 Name getPrimaryItemName()
          
 QPropertyDefinition[] getPropertyDefs()
          
 Name[] getSupertypes()
          
 Name[] getSupportedMixinTypes()
           
 boolean hasOrderableChildNodes()
          
 boolean isMixin()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QNodeTypeDefinitionImpl

public QNodeTypeDefinitionImpl(QNodeTypeDefinition nt)
Copy constructor.

Parameters:
nt - the qualified node type definition.

QNodeTypeDefinitionImpl

public QNodeTypeDefinitionImpl(Name name,
                               Name[] supertypes,
                               boolean isMixin,
                               boolean hasOrderableChildNodes,
                               Name primaryItemName,
                               QPropertyDefinition[] declaredPropDefs,
                               QNodeDefinition[] declaredNodeDefs)
Deprecated. use QNodeTypeDefinitionImpl(Name, Name[], Name[], boolean, boolean, Name, QPropertyDefinition[], QNodeDefinition[])

Creates a new serializable qualified node type definition.

Parameters:
name - the name of the node type
supertypes - the names of the supertypes
isMixin - if this is a mixin node type
hasOrderableChildNodes - if this node type has orderable child nodes.
primaryItemName - the name of the primary item, or null.
declaredPropDefs - the declared property definitions.
declaredNodeDefs - the declared child node definitions.

QNodeTypeDefinitionImpl

public QNodeTypeDefinitionImpl(Name name,
                               Name[] supertypes,
                               Name[] supportedMixins,
                               boolean isMixin,
                               boolean hasOrderableChildNodes,
                               Name primaryItemName,
                               QPropertyDefinition[] declaredPropDefs,
                               QNodeDefinition[] declaredNodeDefs)
Creates a new serializable qualified node type definition.

Parameters:
name - the name of the node type
supertypes - the names of the supertypes
supportedMixins - the names of supported mixins (or null)
isMixin - if this is a mixin node type
hasOrderableChildNodes - if this node type has orderable child nodes.
primaryItemName - the name of the primary item, or null.
declaredPropDefs - the declared property definitions.
declaredNodeDefs - the declared child node definitions.
Method Detail

getName

public Name getName()

Specified by:
getName in interface QNodeTypeDefinition

getSupertypes

public Name[] getSupertypes()

Specified by:
getSupertypes in interface QNodeTypeDefinition

isMixin

public boolean isMixin()

Specified by:
isMixin in interface QNodeTypeDefinition

hasOrderableChildNodes

public boolean hasOrderableChildNodes()

Specified by:
hasOrderableChildNodes in interface QNodeTypeDefinition

getPrimaryItemName

public Name getPrimaryItemName()

Specified by:
getPrimaryItemName in interface QNodeTypeDefinition

getPropertyDefs

public QPropertyDefinition[] getPropertyDefs()

Specified by:
getPropertyDefs in interface QNodeTypeDefinition

getChildNodeDefs

public QNodeDefinition[] getChildNodeDefs()

Specified by:
getChildNodeDefs in interface QNodeTypeDefinition

getDependencies

public Collection getDependencies()

Specified by:
getDependencies in interface QNodeTypeDefinition

getSupportedMixinTypes

public Name[] getSupportedMixinTypes()
Specified by:
getSupportedMixinTypes in interface QNodeTypeDefinition


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.