Package org.apache.jackrabbit.spi
Interface QPropertyDefinition
- All Superinterfaces:
QItemDefinition
- All Known Implementing Classes:
QPropertyDefinitionImpl
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QPropertyDefinition[]Empty array ofQPropertyDefinition. -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the available query operators.QValue[]Returns the array of default values ornullif no default values are defined.intReturns the required type.Returns the array of value constraints.booleanReports whether this property definition is full text searchable.booleanReports whether this property can have multiple values.booleanReports 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 Details
-
EMPTY_ARRAY
Empty array ofQPropertyDefinition.
-
-
Method Details
-
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 ornullif 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 available query operators.- Returns:
- the available query operators.
- Since:
- JCR 2.0
-
isFullTextSearchable
boolean isFullTextSearchable()Reports whether this property definition is full text searchable.- Returns:
trueif this property definition is full text searchable.- Since:
- JCR 2.0
-
isQueryOrderable
boolean isQueryOrderable()Reports whether this property definition is query-orderable.- Returns:
trueif this property definition is query-orderable.- Since:
- JCR 2.0
-