public class QPropertyDefinitionImpl extends QItemDefinitionImpl implements org.apache.jackrabbit.spi.QPropertyDefinition
QPropertyDefinitionImpl implements SPI property
definition interface.hashCode| Constructor and Description |
|---|
QPropertyDefinitionImpl(org.apache.jackrabbit.spi.Name name,
org.apache.jackrabbit.spi.Name declaringNodeType,
boolean isAutoCreated,
boolean isMandatory,
int onParentVersion,
boolean isProtected,
org.apache.jackrabbit.spi.QValue[] defaultValues,
boolean isMultiple,
int requiredType,
org.apache.jackrabbit.spi.QValueConstraint[] valueConstraints,
String[] availableQueryOperators,
boolean isFullTextSearchable,
boolean isQueryOrderable)
Creates a new serializable property definition.
|
QPropertyDefinitionImpl(PropertyDefinition propDef,
NamePathResolver resolver,
org.apache.jackrabbit.spi.QValueFactory qValueFactory)
Creates a new property definition based on
propDef. |
QPropertyDefinitionImpl(org.apache.jackrabbit.spi.QPropertyDefinition propDef)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
definesNode() |
boolean |
equals(Object obj)
Compares two property definitions for equality.
|
String[] |
getAvailableQueryOperators() |
org.apache.jackrabbit.spi.QValue[] |
getDefaultValues() |
int |
getRequiredType() |
org.apache.jackrabbit.spi.QValueConstraint[] |
getValueConstraints() |
int |
hashCode()
Overrides
QItemDefinitionImpl.hashCode(). |
boolean |
isFullTextSearchable() |
boolean |
isMultiple() |
boolean |
isQueryOrderable() |
definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtectedpublic QPropertyDefinitionImpl(org.apache.jackrabbit.spi.QPropertyDefinition propDef)
propDef - some other property definition.public QPropertyDefinitionImpl(org.apache.jackrabbit.spi.Name name,
org.apache.jackrabbit.spi.Name declaringNodeType,
boolean isAutoCreated,
boolean isMandatory,
int onParentVersion,
boolean isProtected,
org.apache.jackrabbit.spi.QValue[] defaultValues,
boolean isMultiple,
int requiredType,
org.apache.jackrabbit.spi.QValueConstraint[] valueConstraints,
String[] availableQueryOperators,
boolean isFullTextSearchable,
boolean isQueryOrderable)
name - the name of the child item.declaringNodeType - the declaring node typeisAutoCreated - 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 null if 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 operatorsisFullTextSearchable - if this is fulltext searchableisQueryOrderable - if this is queryableNullPointerException - if valueConstraints or
availableQueryOperators is
null.public QPropertyDefinitionImpl(PropertyDefinition propDef, NamePathResolver resolver, org.apache.jackrabbit.spi.QValueFactory qValueFactory) throws RepositoryException
propDef.propDef - the JCR property definition.resolver - the name/path resolver of the session that provided
the property definition.qValueFactory - the QValue factory.RepositoryException - if an error occurs while reading from
propDef.public int getRequiredType()
getRequiredType in interface org.apache.jackrabbit.spi.QPropertyDefinitionpublic org.apache.jackrabbit.spi.QValueConstraint[] getValueConstraints()
getValueConstraints in interface org.apache.jackrabbit.spi.QPropertyDefinitionpublic org.apache.jackrabbit.spi.QValue[] getDefaultValues()
getDefaultValues in interface org.apache.jackrabbit.spi.QPropertyDefinitionpublic boolean isMultiple()
isMultiple in interface org.apache.jackrabbit.spi.QPropertyDefinitionpublic String[] getAvailableQueryOperators()
getAvailableQueryOperators in interface org.apache.jackrabbit.spi.QPropertyDefinitionpublic boolean isFullTextSearchable()
isFullTextSearchable in interface org.apache.jackrabbit.spi.QPropertyDefinitionpublic boolean isQueryOrderable()
isQueryOrderable in interface org.apache.jackrabbit.spi.QPropertyDefinitionpublic boolean definesNode()
definesNode in interface org.apache.jackrabbit.spi.QItemDefinitionfalsepublic boolean equals(Object obj)
true
if the given object is a property definition and has the same attributes
as this property definition.equals in class QItemDefinitionImplobj - the object to compare this property definition withtrue if the object is equal to this property definition,
false otherwiseObject.equals(Object)public int hashCode()
QItemDefinitionImpl.hashCode().hashCode in class QItemDefinitionImplCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.