Class QNodeTypeDefinitionImpl
- java.lang.Object
-
- 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
QNodeTypeDefinitionImplimplements a serializable SPI node type definition.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QNodeTypeDefinitionImpl()Default constructor.QNodeTypeDefinitionImpl(NodeTypeDefinition def, NamePathResolver resolver, org.apache.jackrabbit.spi.QValueFactory qValueFactory)Create a a newQNodeTypeDefinitionImplfrom a JCR NodeType definition.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(org.apache.jackrabbit.spi.QNodeTypeDefinition nt)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.apache.jackrabbit.spi.QNodeDefinition[]getChildNodeDefs()Collection<org.apache.jackrabbit.spi.Name>getDependencies()org.apache.jackrabbit.spi.NamegetName()org.apache.jackrabbit.spi.NamegetPrimaryItemName()org.apache.jackrabbit.spi.QPropertyDefinition[]getPropertyDefs()org.apache.jackrabbit.spi.Name[]getSupertypes()org.apache.jackrabbit.spi.Name[]getSupportedMixinTypes()inthashCode()Returns zero to satisfy the Object equals/hashCode contract.booleanhasOrderableChildNodes()booleanisAbstract()booleanisMixin()booleanisQueryable()
-
-
-
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 typesupertypes- the names of the supertypessupportedMixins- the names of supported mixins (ornull)isMixin- if this is a mixin node typeisAbstract- 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, ornull.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 newQNodeTypeDefinitionImplfrom a JCR NodeType definition.- Parameters:
def- node type definitionresolver- resolverqValueFactory- value factory- Throws:
RepositoryException- if an error occurs
-
-
Method Detail
-
getName
public org.apache.jackrabbit.spi.Name getName()
- Specified by:
getNamein interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
getSupertypes
public org.apache.jackrabbit.spi.Name[] getSupertypes()
- Specified by:
getSupertypesin interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
isMixin
public boolean isMixin()
- Specified by:
isMixinin interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
isQueryable
public boolean isQueryable()
- Specified by:
isQueryablein interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
hasOrderableChildNodes
public boolean hasOrderableChildNodes()
- Specified by:
hasOrderableChildNodesin interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
getPrimaryItemName
public org.apache.jackrabbit.spi.Name getPrimaryItemName()
- Specified by:
getPrimaryItemNamein interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
getPropertyDefs
public org.apache.jackrabbit.spi.QPropertyDefinition[] getPropertyDefs()
- Specified by:
getPropertyDefsin interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
getChildNodeDefs
public org.apache.jackrabbit.spi.QNodeDefinition[] getChildNodeDefs()
- Specified by:
getChildNodeDefsin interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
getDependencies
public Collection<org.apache.jackrabbit.spi.Name> getDependencies()
- Specified by:
getDependenciesin interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
getSupportedMixinTypes
public org.apache.jackrabbit.spi.Name[] getSupportedMixinTypes()
- Specified by:
getSupportedMixinTypesin interfaceorg.apache.jackrabbit.spi.QNodeTypeDefinition
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject- 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:
hashCodein classObject- Returns:
- always zero
- See Also:
Object.hashCode()
-
-