Class QPropertyDefinitionImpl
- java.lang.Object
- 
- org.apache.jackrabbit.spi.commons.QItemDefinitionImpl
- 
- org.apache.jackrabbit.spi.commons.QPropertyDefinitionImpl
 
 
- 
- All Implemented Interfaces:
- Serializable,- QItemDefinition,- QPropertyDefinition
 
 public class QPropertyDefinitionImpl extends QItemDefinitionImpl implements QPropertyDefinition QPropertyDefinitionImplimplements SPI property definition interface.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.jackrabbit.spi.commons.QItemDefinitionImplhashCode
 - 
Fields inherited from interface org.apache.jackrabbit.spi.QItemDefinitionEMPTY_ARRAY
 - 
Fields inherited from interface org.apache.jackrabbit.spi.QPropertyDefinitionEMPTY_ARRAY
 
- 
 - 
Constructor SummaryConstructors Constructor Description QPropertyDefinitionImpl(PropertyDefinition propDef, NamePathResolver resolver, QValueFactory qValueFactory)Creates a new property definition based onpropDef.QPropertyDefinitionImpl(Name name, Name declaringNodeType, boolean isAutoCreated, boolean isMandatory, int onParentVersion, boolean isProtected, QValue[] defaultValues, boolean isMultiple, int requiredType, QValueConstraint[] valueConstraints, String[] availableQueryOperators, boolean isFullTextSearchable, boolean isQueryOrderable)Creates a new serializable property definition.QPropertyDefinitionImpl(QPropertyDefinition propDef)Copy constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandefinesNode()Determines whether this item definition defines a node.booleanequals(Object obj)Compares two property definitions for equality.String[]getAvailableQueryOperators()Returns the available query operators.QValue[]getDefaultValues()Returns the array of default values ornullif no default values are defined.intgetRequiredType()Returns the required type.QValueConstraint[]getValueConstraints()Returns the array of value constraints.inthashCode()OverridesQItemDefinitionImpl.hashCode().booleanisFullTextSearchable()Reports whether this property definition is full text searchable.booleanisMultiple()Reports whether this property can have multiple values.booleanisQueryOrderable()Reports whether this property definition is query-orderable.- 
Methods inherited from class org.apache.jackrabbit.spi.commons.QItemDefinitionImpldefinesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.jackrabbit.spi.QItemDefinitiondefinesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 
- 
 
- 
- 
- 
Constructor Detail- 
QPropertyDefinitionImplpublic QPropertyDefinitionImpl(QPropertyDefinition propDef) Copy constructor.- Parameters:
- propDef- some other property definition.
 
 - 
QPropertyDefinitionImplpublic QPropertyDefinitionImpl(Name name, Name declaringNodeType, boolean isAutoCreated, boolean isMandatory, int onParentVersion, boolean isProtected, QValue[] defaultValues, boolean isMultiple, int requiredType, QValueConstraint[] valueConstraints, String[] availableQueryOperators, boolean isFullTextSearchable, boolean isQueryOrderable) Creates a new serializable property definition.- Parameters:
- name- the name of the child item.
- declaringNodeType- the declaring node type
- isAutoCreated- if this item is auto created.
- isMandatory- if this is a mandatory item.
- onParentVersion- the on parent version behaviour.
- isProtected- if this item is protected.
- defaultValues- the default values or- nullif there are none.
- isMultiple- if this property is multi-valued.
- requiredType- the required type for this property.
- valueConstraints- the value constraints for this property. If none exist an empty array must be passed.
- availableQueryOperators- the available query operators
- isFullTextSearchable- if this is fulltext searchable
- isQueryOrderable- if this is queryable
- Throws:
- NullPointerException- if- valueConstraintsor- availableQueryOperatorsis- null.
- Since:
- JCR 2.0
 
 - 
QPropertyDefinitionImplpublic QPropertyDefinitionImpl(PropertyDefinition propDef, NamePathResolver resolver, QValueFactory qValueFactory) throws RepositoryException Creates a new property definition based onpropDef.- Parameters:
- propDef- the JCR property definition.
- resolver- the name/path resolver of the session that provided the property definition.
- qValueFactory- the QValue factory.
- Throws:
- RepositoryException- if an error occurs while reading from- propDef.
 
 
- 
 - 
Method Detail- 
getRequiredTypepublic int getRequiredType() Returns the required type.- Specified by:
- getRequiredTypein interface- QPropertyDefinition
- Returns:
- the required type.
 
 - 
getValueConstraintspublic QValueConstraint[] getValueConstraints() Returns the array of value constraints.- Specified by:
- getValueConstraintsin interface- QPropertyDefinition
- Returns:
- the array of value constraints.
 
 - 
getDefaultValuespublic QValue[] getDefaultValues() Returns the array of default values ornullif no default values are defined.- Specified by:
- getDefaultValuesin interface- QPropertyDefinition
- Returns:
- the array of default values or null
 
 - 
isMultiplepublic boolean isMultiple() Reports whether this property can have multiple values.- Specified by:
- isMultiplein interface- QPropertyDefinition
- Returns:
- the 'multiple' flag.
 
 - 
getAvailableQueryOperatorspublic String[] getAvailableQueryOperators() Returns the available query operators.- Specified by:
- getAvailableQueryOperatorsin interface- QPropertyDefinition
- Returns:
- the available query operators.
 
 - 
isFullTextSearchablepublic boolean isFullTextSearchable() Reports whether this property definition is full text searchable.- Specified by:
- isFullTextSearchablein interface- QPropertyDefinition
- Returns:
- trueif this property definition is full text searchable.
 
 - 
isQueryOrderablepublic boolean isQueryOrderable() Reports whether this property definition is query-orderable.- Specified by:
- isQueryOrderablein interface- QPropertyDefinition
- Returns:
- trueif this property definition is query-orderable.
 
 - 
definesNodepublic boolean definesNode() Determines whether this item definition defines a node.- Specified by:
- definesNodein interface- QItemDefinition
- Returns:
- always false
 
 - 
equalspublic boolean equals(Object obj) Compares two property definitions for equality. Returnstrueif the given object is a property definition and has the same attributes as this property definition.- Overrides:
- equalsin class- QItemDefinitionImpl
- Parameters:
- obj- the object to compare this property definition with
- Returns:
- trueif the object is equal to this property definition,- falseotherwise
- See Also:
- Object.equals(Object)
 
 - 
hashCodepublic int hashCode() OverridesQItemDefinitionImpl.hashCode().- Overrides:
- hashCodein class- QItemDefinitionImpl
- Returns:
- the hash code
 
 
- 
 
-