Class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T>
- java.lang.Object
 - 
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
 - 
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T>
 
 
 
- 
- Type Parameters:
 T-
- Direct Known Subclasses:
 TemplateBuilderFactory.PropertyDefinitionTemplateBuilder
- Enclosing class:
 - DefinitionBuilderFactory<T,N>
 
public abstract static class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T> extends DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
Builder for property definitions of typeT 
- 
- 
Constructor Summary
Constructors Constructor Description AbstractPropertyDefinitionBuilder() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddDefaultValues(java.lang.String value)abstract voidaddValueConstraint(java.lang.String constraint)intgetRequiredType()The required type of the property definition being built.voidsetAvailableQueryOperators(java.lang.String[] queryOperators)voidsetFullTextSearchable(boolean fullTextSearchable)voidsetMultiple(boolean isMultiple)voidsetQueryOrderable(boolean queryOrderable)voidsetRequiredType(int type)- 
Methods inherited from class org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder
build, getName, setAutoCreated, setDeclaringNodeType, setMandatory, setName, setOnParentVersion, setProtected 
 - 
 
 - 
 
- 
- 
Method Detail
- 
setRequiredType
public void setRequiredType(int type) throws javax.jcr.RepositoryException- Parameters:
 type- the required type of the property definition being built.- Throws:
 javax.jcr.RepositoryException- See Also:
 PropertyDefinition.getRequiredType()
 
- 
getRequiredType
public int getRequiredType()
The required type of the property definition being built.- Returns:
 
 
- 
addValueConstraint
public abstract void addValueConstraint(java.lang.String constraint) throws javax.jcr.RepositoryException- Parameters:
 constraint- add a value constraint to the list of value constraints of the property definition being built.- Throws:
 javax.jcr.RepositoryException- See Also:
 PropertyDefinition.getValueConstraints()
 
- 
addDefaultValues
public abstract void addDefaultValues(java.lang.String value) throws javax.jcr.RepositoryException- Parameters:
 value- add a default value to the list of default values of the property definition being built.- Throws:
 javax.jcr.RepositoryException- See Also:
 PropertyDefinition.getDefaultValues()
 
- 
setMultiple
public void setMultiple(boolean isMultiple) throws javax.jcr.RepositoryException- Parameters:
 isMultiple- true if building a 'multiple' property definition.- Throws:
 javax.jcr.RepositoryException- See Also:
 PropertyDefinition.isMultiple()
 
- 
setFullTextSearchable
public void setFullTextSearchable(boolean fullTextSearchable) throws javax.jcr.RepositoryException- Parameters:
 fullTextSearchable-trueif building a 'fulltext searchable' property definition- Throws:
 javax.jcr.RepositoryException- See Also:
 PropertyDefinition.isFullTextSearchable()
 
- 
setQueryOrderable
public void setQueryOrderable(boolean queryOrderable) throws javax.jcr.RepositoryException- Parameters:
 queryOrderable-trueif the property is orderable in a query- Throws:
 javax.jcr.RepositoryException- See Also:
 PropertyDefinition.isQueryOrderable()
 
- 
setAvailableQueryOperators
public void setAvailableQueryOperators(java.lang.String[] queryOperators) throws javax.jcr.RepositoryException- Parameters:
 queryOperators- the query operators of the property- Throws:
 javax.jcr.RepositoryException- See Also:
 PropertyDefinition.getAvailableQueryOperators()
 
 - 
 
 -