|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.jcr.JcrNodeTypeTemplate
@NotThreadSafe public class JcrNodeTypeTemplate
ModeShape implementation of the JCR NodeTypeTemplate interface
Method Summary | |
---|---|
NodeDefinition[] |
getDeclaredChildNodeDefinitions()
Get the array of child node definition templates for this node type. |
NodeDefinition[] |
getDeclaredNodeDefinitions()
Deprecated. use getDeclaredChildNodeDefinitions() instead |
PropertyDefinition[] |
getDeclaredPropertyDefinitions()
Get the array of property definition templates for this node type. |
String[] |
getDeclaredSupertypeNames()
Get the direct supertypes for this node type. |
String[] |
getDeclaredSupertypes()
Deprecated. Use getDeclaredSupertypeNames() instead |
String |
getName()
Get the name of the node type being defined |
List<NodeDefinitionTemplate> |
getNodeDefinitionTemplates()
Get the modifiable list of child node definition templates for this node type |
String |
getPrimaryItemName()
Get the name of the primary item for this node type |
List<PropertyDefinitionTemplate> |
getPropertyDefinitionTemplates()
Get the modifiable list of property definition templates for this node type. |
boolean |
hasOrderableChildNodes()
Get whether this node type supports orderable child nodes. |
boolean |
isAbstract()
Get whether this node type is abstract. |
boolean |
isMixin()
Get whether this node type is a mixin. |
boolean |
isQueryable()
Get whether this node is queryable |
void |
setAbstract(boolean isAbstract)
Set whether this node type is abstract. |
void |
setDeclaredSupertypeNames(String[] names)
Deprecated. Use setDeclaredSuperTypeNames(String[]) instead |
void |
setDeclaredSuperTypeNames(String[] names)
Set the direct supertypes for this node type. |
void |
setMixin(boolean mixin)
Set whether this node type is a mixin. |
void |
setName(String name)
Set the name of the node type |
void |
setOrderableChildNodes(boolean orderable)
Set whether this node type supports orderable child nodes. |
void |
setPrimaryItemName(String name)
Set the name of the primary item for this node type |
void |
setQueryable(boolean queryable)
Sets whether this node is queryable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public List<NodeDefinitionTemplate> getNodeDefinitionTemplates()
getNodeDefinitionTemplates
in interface NodeTypeTemplate
NodeTypeTemplate.getNodeDefinitionTemplates()
public List<PropertyDefinitionTemplate> getPropertyDefinitionTemplates()
getPropertyDefinitionTemplates
in interface NodeTypeTemplate
NodeTypeTemplate.getPropertyDefinitionTemplates()
public void setAbstract(boolean isAbstract)
setAbstract
in interface NodeTypeTemplate
isAbstract
- true if this node type is to be abstract, or false if it is concreteNodeTypeTemplate.setAbstract(boolean)
public void setDeclaredSupertypeNames(String[] names)
setDeclaredSuperTypeNames(String[])
instead
setDeclaredSupertypeNames
in interface NodeTypeTemplate
names
- the names of the direct supertypes, or empty or null if there are none.NodeTypeTemplate.setDeclaredSupertypeNames(java.lang.String[])
public void setDeclaredSuperTypeNames(String[] names)
setDeclaredSuperTypeNames
in interface NodeTypeTemplate
names
- the names of the direct supertypes, or empty or null if there are none.public void setMixin(boolean mixin)
setMixin
in interface NodeTypeTemplate
mixin
- true if this node type is a mixin, or false otherwiseNodeTypeTemplate.setMixin(boolean)
public void setName(String name)
setName
in interface NodeTypeTemplate
name
- the nameNodeTypeTemplate.setName(java.lang.String)
public void setOrderableChildNodes(boolean orderable)
setOrderableChildNodes
in interface NodeTypeTemplate
orderable
- true if this node type supports orderable child nodes, or false otherwiseNodeTypeTemplate.setOrderableChildNodes(boolean)
public void setPrimaryItemName(String name)
setPrimaryItemName
in interface NodeTypeTemplate
name
- the name of the child node or property that represents the primary item for nodes that use this type, or null
if there is nonetype.NodeTypeTemplate#setPrimaryItemName(java.lang.String)
public NodeDefinition[] getDeclaredNodeDefinitions()
getDeclaredChildNodeDefinitions()
instead
getDeclaredNodeDefinitions
in interface NodeTypeDefinition
NodeTypeDefinition.getDeclaredNodeDefinitions()
public NodeDefinition[] getDeclaredChildNodeDefinitions()
JcrNodeTypeTemplate
, as the method is only meaningful for registered types.
public PropertyDefinition[] getDeclaredPropertyDefinitions()
JcrNodeTypeTemplate
, as the method is only meaningful for
registered types.
getDeclaredPropertyDefinitions
in interface NodeTypeDefinition
NodeTypeDefinition.getDeclaredPropertyDefinitions()
@Deprecated public String[] getDeclaredSupertypes()
getDeclaredSupertypeNames()
instead
getDeclaredSupertypes
in interface NodeTypeDefinition
NodeTypeDefinition.getDeclaredSupertypes()
public String[] getDeclaredSupertypeNames()
getDeclaredSupertypeNames
in interface NodeTypeDefinition
public String getName()
getName
in interface NodeTypeDefinition
NodeTypeDefinition.getName()
public String getPrimaryItemName()
getPrimaryItemName
in interface NodeTypeDefinition
NodeTypeDefinition.getPrimaryItemName()
public boolean hasOrderableChildNodes()
hasOrderableChildNodes
in interface NodeTypeDefinition
NodeTypeDefinition.hasOrderableChildNodes()
public boolean isAbstract()
isAbstract
in interface NodeTypeDefinition
NodeTypeDefinition.isAbstract()
public boolean isMixin()
isMixin
in interface NodeTypeDefinition
NodeTypeDefinition.isMixin()
public boolean isQueryable()
isQueryable
in interface NodeTypeDefinition
public void setQueryable(boolean queryable)
setQueryable
in interface NodeTypeTemplate
queryable
- true if the node should be included in query results; false otherwiseNodeTypeTemplate.setQueryable(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |