public class TemplateBuilderFactory.PropertyDefinitionTemplateBuilder extends DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate>
fullTextSearchable, isMultiple, queryOperators, queryOrderable, requiredType
autocreate, isMandatory, isProtected, name, onParent
Constructor and Description |
---|
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 PropertyDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) throws UnsupportedRepositoryOperationException, RepositoryException
public void setName(String name) throws RepositoryException
setName
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
name
- the name of the child item definition being buildRepositoryException
ItemDefinition.getName()
public void addDefaultValues(String value) throws ValueFormatException
addDefaultValues
in class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate>
value
- add a default value to the list of default values of the property definition
being built.ValueFormatException
PropertyDefinition.getDefaultValues()
public void addValueConstraint(String constraint)
addValueConstraint
in class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<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<NodeTypeTemplate>
name
- the name of the declaring node type.ItemDefinition.getDeclaringNodeType()
public void build() throws IllegalStateException
DefinitionBuilderFactory.AbstractItemDefinitionBuilder
build
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
IllegalStateException
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.