Package org.apache.jackrabbit.spi
Interface QItemDefinition
-
- All Known Subinterfaces:
QNodeDefinition,QPropertyDefinition
- All Known Implementing Classes:
QItemDefinitionImpl,QNodeDefinitionImpl,QPropertyDefinitionImpl
public interface QItemDefinitionQItemDefinitionis the SPI representation of anitem definition. It refers toNames only and is thus isolated from session-specific namespace mappings.- See Also:
ItemDefinition
-
-
Field Summary
Fields Modifier and Type Field Description static QItemDefinition[]EMPTY_ARRAYEmpty array ofQItemDefinition.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandefinesNode()Determines whether this item definition defines a node.booleandefinesResidual()Determines whether this item definition defines a residual set of child items.NamegetDeclaringNodeType()Gets the name of the declaring node type.NamegetName()Gets the name of the child item.intgetOnParentVersion()Gets the 'onParentVersion' attribute of the item.booleanisAutoCreated()Determines whether the item is 'autoCreated'.booleanisMandatory()Determines whether the item is 'mandatory'.booleanisProtected()Determines whether the item is 'protected'.
-
-
-
Field Detail
-
EMPTY_ARRAY
static final QItemDefinition[] EMPTY_ARRAY
Empty array ofQItemDefinition.
-
-
Method Detail
-
getName
Name getName()
Gets the name of the child item.- Returns:
- the name of the child item.
-
getDeclaringNodeType
Name getDeclaringNodeType()
Gets the name of the declaring node type.- Returns:
- the name of the declaring node type.
-
isAutoCreated
boolean isAutoCreated()
Determines whether the item is 'autoCreated'.- Returns:
- the 'autoCreated' flag.
-
getOnParentVersion
int getOnParentVersion()
Gets the 'onParentVersion' attribute of the item.- Returns:
- the 'onParentVersion' attribute.
-
isProtected
boolean isProtected()
Determines whether the item is 'protected'.- Returns:
- the 'protected' flag.
-
isMandatory
boolean isMandatory()
Determines whether the item is 'mandatory'.- Returns:
- the 'mandatory' flag.
-
definesResidual
boolean definesResidual()
Determines whether this item definition defines a residual set of child items.- Returns:
trueif this definition defines a residual set;falseotherwise.
-
definesNode
boolean definesNode()
Determines whether this item definition defines a node.- Returns:
trueif this is a node definition;falseotherwise (i.e. it is a property definition).
-
-