|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.nodetype.NodeDefinitionImpl
public class NodeDefinitionImpl
This class implements the NodeDefinition interface.
All method calls are delegated to the wrapped QNodeDefinition,
performing the translation from Names to JCR names
where necessary.
| Field Summary | |
|---|---|
protected static String |
ANY_NAME
Literal for 'any name'. |
protected QItemDefinition |
itemDef
The wrapped item definition. |
protected AbstractNodeTypeManager |
ntMgr
The node type manager of this session. |
protected NamePathResolver |
resolver
The namespace resolver used to translate Names to JCR name strings. |
| Constructor Summary | |
|---|---|
NodeDefinitionImpl(QItemDefinition itemDef,
AbstractNodeTypeManager ntMgr,
NamePathResolver resolver)
Constructor to create a definition that is based on an existing node type. |
|
NodeDefinitionImpl(QItemDefinition itemDef,
NamePathResolver resolver)
Constructor to create a definition that is based on a template. |
|
| Method Summary | |
|---|---|
boolean |
allowsSameNameSiblings()
|
boolean |
equals(Object o)
|
NodeType |
getDeclaringNodeType()
|
NodeType |
getDefaultPrimaryType()
|
String |
getDefaultPrimaryTypeName()
|
String |
getName()
|
int |
getOnParentVersion()
|
String[] |
getRequiredPrimaryTypeNames()
|
NodeType[] |
getRequiredPrimaryTypes()
|
int |
hashCode()
|
boolean |
isAutoCreated()
|
boolean |
isMandatory()
|
boolean |
isProtected()
|
QNodeDefinition |
unwrap()
Returns the wrapped node definition. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jcr.nodetype.ItemDefinition |
|---|
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected |
| Field Detail |
|---|
protected static final String ANY_NAME
protected final NamePathResolver resolver
Names to JCR name strings.
protected final AbstractNodeTypeManager ntMgr
protected final QItemDefinition itemDef
| Constructor Detail |
|---|
public NodeDefinitionImpl(QItemDefinition itemDef,
NamePathResolver resolver)
itemDef - item definitionresolver -
public NodeDefinitionImpl(QItemDefinition itemDef,
AbstractNodeTypeManager ntMgr,
NamePathResolver resolver)
itemDef - item definitionresolver - | Method Detail |
|---|
public QNodeDefinition unwrap()
public boolean allowsSameNameSiblings()
allowsSameNameSiblings in interface NodeDefinitionpublic String getDefaultPrimaryTypeName()
getDefaultPrimaryTypeName in interface NodeDefinitionNodeDefinition.getDefaultPrimaryTypeName()public NodeType getDefaultPrimaryType()
getDefaultPrimaryType in interface NodeDefinitionpublic NodeType[] getRequiredPrimaryTypes()
getRequiredPrimaryTypes in interface NodeDefinitionpublic String[] getRequiredPrimaryTypeNames()
getRequiredPrimaryTypeNames in interface NodeDefinitionNodeDefinition.getRequiredPrimaryTypeNames()public NodeType getDeclaringNodeType()
getDeclaringNodeType in interface ItemDefinitionpublic String getName()
getName in interface ItemDefinitionpublic int getOnParentVersion()
getOnParentVersion in interface ItemDefinitionpublic boolean isAutoCreated()
isAutoCreated in interface ItemDefinitionpublic boolean isMandatory()
isMandatory in interface ItemDefinitionpublic boolean isProtected()
isProtected in interface ItemDefinitionpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||