|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@NotThreadSafe public interface NodeDefinitionTemplate

A template that can be used to create new child node definitions, patterned after the approach in the proposed JSR-283. This interface extends the standard NodeTypeDefinition
interface and adds setter methods for the various attributes.
NodeTypeTemplate.getNodeDefinitionTemplates()| Method Summary | |
|---|---|
void |
setDefaultPrimaryType(String defaultPrimaryType)
Deprecated. As of ModeShape 2.0, use NodeDefinitionTemplate.setDefaultPrimaryTypeName(String) instead |
void |
setRequiredPrimaryTypes(String[] requiredPrimaryTypes)
Deprecated. As of ModeShape 2.0, use NodeDefinitionTemplate.setRequiredPrimaryTypeNames(String[]) instead |
| Methods inherited from interface javax.jcr.nodetype.NodeDefinitionTemplate |
|---|
setAutoCreated, setDefaultPrimaryTypeName, setMandatory, setName, setOnParentVersion, setProtected, setRequiredPrimaryTypeNames, setSameNameSiblings |
| Methods inherited from interface javax.jcr.nodetype.NodeDefinition |
|---|
allowsSameNameSiblings, getDefaultPrimaryType, getDefaultPrimaryTypeName, getRequiredPrimaryTypeNames, getRequiredPrimaryTypes |
| Methods inherited from interface javax.jcr.nodetype.ItemDefinition |
|---|
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected |
| Method Detail |
|---|
@Deprecated
void setRequiredPrimaryTypes(String[] requiredPrimaryTypes)
throws ConstraintViolationException
NodeDefinitionTemplate.setRequiredPrimaryTypeNames(String[]) instead
requiredPrimaryTypes - the names of the required primary types, or null or empty if there are no requirements for the
primary types of the children described by this definition
ConstraintViolationException - if any of the requiredPrimaryTypes are not a syntactically valid JCR name
in either qualified or expanded form.
@Deprecated
void setDefaultPrimaryType(String defaultPrimaryType)
throws ConstraintViolationException
NodeDefinitionTemplate.setDefaultPrimaryTypeName(String) instead
defaultPrimaryType - the name of the primary type that should be used by default, or null if there is none
ConstraintViolationException - if defaultPrimaryType is not a syntactically valid JCR name in either
qualified or expanded form.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||