public class NodeDefinitionImpl extends Object implements javax.jcr.nodetype.NodeDefinition
NodeDefinition
interface.
All method calls are delegated to the wrapped QNodeDefinition
,
performing the translation from Name
s to JCR names
where necessary.Modifier and Type | Field and Description |
---|---|
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
Name s to JCR name strings. |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsSameNameSiblings() |
boolean |
equals(Object o) |
javax.jcr.nodetype.NodeType |
getDeclaringNodeType() |
javax.jcr.nodetype.NodeType |
getDefaultPrimaryType() |
String |
getDefaultPrimaryTypeName() |
String |
getName() |
int |
getOnParentVersion() |
String[] |
getRequiredPrimaryTypeNames() |
javax.jcr.nodetype.NodeType[] |
getRequiredPrimaryTypes() |
int |
hashCode() |
boolean |
isAutoCreated() |
boolean |
isMandatory() |
boolean |
isProtected() |
QNodeDefinition |
unwrap()
Returns the wrapped node definition.
|
protected static final String ANY_NAME
protected final NamePathResolver resolver
Name
s to JCR name strings.protected final AbstractNodeTypeManager ntMgr
protected final QItemDefinition itemDef
public NodeDefinitionImpl(QItemDefinition itemDef, NamePathResolver resolver)
itemDef
- item definitionresolver
- public NodeDefinitionImpl(QItemDefinition itemDef, AbstractNodeTypeManager ntMgr, NamePathResolver resolver)
itemDef
- item definitionresolver
- public QNodeDefinition unwrap()
public boolean allowsSameNameSiblings()
allowsSameNameSiblings
in interface javax.jcr.nodetype.NodeDefinition
public String getDefaultPrimaryTypeName()
getDefaultPrimaryTypeName
in interface javax.jcr.nodetype.NodeDefinition
NodeDefinition.getDefaultPrimaryTypeName()
public javax.jcr.nodetype.NodeType getDefaultPrimaryType()
getDefaultPrimaryType
in interface javax.jcr.nodetype.NodeDefinition
public javax.jcr.nodetype.NodeType[] getRequiredPrimaryTypes()
getRequiredPrimaryTypes
in interface javax.jcr.nodetype.NodeDefinition
public String[] getRequiredPrimaryTypeNames()
getRequiredPrimaryTypeNames
in interface javax.jcr.nodetype.NodeDefinition
NodeDefinition.getRequiredPrimaryTypeNames()
public javax.jcr.nodetype.NodeType getDeclaringNodeType()
getDeclaringNodeType
in interface javax.jcr.nodetype.ItemDefinition
public String getName()
getName
in interface javax.jcr.nodetype.ItemDefinition
public int getOnParentVersion()
getOnParentVersion
in interface javax.jcr.nodetype.ItemDefinition
public boolean isAutoCreated()
isAutoCreated
in interface javax.jcr.nodetype.ItemDefinition
public boolean isMandatory()
isMandatory
in interface javax.jcr.nodetype.ItemDefinition
public boolean isProtected()
isProtected
in interface javax.jcr.nodetype.ItemDefinition
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.