org.apache.jackrabbit.spi.commons
Class QNodeTypeDefinitionImpl

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

public class QNodeTypeDefinitionImpl
extends Object
implements org.apache.jackrabbit.spi.QNodeTypeDefinition, Serializable

QNodeTypeDefinitionImpl implements a serializable SPI node type definition.

See Also:
Serialized Form

Constructor Summary
QNodeTypeDefinitionImpl()
          Default constructor.
QNodeTypeDefinitionImpl(org.apache.jackrabbit.spi.Name name, org.apache.jackrabbit.spi.Name[] supertypes, org.apache.jackrabbit.spi.Name[] supportedMixins, boolean isMixin, boolean isAbstract, boolean isQueryable, boolean hasOrderableChildNodes, org.apache.jackrabbit.spi.Name primaryItemName, org.apache.jackrabbit.spi.QPropertyDefinition[] declaredPropDefs, org.apache.jackrabbit.spi.QNodeDefinition[] declaredNodeDefs)
          Creates a new serializable SPI node type definition.
QNodeTypeDefinitionImpl(NodeTypeDefinition def, NamePathResolver resolver, org.apache.jackrabbit.spi.QValueFactory qValueFactory)
          Create a a new QNodeTypeDefinitionImpl from a JCR NodeType definition.
QNodeTypeDefinitionImpl(org.apache.jackrabbit.spi.QNodeTypeDefinition nt)
          Copy constructor.
 
Method Summary
 boolean equals(Object obj)
           
 org.apache.jackrabbit.spi.QNodeDefinition[] getChildNodeDefs()
          
 Collection<org.apache.jackrabbit.spi.Name> getDependencies()
          
 org.apache.jackrabbit.spi.Name getName()
          
 org.apache.jackrabbit.spi.Name getPrimaryItemName()
          
 org.apache.jackrabbit.spi.QPropertyDefinition[] getPropertyDefs()
          
 org.apache.jackrabbit.spi.Name[] getSupertypes()
          
 org.apache.jackrabbit.spi.Name[] getSupportedMixinTypes()
          
 int hashCode()
          Returns zero to satisfy the Object equals/hashCode contract.
 boolean hasOrderableChildNodes()
          
 boolean isAbstract()
          
 boolean isMixin()
          
 boolean isQueryable()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QNodeTypeDefinitionImpl

public QNodeTypeDefinitionImpl()
Default constructor.


QNodeTypeDefinitionImpl

public QNodeTypeDefinitionImpl(org.apache.jackrabbit.spi.QNodeTypeDefinition nt)
Copy constructor.

Parameters:
nt - the node type definition.

QNodeTypeDefinitionImpl

public QNodeTypeDefinitionImpl(org.apache.jackrabbit.spi.Name name,
                               org.apache.jackrabbit.spi.Name[] supertypes,
                               org.apache.jackrabbit.spi.Name[] supportedMixins,
                               boolean isMixin,
                               boolean isAbstract,
                               boolean isQueryable,
                               boolean hasOrderableChildNodes,
                               org.apache.jackrabbit.spi.Name primaryItemName,
                               org.apache.jackrabbit.spi.QPropertyDefinition[] declaredPropDefs,
                               org.apache.jackrabbit.spi.QNodeDefinition[] declaredNodeDefs)
Creates a new serializable SPI 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
isAbstract - if this is an abstract node type definition.
isQueryable - if this is a queryable node type definition.
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(NodeTypeDefinition def,
                               NamePathResolver resolver,
                               org.apache.jackrabbit.spi.QValueFactory qValueFactory)
                        throws RepositoryException
Create a a new QNodeTypeDefinitionImpl from a JCR NodeType definition.

Parameters:
def - node type definition
resolver - resolver
qValueFactory - value factory
Throws:
RepositoryException - if an error occurs
Method Detail

getName

public org.apache.jackrabbit.spi.Name getName()

Specified by:
getName in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

getSupertypes

public org.apache.jackrabbit.spi.Name[] getSupertypes()

Specified by:
getSupertypes in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

isMixin

public boolean isMixin()

Specified by:
isMixin in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

isAbstract

public boolean isAbstract()

Specified by:
isAbstract in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

isQueryable

public boolean isQueryable()

Specified by:
isQueryable in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

hasOrderableChildNodes

public boolean hasOrderableChildNodes()

Specified by:
hasOrderableChildNodes in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

getPrimaryItemName

public org.apache.jackrabbit.spi.Name getPrimaryItemName()

Specified by:
getPrimaryItemName in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

getPropertyDefs

public org.apache.jackrabbit.spi.QPropertyDefinition[] getPropertyDefs()

Specified by:
getPropertyDefs in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

getChildNodeDefs

public org.apache.jackrabbit.spi.QNodeDefinition[] getChildNodeDefs()

Specified by:
getChildNodeDefs in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

getDependencies

public Collection<org.apache.jackrabbit.spi.Name> getDependencies()

Specified by:
getDependencies in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

getSupportedMixinTypes

public org.apache.jackrabbit.spi.Name[] getSupportedMixinTypes()

Specified by:
getSupportedMixinTypes in interface org.apache.jackrabbit.spi.QNodeTypeDefinition

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Returns zero to satisfy the Object equals/hashCode contract. This class is mutable and not meant to be used as a hash key.

Overrides:
hashCode in class Object
Returns:
always zero
See Also:
Object.hashCode()


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