org.apache.jackrabbit.spi.commons
Class QItemDefinitionImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.QItemDefinitionImpl
All Implemented Interfaces:
Serializable, org.apache.jackrabbit.spi.QItemDefinition
Direct Known Subclasses:
QNodeDefinitionImpl, QPropertyDefinitionImpl

public abstract class QItemDefinitionImpl
extends Object
implements org.apache.jackrabbit.spi.QItemDefinition, Serializable

This abstract class implements the QItemDefinition interface and additionally provides setter methods for the various item definition attributes.

See Also:
Serialized Form

Field Summary
protected  int hashCode
          HashCode of this object
 
Fields inherited from interface org.apache.jackrabbit.spi.QItemDefinition
EMPTY_ARRAY
 
Method Summary
 boolean definesResidual()
          
 boolean equals(Object obj)
          Compares two item definitions for equality.
 org.apache.jackrabbit.spi.Name getDeclaringNodeType()
          
 org.apache.jackrabbit.spi.Name getName()
          
 int getOnParentVersion()
          
 int hashCode()
          
 boolean isAutoCreated()
          
 boolean isMandatory()
          
 boolean 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
definesNode
 

Field Detail

hashCode

protected transient int hashCode
HashCode of this object

Method Detail

getDeclaringNodeType

public org.apache.jackrabbit.spi.Name getDeclaringNodeType()

Specified by:
getDeclaringNodeType in interface org.apache.jackrabbit.spi.QItemDefinition

getName

public org.apache.jackrabbit.spi.Name getName()

Specified by:
getName in interface org.apache.jackrabbit.spi.QItemDefinition

isAutoCreated

public boolean isAutoCreated()

Specified by:
isAutoCreated in interface org.apache.jackrabbit.spi.QItemDefinition

getOnParentVersion

public int getOnParentVersion()

Specified by:
getOnParentVersion in interface org.apache.jackrabbit.spi.QItemDefinition

isProtected

public boolean isProtected()

Specified by:
isProtected in interface org.apache.jackrabbit.spi.QItemDefinition

isMandatory

public boolean isMandatory()

Specified by:
isMandatory in interface org.apache.jackrabbit.spi.QItemDefinition

definesResidual

public boolean definesResidual()

Specified by:
definesResidual in interface org.apache.jackrabbit.spi.QItemDefinition

equals

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

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

hashCode

public int hashCode()

Overrides:
hashCode in class Object


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