org.apache.jackrabbit.spi2dav
Class QPropertyDefinitionImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi2dav.QItemDefinitionImpl
      extended by org.apache.jackrabbit.spi2dav.QPropertyDefinitionImpl
All Implemented Interfaces:
QItemDefinition, QPropertyDefinition, NodeTypeConstants

public class QPropertyDefinitionImpl
extends QItemDefinitionImpl
implements QPropertyDefinition

This class implements the QPropertyDefinition interface and additionally provides setter methods for the various property definition attributes.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.spi2dav.QItemDefinitionImpl
ANY_NAME, hashCode
 
Fields inherited from interface org.apache.jackrabbit.spi.QPropertyDefinition
EMPTY_ARRAY
 
Fields inherited from interface org.apache.jackrabbit.webdav.jcr.nodetype.NodeTypeConstants
AUTOCREATED_ATTRIBUTE, AVAILABLE_QUERY_OPERATOR_ELEMENT, AVAILABLE_QUERY_OPERATORS_ELEMENT, CHILDNODEDEFINITION_ELEMENT, DECLARINGNODETYPE_ATTRIBUTE, DEFAULTPRIMARYTYPE_ATTRIBUTE, DEFAULTVALUE_ELEMENT, DEFAULTVALUES_ELEMENT, FULL_TEXT_SEARCHABLE_ATTRIBUTE, HASORDERABLECHILDNODES_ATTRIBUTE, ISABSTRACT_ATTRIBUTE, ISMIXIN_ATTRIBUTE, ISQUERYABLE_ATTRIBUTE, MANDATORY_ATTRIBUTE, MULTIPLE_ATTRIBUTE, NAME_ATTRIBUTE, NAMESPACE, NODETYPE_ELEMENT, NODETYPES_ELEMENT, ONPARENTVERSION_ATTRIBUTE, PRIMARYITEMNAME_ATTRIBUTE, PROPERTYDEFINITION_ELEMENT, PROTECTED_ATTRIBUTE, QUERY_ORDERABLE_ATTRIBUTE, REQUIREDPRIMARYTYPE_ELEMENT, REQUIREDPRIMARYTYPES_ELEMENT, REQUIREDTYPE_ATTRIBUTE, SAMENAMESIBLINGS_ATTRIBUTE, SUPERTYPE_ELEMENT, SUPERTYPES_ELEMENT, VALUECONSTRAINT_ELEMENT, VALUECONSTRAINTS_ELEMENT, XML_NODETYPE, XML_NODETYPENAME, XML_NODETYPES, XML_REPORT_ALLNODETYPES, XML_REPORT_MIXINNODETYPES, XML_REPORT_PRIMARYNODETYPES
 
Method Summary
 boolean definesNode()
          Determines whether this item definition defines a node.
 boolean equals(Object obj)
          Compares two property definitions for equality.
 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.
 int hashCode()
          Overwrites 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.
 
Methods inherited from class org.apache.jackrabbit.spi2dav.QItemDefinitionImpl
definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.spi.QItemDefinition
definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 

Method Detail

getRequiredType

public int getRequiredType()
Returns the required type.

Specified by:
getRequiredType in interface QPropertyDefinition
Returns:
the required type.

getValueConstraints

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

Specified by:
getValueConstraints in interface QPropertyDefinition
Returns:
the array of value constraints.

getDefaultValues

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

Specified by:
getDefaultValues in interface QPropertyDefinition
Returns:
the array of default values or null

isMultiple

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

Specified by:
isMultiple in interface QPropertyDefinition
Returns:
the 'multiple' flag.

getAvailableQueryOperators

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

Specified by:
getAvailableQueryOperators in interface QPropertyDefinition
Returns:
the availabe query operators.

isFullTextSearchable

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

Specified by:
isFullTextSearchable in interface QPropertyDefinition
Returns:
true if this property definition is full text searchable.

isQueryOrderable

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

Specified by:
isQueryOrderable in interface QPropertyDefinition
Returns:
true if this property definition is query-orderable.

definesNode

public boolean definesNode()
Determines whether this item definition defines a node.

Specified by:
definesNode in interface QItemDefinition
Returns:
always false

equals

public boolean equals(Object obj)
Compares two property definitions for equality. Returns true if the given object is a property defintion and has the same attributes as this property definition.

Overrides:
equals in class QItemDefinitionImpl
Parameters:
obj - the object to compare this property definition with
Returns:
true if the object is equal to this property definition, false otherwise
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overwrites QItemDefinitionImpl.hashCode().

Specified by:
hashCode in class QItemDefinitionImpl
Returns:


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