public class QNodeDefinitionImpl extends QItemDefinitionImpl implements org.apache.jackrabbit.spi.QNodeDefinition
QNodeDefinitionImpl implements a QNodeDefinition.hashCode| Constructor and Description |
|---|
QNodeDefinitionImpl(org.apache.jackrabbit.spi.Name name,
org.apache.jackrabbit.spi.Name declaringNodeType,
boolean isAutoCreated,
boolean isMandatory,
int onParentVersion,
boolean isProtected,
org.apache.jackrabbit.spi.Name defaultPrimaryType,
org.apache.jackrabbit.spi.Name[] requiredPrimaryTypes,
boolean allowsSameNameSiblings)
Creates a new SPI node definition based on a JCR NodeDefinition.
|
QNodeDefinitionImpl(NodeDefinition nodeDef,
NamePathResolver resolver)
Creates a new node definition based on a JCR
NodeDefinition. |
QNodeDefinitionImpl(org.apache.jackrabbit.spi.QNodeDefinition nodeDef)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsSameNameSiblings() |
boolean |
definesNode() |
boolean |
equals(Object obj)
Compares two node definitions for equality.
|
org.apache.jackrabbit.spi.Name |
getDefaultPrimaryType() |
org.apache.jackrabbit.spi.Name[] |
getRequiredPrimaryTypes() |
int |
hashCode()
Overwrites
QItemDefinitionImpl.hashCode(). |
definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtectedpublic QNodeDefinitionImpl(org.apache.jackrabbit.spi.QNodeDefinition nodeDef)
nodeDef - some other node definition.public QNodeDefinitionImpl(org.apache.jackrabbit.spi.Name name,
org.apache.jackrabbit.spi.Name declaringNodeType,
boolean isAutoCreated,
boolean isMandatory,
int onParentVersion,
boolean isProtected,
org.apache.jackrabbit.spi.Name defaultPrimaryType,
org.apache.jackrabbit.spi.Name[] requiredPrimaryTypes,
boolean allowsSameNameSiblings)
name - the name of the child item.declaringNodeType - the declaring node typeisAutoCreated - if this item is auto created.isMandatory - if this is a mandatory item.onParentVersion - the on parent version behaviour.isProtected - if this item is protected.defaultPrimaryType - the default primary type namerequiredPrimaryTypes - the required primary type nameallowsSameNameSiblings - if this node allows SNSpublic QNodeDefinitionImpl(NodeDefinition nodeDef, NamePathResolver resolver) throws NameException, NamespaceException
NodeDefinition.nodeDef - the node definition.resolver - the name/path resolver of the session that provided the
node definitionNameException - if nodeDef contains an illegal
name.NamespaceException - if nodeDef contains a name with
an namespace prefix that is unknown to
resolver.public org.apache.jackrabbit.spi.Name getDefaultPrimaryType()
getDefaultPrimaryType in interface org.apache.jackrabbit.spi.QNodeDefinitionpublic org.apache.jackrabbit.spi.Name[] getRequiredPrimaryTypes()
getRequiredPrimaryTypes in interface org.apache.jackrabbit.spi.QNodeDefinitionpublic boolean allowsSameNameSiblings()
allowsSameNameSiblings in interface org.apache.jackrabbit.spi.QNodeDefinitionpublic boolean definesNode()
definesNode in interface org.apache.jackrabbit.spi.QItemDefinitiontruepublic boolean equals(Object obj)
true
if the given object is a node definition and has the same attributes
as this node definition.equals in class QItemDefinitionImplobj - the object to compare this node definition withtrue if the object is equal to this node definition,
false otherwiseObject.equals(Object)public int hashCode()
QItemDefinitionImpl.hashCode().hashCode in class QItemDefinitionImplCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.