Class NodeDefinitionImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.nodetype.NodeDefinitionImpl
-
- All Implemented Interfaces:
javax.jcr.nodetype.ItemDefinition,javax.jcr.nodetype.NodeDefinition
public class NodeDefinitionImpl extends java.lang.Object implements javax.jcr.nodetype.NodeDefinitionThis class implements theNodeDefinitioninterface. All method calls are delegated to the wrappedQNodeDefinition, performing the translation fromNames to JCR names where necessary.
-
-
Constructor Summary
Constructors Constructor Description NodeDefinitionImpl(QItemDefinition itemDef, NamePathResolver resolver)Constructor to create a definition that is based on a template.NodeDefinitionImpl(QItemDefinition itemDef, AbstractNodeTypeManager ntMgr, NamePathResolver resolver)Constructor to create a definition that is based on an existing node type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsSameNameSiblings()booleanequals(java.lang.Object o)javax.jcr.nodetype.NodeTypegetDeclaringNodeType()javax.jcr.nodetype.NodeTypegetDefaultPrimaryType()java.lang.StringgetDefaultPrimaryTypeName()java.lang.StringgetName()intgetOnParentVersion()java.lang.String[]getRequiredPrimaryTypeNames()javax.jcr.nodetype.NodeType[]getRequiredPrimaryTypes()inthashCode()booleanisAutoCreated()booleanisMandatory()booleanisProtected()QNodeDefinitionunwrap()Returns the wrapped node definition.
-
-
-
Constructor Detail
-
NodeDefinitionImpl
public NodeDefinitionImpl(QItemDefinition itemDef, NamePathResolver resolver)
Constructor to create a definition that is based on a template.- Parameters:
itemDef- item definitionresolver-
-
NodeDefinitionImpl
public NodeDefinitionImpl(QItemDefinition itemDef, AbstractNodeTypeManager ntMgr, NamePathResolver resolver)
Constructor to create a definition that is based on an existing node type.- Parameters:
itemDef- item definitionresolver-
-
-
Method Detail
-
unwrap
public QNodeDefinition unwrap()
Returns the wrapped node definition.- Returns:
- the wrapped node definition.
-
allowsSameNameSiblings
public boolean allowsSameNameSiblings()
- Specified by:
allowsSameNameSiblingsin interfacejavax.jcr.nodetype.NodeDefinition
-
getDefaultPrimaryTypeName
public java.lang.String getDefaultPrimaryTypeName()
- Specified by:
getDefaultPrimaryTypeNamein interfacejavax.jcr.nodetype.NodeDefinition- Since:
- JCR 2.0
- See Also:
NodeDefinition.getDefaultPrimaryTypeName()
-
getDefaultPrimaryType
public javax.jcr.nodetype.NodeType getDefaultPrimaryType()
- Specified by:
getDefaultPrimaryTypein interfacejavax.jcr.nodetype.NodeDefinition
-
getRequiredPrimaryTypes
public javax.jcr.nodetype.NodeType[] getRequiredPrimaryTypes()
- Specified by:
getRequiredPrimaryTypesin interfacejavax.jcr.nodetype.NodeDefinition
-
getRequiredPrimaryTypeNames
public java.lang.String[] getRequiredPrimaryTypeNames()
- Specified by:
getRequiredPrimaryTypeNamesin interfacejavax.jcr.nodetype.NodeDefinition- Since:
- JCR 2.0
- See Also:
NodeDefinition.getRequiredPrimaryTypeNames()
-
getDeclaringNodeType
public javax.jcr.nodetype.NodeType getDeclaringNodeType()
- Specified by:
getDeclaringNodeTypein interfacejavax.jcr.nodetype.ItemDefinition
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejavax.jcr.nodetype.ItemDefinition
-
getOnParentVersion
public int getOnParentVersion()
- Specified by:
getOnParentVersionin interfacejavax.jcr.nodetype.ItemDefinition
-
isAutoCreated
public boolean isAutoCreated()
- Specified by:
isAutoCreatedin interfacejavax.jcr.nodetype.ItemDefinition
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatoryin interfacejavax.jcr.nodetype.ItemDefinition
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin interfacejavax.jcr.nodetype.ItemDefinition
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-