|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.nodetype.NodeDefinitionImpl
public class NodeDefinitionImpl
This class implements the NodeDefinition interface.
All method calls are delegated to the wrapped NodeDef,
performing the translation from Names to JCR names
(and vice versa) where necessary.
| Field Summary | |
|---|---|
protected static java.lang.String |
ANY_NAME
Literal for 'any name'. |
protected ItemDef |
itemDef
The wrapped item definition. |
protected NodeTypeManagerImpl |
ntMgr
The node type manager of this session. |
protected NamePathResolver |
resolver
The name/path resolver used to translate qualified names to JCR names. |
| Method Summary | |
|---|---|
boolean |
allowsSameNameSiblings()
|
boolean |
definesResidual()
Checks whether this is a residual item definition. |
boolean |
equals(java.lang.Object o)
|
javax.jcr.nodetype.NodeType |
getDeclaringNodeType()
|
javax.jcr.nodetype.NodeType |
getDefaultPrimaryType()
|
java.lang.String |
getDefaultPrimaryTypeName()
Returns the name of the default primary node type. |
java.lang.String |
getName()
|
int |
getOnParentVersion()
|
Name |
getQName()
Gets the Name of the child item. |
java.lang.String[] |
getRequiredPrimaryTypeNames()
Returns the names of the required primary node types. |
javax.jcr.nodetype.NodeType[] |
getRequiredPrimaryTypes()
|
int |
hashCode()
|
boolean |
isAutoCreated()
|
boolean |
isMandatory()
|
boolean |
isProtected()
|
NodeDef |
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 java.lang.String ANY_NAME
protected final NodeTypeManagerImpl ntMgr
protected final NamePathResolver resolver
protected final ItemDef itemDef
| Method Detail |
|---|
public NodeDef unwrap()
public javax.jcr.nodetype.NodeType getDefaultPrimaryType()
getDefaultPrimaryType in interface javax.jcr.nodetype.NodeDefinitionpublic javax.jcr.nodetype.NodeType[] getRequiredPrimaryTypes()
getRequiredPrimaryTypes in interface javax.jcr.nodetype.NodeDefinitionpublic boolean allowsSameNameSiblings()
allowsSameNameSiblings in interface javax.jcr.nodetype.NodeDefinitionpublic java.lang.String[] getRequiredPrimaryTypeNames()
NodeDefinition is acquired from a live
NodeType this list will reflect the node types returned by
getRequiredPrimaryTypes, above.
If this NodeDefinition is actually a
NodeDefinitionTemplate that is not part of a registered node
type, then this method will return the required primary types as set in
that template. If that template is a newly-created empty one, then this
method will return an array containing a single string indicating the
node type nt:base.
public java.lang.String getDefaultPrimaryTypeName()
NodeDefinition is acquired from a live
NodeType this list will reflect the NodeType returned by
getDefaultPrimaryType, above.
If this NodeDefinition is actually a
NodeDefinitionTemplate that is not part of a registered node
type, then this method will return the required primary types as set in
that template. If that template is a newly-created empty one, then this
method will return null.
public boolean definesResidual()
true if this is a residual item definitionpublic Name getQName()
Name of the child item. It is an error to
call this method if this is a residual item definition.
Name of the child item.getName()public javax.jcr.nodetype.NodeType getDeclaringNodeType()
getDeclaringNodeType in interface javax.jcr.nodetype.ItemDefinitionpublic java.lang.String getName()
getName in interface javax.jcr.nodetype.ItemDefinitionpublic int getOnParentVersion()
getOnParentVersion in interface javax.jcr.nodetype.ItemDefinitionpublic boolean isAutoCreated()
isAutoCreated in interface javax.jcr.nodetype.ItemDefinitionpublic boolean isMandatory()
isMandatory in interface javax.jcr.nodetype.ItemDefinitionpublic boolean isProtected()
isProtected in interface javax.jcr.nodetype.ItemDefinitionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||