org.apache.jackrabbit.spi
Interface QPropertyDefinition

All Superinterfaces:
QItemDefinition
All Known Implementing Classes:
QPropertyDefinitionImpl

public interface QPropertyDefinition
extends QItemDefinition

QPropertyDefinition is the SPI representation of a property definition. It refers to Names, SPI default values and value constraints only and is thus isolated from session-specific namespace mappings.

See Also:
PropertyDefinition

Field Summary
static QPropertyDefinition[] EMPTY_ARRAY
          Empty array of QPropertyDefinition.
 
Method Summary
 String[] getAvailableQueryOperators()
          Returns the availabe query operators.
 QValue[] getDefaultValues()
          Returns the array of default values or null if no default values are defined.
 int getRequiredType()
          Returns the required type.
 QValueConstraint[] getValueConstraints()
          Returns the array of value constraints.
 boolean isFullTextSearchable()
          Reports whether this property definition is full text searchable.
 boolean isMultiple()
          Reports whether this property can have multiple values.
 boolean isQueryOrderable()
          Reports whether this property definition is query-orderable.
 
Methods inherited from interface org.apache.jackrabbit.spi.QItemDefinition
definesNode, definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 

Field Detail

EMPTY_ARRAY

static final QPropertyDefinition[] EMPTY_ARRAY
Empty array of QPropertyDefinition.

Method Detail

getRequiredType

int getRequiredType()
Returns the required type.

Returns:
the required type.

getValueConstraints

QValueConstraint[] getValueConstraints()
Returns the array of value constraints.

Returns:
the array of value constraints.

getDefaultValues

QValue[] getDefaultValues()
Returns the array of default values or null if no default values are defined.

Returns:
the array of default values or null

isMultiple

boolean isMultiple()
Reports whether this property can have multiple values.

Returns:
the 'multiple' flag.

getAvailableQueryOperators

String[] getAvailableQueryOperators()
Returns the availabe query operators.

Returns:
the availabe query operators.
Since:
JCR 2.0

isFullTextSearchable

boolean isFullTextSearchable()
Reports whether this property definition is full text searchable.

Returns:
true if this property definition is full text searchable.
Since:
JCR 2.0

isQueryOrderable

boolean isQueryOrderable()
Reports whether this property definition is query-orderable.

Returns:
true if this property definition is query-orderable.
Since:
JCR 2.0


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