|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.nodetype.ItemDefinitionImpl org.apache.jackrabbit.core.nodetype.NodeDefinitionImpl
This class implements the NodeDefinition
interface.
All method calls are delegated to the wrapped NodeDef
,
performing the translation from QName
s to JCR names
(and vice versa) where necessary.
Field Summary | |
protected static String |
ANY_NAME
Literal for 'any name'. |
protected ItemDef |
itemDef
The wrapped item definition. |
protected NamespaceResolver |
nsResolver
The namespace resolver used to translate qualified names to JCR names. |
protected NodeTypeManagerImpl |
ntMgr
The node type manager of this session. |
Method Summary | |
boolean |
allowsSameNameSiblings()
|
boolean |
definesResidual()
Checks whether this is a residual item definition. |
boolean |
equals(Object o)
|
NodeType |
getDeclaringNodeType()
|
NodeType |
getDefaultPrimaryType()
|
String |
getName()
|
int |
getOnParentVersion()
|
QName |
getQName()
Gets the QName of the child item. |
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 String ANY_NAME
protected final NodeTypeManagerImpl ntMgr
protected final NamespaceResolver nsResolver
protected final ItemDef itemDef
Method Detail |
public NodeDef unwrap()
public NodeType getDefaultPrimaryType()
getDefaultPrimaryType
in interface NodeDefinition
public NodeType[] getRequiredPrimaryTypes()
getRequiredPrimaryTypes
in interface NodeDefinition
public boolean allowsSameNameSiblings()
allowsSameNameSiblings
in interface NodeDefinition
public boolean definesResidual()
true
if this is a residual item definitionpublic QName getQName()
QName
of the child item. It is an error to
call this method if this is a residual item definition.
QName
of the child item.ItemDefinitionImpl.getName()
public NodeType getDeclaringNodeType()
getDeclaringNodeType
in interface ItemDefinition
public String getName()
getName
in interface ItemDefinition
public int getOnParentVersion()
getOnParentVersion
in interface ItemDefinition
public boolean isAutoCreated()
isAutoCreated
in interface ItemDefinition
public boolean isMandatory()
isMandatory
in interface ItemDefinition
public boolean isProtected()
isProtected
in interface ItemDefinition
public boolean equals(Object o)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |