public class QPropertyDefinitionImpl extends QItemDefinitionImpl implements QPropertyDefinition
QPropertyDefinitionImpl implements SPI property
 definition interface.EMPTY_ARRAY| Constructor and Description | 
|---|
QPropertyDefinitionImpl(Name name,
                       Name declaringNodeType,
                       boolean isAutoCreated,
                       boolean isMandatory,
                       int onParentVersion,
                       boolean isProtected,
                       QValue[] defaultValues,
                       boolean isMultiple,
                       int requiredType,
                       QValueConstraint[] valueConstraints,
                       java.lang.String[] availableQueryOperators,
                       boolean isFullTextSearchable,
                       boolean isQueryOrderable)
Creates a new serializable property definition. 
 | 
QPropertyDefinitionImpl(PropertyDefinition propDef,
                       NamePathResolver resolver,
                       QValueFactory qValueFactory)
Creates a new property definition based on  
propDef. | 
QPropertyDefinitionImpl(QPropertyDefinition propDef)
Copy constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
definesNode()
Determines whether this item definition defines a node. 
 | 
boolean | 
equals(java.lang.Object obj)
Compares two property definitions for equality. 
 | 
java.lang.String[] | 
getAvailableQueryOperators()
Returns the available 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. 
 | 
int | 
hashCode()
Overrides  
QItemDefinitionImpl.hashCode(). | 
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. 
 | 
definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtectedgetClass, notify, notifyAll, toString, wait, wait, waitdefinesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtectedpublic QPropertyDefinitionImpl(QPropertyDefinition propDef)
propDef - some other property definition.public QPropertyDefinitionImpl(Name name, Name declaringNodeType, boolean isAutoCreated, boolean isMandatory, int onParentVersion, boolean isProtected, QValue[] defaultValues, boolean isMultiple, int requiredType, QValueConstraint[] valueConstraints, java.lang.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 queryablejava.lang.NullPointerException - if valueConstraints or
                              availableQueryOperators is
                              null.public QPropertyDefinitionImpl(PropertyDefinition propDef,
                               NamePathResolver resolver,
                               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 QPropertyDefinitionpublic QValueConstraint[] getValueConstraints()
getValueConstraints in interface QPropertyDefinitionpublic QValue[] getDefaultValues()
null if no default
 values are defined.getDefaultValues in interface QPropertyDefinitionnullpublic boolean isMultiple()
isMultiple in interface QPropertyDefinitionpublic java.lang.String[] getAvailableQueryOperators()
getAvailableQueryOperators in interface QPropertyDefinitionpublic boolean isFullTextSearchable()
isFullTextSearchable in interface QPropertyDefinitiontrue if this property definition is full text searchable.public boolean isQueryOrderable()
isQueryOrderable in interface QPropertyDefinitiontrue if this property definition is query-orderable.public boolean definesNode()
definesNode in interface QItemDefinitionfalsepublic boolean equals(java.lang.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 QItemDefinitionImpl"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"