public class TemplateBuilderFactory.PropertyDefinitionTemplateBuilder extends DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate>
Constructor and Description |
---|
PropertyDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultValues(java.lang.String value) |
void |
addValueConstraint(java.lang.String constraint) |
void |
build()
Build this item definition an add it to its parent node type definition
|
void |
setDeclaringNodeType(java.lang.String name) |
void |
setName(java.lang.String name) |
getRequiredType, setAvailableQueryOperators, setFullTextSearchable, setMultiple, setQueryOrderable, setRequiredType
getName, setAutoCreated, setMandatory, setOnParentVersion, setProtected
public PropertyDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) throws UnsupportedRepositoryOperationException, RepositoryException
public void setName(java.lang.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(java.lang.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(java.lang.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(java.lang.String name)
setDeclaringNodeType
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
name
- the name of the declaring node type.ItemDefinition.getDeclaringNodeType()
public void build() throws java.lang.IllegalStateException
DefinitionBuilderFactory.AbstractItemDefinitionBuilder
build
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
java.lang.IllegalStateException
Copyright © 2010 - 2020 Adobe. All Rights Reserved