org.apache.jackrabbit.commons.cnd
Class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T>

java.lang.Object
  extended by org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
      extended by 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 type T


Field Summary
protected  boolean fullTextSearchable
          See setFullTextSearchable(boolean)
protected  boolean isMultiple
          See setMultiple(boolean)
protected  String[] queryOperators
          See setAvailableQueryOperators(String[])
protected  boolean queryOrderable
          See setQueryOrderable(boolean)
protected  int requiredType
          See setRequiredType(int)
 
Fields inherited from class org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder
autocreate, isMandatory, isProtected, name, onParent
 
Constructor Summary
DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder()
           
 
Method Summary
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)
           
 
Methods inherited from class org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder
build, getName, setAutoCreated, setDeclaringNodeType, setMandatory, setName, setOnParentVersion, setProtected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requiredType

protected int requiredType
See setRequiredType(int)


isMultiple

protected boolean isMultiple
See setMultiple(boolean)


fullTextSearchable

protected boolean fullTextSearchable
See setFullTextSearchable(boolean)


queryOrderable

protected boolean queryOrderable
See setQueryOrderable(boolean)


queryOperators

protected String[] queryOperators
See setAvailableQueryOperators(String[])

Constructor Detail

DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder

public DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder()
Method Detail

setRequiredType

public void setRequiredType(int type)
                     throws RepositoryException
Parameters:
type - the required type of the property definition being built.
Throws:
RepositoryException
See Also:
PropertyDefinition.getRequiredType()

getRequiredType

public int getRequiredType()
The required type of the property definition being built.

Returns:

addValueConstraint

public abstract void addValueConstraint(String constraint)
                                 throws RepositoryException
Parameters:
constraint - add a value constraint to the list of value constraints of the property definition being built.
Throws:
RepositoryException
See Also:
PropertyDefinition.getValueConstraints()

addDefaultValues

public abstract void addDefaultValues(String value)
                               throws RepositoryException
Parameters:
value - add a default value to the list of default values of the property definition being built.
Throws:
RepositoryException
See Also:
PropertyDefinition.getDefaultValues()

setMultiple

public void setMultiple(boolean isMultiple)
                 throws RepositoryException
Parameters:
isMultiple - true if building a 'multiple' property definition.
Throws:
RepositoryException
See Also:
PropertyDefinition.isMultiple()

setFullTextSearchable

public void setFullTextSearchable(boolean fullTextSearchable)
                           throws RepositoryException
Parameters:
fullTextSearchable - true if building a 'fulltext searchable' property definition
Throws:
RepositoryException
See Also:
PropertyDefinition.isFullTextSearchable()

setQueryOrderable

public void setQueryOrderable(boolean queryOrderable)
                       throws RepositoryException
Parameters:
queryOrderable - true if the property is orderable in a query
Throws:
RepositoryException
See Also:
PropertyDefinition.isQueryOrderable()

setAvailableQueryOperators

public void setAvailableQueryOperators(String[] queryOperators)
                                throws RepositoryException
Parameters:
queryOperators - the query operators of the property
Throws:
RepositoryException
See Also:
PropertyDefinition.getAvailableQueryOperators()


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.