T
- public abstract static class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T> extends DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
T
Modifier and Type | Field and Description |
---|---|
protected boolean |
fullTextSearchable
|
protected boolean |
isMultiple
|
protected String[] |
queryOperators
|
protected boolean |
queryOrderable
|
protected int |
requiredType
|
autocreate, isMandatory, isProtected, name, onParent
Constructor and Description |
---|
AbstractPropertyDefinitionBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addDefaultValues(String value) |
abstract void |
addValueConstraint(String constraint) |
int |
getRequiredType()
The required type of the property definition being built.
|
void |
setAvailableQueryOperators(String[] queryOperators) |
void |
setFullTextSearchable(boolean fullTextSearchable) |
void |
setMultiple(boolean isMultiple) |
void |
setQueryOrderable(boolean queryOrderable) |
void |
setRequiredType(int type) |
build, getName, setAutoCreated, setDeclaringNodeType, setMandatory, setName, setOnParentVersion, setProtected
protected int requiredType
protected boolean isMultiple
protected boolean fullTextSearchable
protected boolean queryOrderable
protected String[] queryOperators
public void setRequiredType(int type) throws RepositoryException
type
- the required type of the property definition being built.RepositoryException
PropertyDefinition.getRequiredType()
public int getRequiredType()
public abstract void addValueConstraint(String constraint) throws RepositoryException
constraint
- add a value constraint to the list of value constraints of the property
definition being built.RepositoryException
PropertyDefinition.getValueConstraints()
public abstract void addDefaultValues(String value) throws RepositoryException
value
- add a default value to the list of default values of the property definition
being built.RepositoryException
PropertyDefinition.getDefaultValues()
public void setMultiple(boolean isMultiple) throws RepositoryException
isMultiple
- true if building a 'multiple' property definition.RepositoryException
PropertyDefinition.isMultiple()
public void setFullTextSearchable(boolean fullTextSearchable) throws RepositoryException
fullTextSearchable
- true
if building a
'fulltext searchable' property definitionRepositoryException
PropertyDefinition.isFullTextSearchable()
public void setQueryOrderable(boolean queryOrderable) throws RepositoryException
queryOrderable
- true
if the property is orderable in a queryRepositoryException
PropertyDefinition.isQueryOrderable()
public void setAvailableQueryOperators(String[] queryOperators) throws RepositoryException
queryOperators
- the query operators of the propertyRepositoryException
PropertyDefinition.getAvailableQueryOperators()
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.