|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi2dav.QNodeTypeDefinitionImpl
public class QNodeTypeDefinitionImpl
A QNodeTypeDefinitionImpl holds the definition of a node type.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
QNodeTypeDefinitionImpl(Element ntdElement,
NamePathResolver resolver,
QValueFactory qValueFactory)
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
QNodeDefinition[] |
getChildNodeDefs()
Returns an array containing the child node definitions. |
Collection |
getDependencies()
Returns a collection of node type Names that are being
referenced by this node type definition (e.g. |
Name |
getName()
Returns the name of the node type being defined or null if not set. |
Name |
getPrimaryItemName()
Returns the name of the primary item (one of the child items of the node's of this node type) or null if not set. |
QPropertyDefinition[] |
getPropertyDefs()
Returns an array containing the property definitions. |
Name[] |
getSupertypes()
Returns an array containing the names of the supertypes. |
Name[] |
getSupportedMixinTypes()
Returns an array containing the names of additional mixin types supported on this node type. |
int |
hashCode()
Always returns 0 |
boolean |
hasOrderableChildNodes()
Returns the value of the orderableChildNodes flag. |
boolean |
isAbstract()
Returns true if the definition is abstract; false otherwise. |
boolean |
isMixin()
Returns the value of the mixin flag. |
boolean |
isQueryable()
Returns true if the definition is queryable; false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QNodeTypeDefinitionImpl(Element ntdElement,
NamePathResolver resolver,
QValueFactory qValueFactory)
throws RepositoryException
RepositoryException| Method Detail |
|---|
public Name getName()
QNodeTypeDefinitionnull if not set.
getName in interface QNodeTypeDefinitionnull if not set.QNodeTypeDefinition.getName()public Name[] getSupertypes()
QNodeTypeDefinitionnt:base primary type and
an array containing just nt:base for other primary types.
The returned array must not be modified by the application.
- Specified by:
getSupertypes in interface QNodeTypeDefinition
- Returns:
- an array of supertype names
- See Also:
QNodeTypeDefinition.getSupertypes()
public Name[] getSupportedMixinTypes()
QNodeTypeDefinitionThe returned array must not be modified by the application.
getSupportedMixinTypes in interface QNodeTypeDefinitionnull since no restrictions are known.QNodeTypeDefinition.getSupportedMixinTypes()public boolean isMixin()
QNodeTypeDefinition
isMixin in interface QNodeTypeDefinitionQNodeTypeDefinition.isMixin()public boolean isAbstract()
QNodeTypeDefinitiontrue if the definition is abstract; false otherwise.
isAbstract in interface QNodeTypeDefinitiontrue if the definition is abstract; false otherwise.QNodeTypeDefinition.isAbstract()public boolean isQueryable()
QNodeTypeDefinitiontrue if the definition is queryable; false otherwise.
isQueryable in interface QNodeTypeDefinitiontrue if the definition is queryable; false otherwise.QNodeTypeDefinition.isQueryable()public boolean hasOrderableChildNodes()
QNodeTypeDefinition
hasOrderableChildNodes in interface QNodeTypeDefinitionQNodeTypeDefinition.hasOrderableChildNodes()public Name getPrimaryItemName()
QNodeTypeDefinitionnull if not set.
getPrimaryItemName in interface QNodeTypeDefinitionnull if not set.QNodeTypeDefinition.getPrimaryItemName()public QPropertyDefinition[] getPropertyDefs()
QNodeTypeDefinition
getPropertyDefs in interface QNodeTypeDefinitionQNodeTypeDefinition.getPropertyDefs()public QNodeDefinition[] getChildNodeDefs()
QNodeTypeDefinition
getChildNodeDefs in interface QNodeTypeDefinitionQNodeTypeDefinition.getChildNodeDefs()public Collection getDependencies()
QNodeTypeDefinitionNames that are being
referenced by this node type definition (e.g. as supertypes, as
required/default primary types in child node definitions, as REFERENCE
value constraints in property definitions).
Note that self-references (e.g. a child node definition that specifies
the declaring node type as the default primary type) are not considered
dependencies.
getDependencies in interface QNodeTypeDefinitionNamesQNodeTypeDefinition.getDependencies()public boolean equals(Object obj)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||