public class QPropertyDefinitionBuilder extends QItemDefinitionBuilder
QPropertyDefinition
.Constructor and Description |
---|
QPropertyDefinitionBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultValue(QValue value)
Adds a default value of the property definition being built.
|
void |
addValueConstraint(QValueConstraint constraint)
Adds a value constraint of the property definition being built.
|
QPropertyDefinition |
build()
Creates a new
QPropertyDefinition instance based on the state of
this builder. |
java.lang.String[] |
getAvailableQueryOperators() |
QValue[] |
getDefaultValues() |
boolean |
getFullTextSearchable() |
boolean |
getMultiple() |
boolean |
getQueryOrderable() |
int |
getRequiredType() |
QValueConstraint[] |
getValueConstraints() |
void |
setAvailableQueryOperators(java.lang.String[] queryOperators) |
void |
setDefaultValues(QValue[] values) |
void |
setFullTextSearchable(boolean fullTextSearchable) |
void |
setMultiple(boolean isMultiple) |
void |
setQueryOrderable(boolean queryOrderable) |
void |
setRequiredType(int type) |
void |
setValueConstraints(QValueConstraint[] constraints) |
getAutoCreated, getDeclaringNodeType, getMandatory, getName, getOnParentVersion, getProtected, setAutoCreated, setDeclaringNodeType, setMandatory, setName, setOnParentVersion, setProtected
public void setRequiredType(int type)
type
- the required type of the property definition being built.PropertyDefinition#getRequiredType()
public int getRequiredType()
PropertyDefinition#getRequiredType()
public void addValueConstraint(QValueConstraint constraint)
constraint
- the constraint.public void setValueConstraints(QValueConstraint[] constraints)
constraints
- array of value constraints of the property definition
being built.PropertyDefinition#getValueConstraints()
public QValueConstraint[] getValueConstraints()
PropertyDefinition#getValueConstraints()
public void addDefaultValue(QValue value)
value
- a default value.public void setDefaultValues(QValue[] values)
values
- array of default values of the property definition being
built.PropertyDefinition#getDefaultValues()
public QValue[] getDefaultValues()
null
if no default values are defined.PropertyDefinition#getDefaultValues()
public void setMultiple(boolean isMultiple)
isMultiple
- true if building a 'multiple' property definition.PropertyDefinition#isMultiple()
public boolean getMultiple()
PropertyDefinition#isMultiple()
public boolean getFullTextSearchable()
true
if the property is fulltext searchablePropertyDefinition#isFullTextSearchable()
public void setFullTextSearchable(boolean fullTextSearchable)
fullTextSearchable
- true
if building a 'fulltext
searchable' property definitionPropertyDefinition#isFullTextSearchable()
public boolean getQueryOrderable()
true
if the property is orderable in a queryPropertyDefinition#isQueryOrderable()
public void setQueryOrderable(boolean queryOrderable)
queryOrderable
- true
if the property is orderable in a
queryPropertyDefinition#isQueryOrderable()
public java.lang.String[] getAvailableQueryOperators()
PropertyDefinition#getAvailableQueryOperators()
public void setAvailableQueryOperators(java.lang.String[] queryOperators)
queryOperators
- the query operators of the propertyPropertyDefinition#getAvailableQueryOperators()
public QPropertyDefinition build() throws java.lang.IllegalStateException
QPropertyDefinition
instance based on the state of
this builder.QPropertyDefinition
instance.java.lang.IllegalStateException
- if the instance has not the necessary
information to build the QPropertyDefinition
instance."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"