|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.jcr.JcrNodeTypeTemplate
@NotThreadSafe public class JcrNodeTypeTemplate
DNA implementation of the JCR NodeTypeTemplate interface
Method Summary | |
---|---|
javax.jcr.nodetype.NodeDefinition[] |
getDeclaredNodeDefinitions()
Get the array of child node definition templates for this node type |
javax.jcr.nodetype.PropertyDefinition[] |
getDeclaredPropertyDefinitions()
Get the array of property definition templates for this node type. |
String[] |
getDeclaredSupertypes()
Get the direct supertypes for this node type. |
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. |
void |
setAbstract(boolean isAbstract)
Set whether this node type is abstract. |
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 |
Methods inherited from class java.lang.Object |
---|
equals, 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
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 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 javax.jcr.nodetype.NodeDefinition[] getDeclaredNodeDefinitions()
getDeclaredNodeDefinitions
in interface NodeTypeDefinition
NodeTypeDefinition.getDeclaredNodeDefinitions()
public javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions
in interface NodeTypeDefinition
NodeTypeDefinition.getDeclaredPropertyDefinitions()
public String[] getDeclaredSupertypes()
getDeclaredSupertypes
in interface NodeTypeDefinition
NodeTypeDefinition.getDeclaredSupertypes()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |