Class QItemDefinitionImpl
java.lang.Object
org.apache.jackrabbit.spi.commons.QItemDefinitionImpl
- All Implemented Interfaces:
Serializable,QItemDefinition
- Direct Known Subclasses:
QNodeDefinitionImpl,QPropertyDefinitionImpl
This abstract class implements the
QItemDefinition
interface and additionally provides setter methods for the
various item definition attributes.- See Also:
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.spi.QItemDefinition
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether this item definition defines a residual set of child items.booleanCompares two item definitions for equality.Gets the name of the declaring node type.getName()Gets the name of the child item.intGets the 'onParentVersion' attribute of the item.inthashCode()booleanDetermines whether the item is 'autoCreated'.booleanDetermines whether the item is 'mandatory'.booleanDetermines whether the item is 'protected'.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.spi.QItemDefinition
definesNode
-
Method Details
-
getDeclaringNodeType
Gets the name of the declaring node type.- Specified by:
getDeclaringNodeTypein interfaceQItemDefinition- Returns:
- the name of the declaring node type.
-
getName
Gets the name of the child item.- Specified by:
getNamein interfaceQItemDefinition- Returns:
- the name of the child item.
-
isAutoCreated
public boolean isAutoCreated()Determines whether the item is 'autoCreated'.- Specified by:
isAutoCreatedin interfaceQItemDefinition- Returns:
- the 'autoCreated' flag.
-
getOnParentVersion
public int getOnParentVersion()Gets the 'onParentVersion' attribute of the item.- Specified by:
getOnParentVersionin interfaceQItemDefinition- Returns:
- the 'onParentVersion' attribute.
-
isProtected
public boolean isProtected()Determines whether the item is 'protected'.- Specified by:
isProtectedin interfaceQItemDefinition- Returns:
- the 'protected' flag.
-
isMandatory
public boolean isMandatory()Determines whether the item is 'mandatory'.- Specified by:
isMandatoryin interfaceQItemDefinition- Returns:
- the 'mandatory' flag.
-
definesResidual
public boolean definesResidual()Determines whether this item definition defines a residual set of child items.- Specified by:
definesResidualin interfaceQItemDefinition- Returns:
trueif this definition defines a residual set;falseotherwise.
-
equals
Compares two item definitions for equality. Returnstrueif the given object is an item definition and has the same attributes as this item definition. -
hashCode
public int hashCode()
-