public class TemplateBuilderFactory.PropertyDefinitionTemplateBuilder extends DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
fullTextSearchable, isMultiple, queryOperators, queryOrderable, requiredType
autocreate, isMandatory, isProtected, name, onParent
Constructor and Description |
---|
TemplateBuilderFactory.PropertyDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultValues(String value) |
void |
addValueConstraint(String constraint) |
void |
build()
Build this item definition an add it to its parent node type definition
|
void |
setDeclaringNodeType(String name) |
void |
setName(String name) |
getRequiredType, setAvailableQueryOperators, setFullTextSearchable, setMultiple, setQueryOrderable, setRequiredType
getName, setAutoCreated, setMandatory, setOnParentVersion, setProtected
public TemplateBuilderFactory.PropertyDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
public void setName(String name) throws javax.jcr.RepositoryException
setName
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
name
- the name of the child item definition being buildjavax.jcr.RepositoryException
ItemDefinition.getName()
public void addDefaultValues(String value) throws javax.jcr.ValueFormatException
addDefaultValues
in class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
value
- add a default value to the list of default values of the property definition
being built.javax.jcr.ValueFormatException
PropertyDefinition.getDefaultValues()
public void addValueConstraint(String constraint)
addValueConstraint
in class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
constraint
- add a value constraint to the list of value constraints of the property
definition being built.PropertyDefinition.getValueConstraints()
public void setDeclaringNodeType(String name)
setDeclaringNodeType
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
name
- the name of the declaring node type.ItemDefinition.getDeclaringNodeType()
public void build() throws IllegalStateException
DefinitionBuilderFactory.AbstractItemDefinitionBuilder
build
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
IllegalStateException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.