|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Name s 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()
QNodeTypeDefinition
null
if not set.
getName
in interface QNodeTypeDefinition
null
if not set.QNodeTypeDefinition.getName()
public Name[] getSupertypes()
QNodeTypeDefinition
nt: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()
QNodeTypeDefinition
The returned array must not be modified by the application.
getSupportedMixinTypes
in interface QNodeTypeDefinition
null
since no restrictions are known.QNodeTypeDefinition.getSupportedMixinTypes()
public boolean isMixin()
QNodeTypeDefinition
isMixin
in interface QNodeTypeDefinition
QNodeTypeDefinition.isMixin()
public boolean isAbstract()
QNodeTypeDefinition
true
if the definition is abstract; false
otherwise.
isAbstract
in interface QNodeTypeDefinition
true
if the definition is abstract; false
otherwise.QNodeTypeDefinition.isAbstract()
public boolean isQueryable()
QNodeTypeDefinition
true
if the definition is queryable; false
otherwise.
isQueryable
in interface QNodeTypeDefinition
true
if the definition is queryable; false
otherwise.QNodeTypeDefinition.isQueryable()
public boolean hasOrderableChildNodes()
QNodeTypeDefinition
hasOrderableChildNodes
in interface QNodeTypeDefinition
QNodeTypeDefinition.hasOrderableChildNodes()
public Name getPrimaryItemName()
QNodeTypeDefinition
null
if not set.
getPrimaryItemName
in interface QNodeTypeDefinition
null
if not set.QNodeTypeDefinition.getPrimaryItemName()
public QPropertyDefinition[] getPropertyDefs()
QNodeTypeDefinition
getPropertyDefs
in interface QNodeTypeDefinition
QNodeTypeDefinition.getPropertyDefs()
public QNodeDefinition[] getChildNodeDefs()
QNodeTypeDefinition
getChildNodeDefs
in interface QNodeTypeDefinition
QNodeTypeDefinition.getChildNodeDefs()
public Collection getDependencies()
QNodeTypeDefinition
Name
s 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 QNodeTypeDefinition
Name
sQNodeTypeDefinition.getDependencies()
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |