|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@NotThreadSafe public interface NodeTypeTemplate
A template that can be used to create new node types, patterned after the approach in the proposed JSR-283. This interface extends the NodeTypeDefinition
interface and
adds setter methods for the various attributes.
Method Summary | |
---|---|
List<NodeDefinitionTemplate> |
getNodeDefinitionTemplates()
Get the modifiable list of child node definition templates for this node type |
List<PropertyDefinitionTemplate> |
getPropertyDefinitionTemplates()
Get the modifiable list of property definition templates for this node type. |
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 interface org.jboss.dna.jcr.nodetype.NodeTypeDefinition |
---|
getDeclaredNodeDefinitions, getDeclaredPropertyDefinitions, getDeclaredSupertypes, getName, getPrimaryItemName, hasOrderableChildNodes, isAbstract, isMixin |
Method Detail |
---|
void setName(String name)
name
- the namevoid setDeclaredSupertypeNames(String[] names)
names
- the names of the direct supertypes, or empty or null if there are none.void setAbstract(boolean isAbstract)
isAbstract
- true if this node type is to be abstract, or false if it is concretevoid setMixin(boolean mixin)
mixin
- true if this node type is a mixin, or false otherwisevoid setOrderableChildNodes(boolean orderable)
orderable
- true if this node type supports orderable child nodes, or false otherwisevoid setPrimaryItemName(String name)
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 noneList<PropertyDefinitionTemplate> getPropertyDefinitionTemplates()
List<NodeDefinitionTemplate> getNodeDefinitionTemplates()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |