|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.spi.commons.QNodeTypeDefinitionImpl
public class QNodeTypeDefinitionImpl
QNodeTypeDefinitionImpl
implements a serializable SPI node
type definition.
Constructor Summary | |
---|---|
QNodeTypeDefinitionImpl()
Default constructor. |
|
QNodeTypeDefinitionImpl(Name name,
Name[] supertypes,
Name[] supportedMixins,
boolean isMixin,
boolean isAbstract,
boolean isQueryable,
boolean hasOrderableChildNodes,
Name primaryItemName,
QPropertyDefinition[] declaredPropDefs,
QNodeDefinition[] declaredNodeDefs)
Creates a new serializable SPI node type definition. |
|
QNodeTypeDefinitionImpl(NodeTypeDefinition def,
NamePathResolver resolver,
QValueFactory qValueFactory)
Createa a new QNodeTypeDefinitionImpl from a JCR
NodeType definition. |
|
QNodeTypeDefinitionImpl(QNodeTypeDefinition nt)
Copy constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
QNodeDefinition[] |
getChildNodeDefs()
Returns an array containing the child node definitions. |
Collection<Name> |
getDependencies()
Returns a collection of node type 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). |
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()
Returns zero to satisfy the Object equals/hashCode contract. |
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()
public QNodeTypeDefinitionImpl(QNodeTypeDefinition nt)
nt
- the node type definition.public QNodeTypeDefinitionImpl(Name name, Name[] supertypes, Name[] supportedMixins, boolean isMixin, boolean isAbstract, boolean isQueryable, boolean hasOrderableChildNodes, Name primaryItemName, QPropertyDefinition[] declaredPropDefs, QNodeDefinition[] declaredNodeDefs)
name
- the name of the node typesupertypes
- the names of the supertypessupportedMixins
- the names of supported mixins (or null
)isMixin
- if this is a mixin node typeisAbstract
- if this is an abstract node type definition.isQueryable
- if this is a queryable node type definition.hasOrderableChildNodes
- if this node type has orderable child
nodes.primaryItemName
- the name of the primary item, or
null
.declaredPropDefs
- the declared property definitions.declaredNodeDefs
- the declared child node definitions.public QNodeTypeDefinitionImpl(NodeTypeDefinition def, NamePathResolver resolver, QValueFactory qValueFactory) throws RepositoryException
QNodeTypeDefinitionImpl
from a JCR
NodeType definition.
def
- node type definitionresolver
- resolverqValueFactory
- value factory
RepositoryException
- if an error occursMethod Detail |
---|
public Name getName()
null
if not set.
getName
in interface QNodeTypeDefinition
null
if not set.public Name[] getSupertypes()
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
public boolean isMixin()
isMixin
in interface QNodeTypeDefinition
public boolean isAbstract()
true
if the definition is abstract; false
otherwise.
isAbstract
in interface QNodeTypeDefinition
true
if the definition is abstract; false
otherwise.public boolean isQueryable()
true
if the definition is queryable; false
otherwise.
isQueryable
in interface QNodeTypeDefinition
true
if the definition is queryable; false
otherwise.public boolean hasOrderableChildNodes()
hasOrderableChildNodes
in interface QNodeTypeDefinition
public Name getPrimaryItemName()
null
if not set.
getPrimaryItemName
in interface QNodeTypeDefinition
null
if not set.public QPropertyDefinition[] getPropertyDefs()
getPropertyDefs
in interface QNodeTypeDefinition
public QNodeDefinition[] getChildNodeDefs()
getChildNodeDefs
in interface QNodeTypeDefinition
public Collection<Name> getDependencies()
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
spublic Name[] getSupportedMixinTypes()
The returned array must not be modified by the application.
getSupportedMixinTypes
in interface QNodeTypeDefinition
null
when there are no known constraints.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 |