org.apache.jackrabbit.spi2dav
Class QNodeDefinitionImpl

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

public class QNodeDefinitionImpl
extends QItemDefinitionImpl
implements QNodeDefinition

This class implements the QNodeDefinition interface and additionally provides setter methods for the various node definition attributes.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.spi2dav.QItemDefinitionImpl
ANY_NAME, hashCode
 
Fields inherited from interface org.apache.jackrabbit.spi.QNodeDefinition
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 allowsSameNameSiblings()
          Reports whether this node can have same-name siblings.
 boolean definesNode()
          Determines whether this item definition defines a node.
 boolean equals(Object obj)
          Compares two node definitions for equality.
 Name getDefaultPrimaryType()
          Returns the name of the default primary type.
 Name[] getRequiredPrimaryTypes()
          Returns the array of names of the required primary types.
 int hashCode()
          Overwrites QItemDefinitionImpl.hashCode().
 
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

getDefaultPrimaryType

public Name getDefaultPrimaryType()
Returns the name of the default primary type.

Specified by:
getDefaultPrimaryType in interface QNodeDefinition
Returns:
the name of the default primary type.

getRequiredPrimaryTypes

public Name[] getRequiredPrimaryTypes()
Returns the array of names of the required primary types.

Specified by:
getRequiredPrimaryTypes in interface QNodeDefinition
Returns:
the array of names of the required primary types.

allowsSameNameSiblings

public boolean allowsSameNameSiblings()
Reports whether this node can have same-name siblings.

Specified by:
allowsSameNameSiblings in interface QNodeDefinition
Returns:
the 'allowsSameNameSiblings' flag.

definesNode

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

Specified by:
definesNode in interface QItemDefinition
Returns:
always true

equals

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

Overrides:
equals in class QItemDefinitionImpl
Parameters:
obj - the object to compare this node definition with
Returns:
true if the object is equal to this node 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.