Class QItemDefinitionImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.QItemDefinitionImpl
-
- All Implemented Interfaces:
java.io.Serializable
,QItemDefinition
- Direct Known Subclasses:
QNodeDefinitionImpl
,QPropertyDefinitionImpl
public abstract class QItemDefinitionImpl extends java.lang.Object implements QItemDefinition, java.io.Serializable
This abstract class implements theQItemDefinition
interface and additionally provides setter methods for the various item definition attributes.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.spi.QItemDefinition
EMPTY_ARRAY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
definesResidual()
Determines whether this item definition defines a residual set of child items.boolean
equals(java.lang.Object obj)
Compares two item definitions for equality.Name
getDeclaringNodeType()
Gets the name of the declaring node type.Name
getName()
Gets the name of the child item.int
getOnParentVersion()
Gets the 'onParentVersion' attribute of the item.int
hashCode()
boolean
isAutoCreated()
Determines whether the item is 'autoCreated'.boolean
isMandatory()
Determines whether the item is 'mandatory'.boolean
isProtected()
Determines whether the item is 'protected'.-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.spi.QItemDefinition
definesNode
-
-
-
-
Method Detail
-
getDeclaringNodeType
public Name getDeclaringNodeType()
Gets the name of the declaring node type.- Specified by:
getDeclaringNodeType
in interfaceQItemDefinition
- Returns:
- the name of the declaring node type.
-
getName
public Name getName()
Gets the name of the child item.- Specified by:
getName
in interfaceQItemDefinition
- Returns:
- the name of the child item.
-
isAutoCreated
public boolean isAutoCreated()
Determines whether the item is 'autoCreated'.- Specified by:
isAutoCreated
in interfaceQItemDefinition
- Returns:
- the 'autoCreated' flag.
-
getOnParentVersion
public int getOnParentVersion()
Gets the 'onParentVersion' attribute of the item.- Specified by:
getOnParentVersion
in interfaceQItemDefinition
- Returns:
- the 'onParentVersion' attribute.
-
isProtected
public boolean isProtected()
Determines whether the item is 'protected'.- Specified by:
isProtected
in interfaceQItemDefinition
- Returns:
- the 'protected' flag.
-
isMandatory
public boolean isMandatory()
Determines whether the item is 'mandatory'.- Specified by:
isMandatory
in interfaceQItemDefinition
- Returns:
- the 'mandatory' flag.
-
definesResidual
public boolean definesResidual()
Determines whether this item definition defines a residual set of child items.- Specified by:
definesResidual
in interfaceQItemDefinition
- Returns:
true
if this definition defines a residual set;false
otherwise.
-
equals
public boolean equals(java.lang.Object obj)
Compares two item definitions for equality. Returnstrue
if the given object is an item definition and has the same attributes as this item definition.- Overrides:
equals
in classjava.lang.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 classjava.lang.Object
-
-