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, CHILDNODEDEFINITION_ELEMENT, DECLARINGNODETYPE_ATTRIBUTE, DEFAULTPRIMARYTYPE_ATTRIBUTE, DEFAULTVALUE_ELEMENT, DEFAULTVALUES_ELEMENT, HASORDERABLECHILDNODES_ATTRIBUTE, ISMIXIN_ATTRIBUTE, MANDATORY_ATTRIBUTE, MULTIPLE_ATTRIBUTE, NAME_ATTRIBUTE, NAMESPACE, NODETYPE_ELEMENT, NODETYPES_ELEMENT, ONPARENTVERSION_ATTRIBUTE, PRIMARYITEMNAME_ATTRIBUTE, PROPERTYDEFINITION_ELEMENT, PROTECTED_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.
 QValue[] getDefaultValues()
          Returns the array of default values or null if no default values are defined.
 int getRequiredType()
          Returns the required type.
 String[] getValueConstraints()
          Returns the array of value constraints.
 int hashCode()
          Overwrites QItemDefinitionImpl.hashCode().
 boolean isMultiple()
          Reports whether this property can have multiple values.
 
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 String[] 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.

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-2009 The Apache Software Foundation. All Rights Reserved.