public class TemplateBuilderFactory.PropertyDefinitionTemplateBuilder extends DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate>
fullTextSearchable, isMultiple, queryOperators, queryOrderable, requiredTypeautocreate, 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, setRequiredTypegetName, setAutoCreated, setMandatory, setOnParentVersion, setProtectedpublic 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 buildRepositoryExceptionItemDefinition.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.ValueFormatExceptionPropertyDefinition.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.AbstractItemDefinitionBuilderbuild in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>IllegalStateExceptionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.