|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.QNodeTypeDefinitionImpl
public class QNodeTypeDefinitionImpl
QNodeTypeDefinitionImpl implements a serializable qualified node
type definition.
| Constructor Summary | |
|---|---|
QNodeTypeDefinitionImpl(Name name,
Name[] supertypes,
boolean isMixin,
boolean hasOrderableChildNodes,
Name primaryItemName,
QPropertyDefinition[] declaredPropDefs,
QNodeDefinition[] declaredNodeDefs)
Deprecated. use QNodeTypeDefinitionImpl(Name, Name[], Name[], boolean, boolean, Name, QPropertyDefinition[], QNodeDefinition[]) |
|
QNodeTypeDefinitionImpl(Name name,
Name[] supertypes,
Name[] supportedMixins,
boolean isMixin,
boolean hasOrderableChildNodes,
Name primaryItemName,
QPropertyDefinition[] declaredPropDefs,
QNodeDefinition[] declaredNodeDefs)
Creates a new serializable qualified node type definition. |
|
QNodeTypeDefinitionImpl(QNodeTypeDefinition nt)
Copy constructor. |
|
| Method Summary | |
|---|---|
QNodeDefinition[] |
getChildNodeDefs()
Returns an array containing the child node definitions. |
java.util.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. |
boolean |
hasOrderableChildNodes()
Returns the value of the orderableChildNodes flag. |
boolean |
isMixin()
Returns the value of the mixin flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QNodeTypeDefinitionImpl(QNodeTypeDefinition nt)
nt - the qualified node type definition.
public QNodeTypeDefinitionImpl(Name name,
Name[] supertypes,
boolean isMixin,
boolean hasOrderableChildNodes,
Name primaryItemName,
QPropertyDefinition[] declaredPropDefs,
QNodeDefinition[] declaredNodeDefs)
QNodeTypeDefinitionImpl(Name, Name[], Name[], boolean, boolean, Name, QPropertyDefinition[], QNodeDefinition[])
name - the name of the node typesupertypes - the names of the supertypesisMixin - if this is a mixin node typehasOrderableChildNodes - 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(Name name,
Name[] supertypes,
Name[] supportedMixins,
boolean isMixin,
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 typehasOrderableChildNodes - 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.| Method Detail |
|---|
public Name getName()
null if not set.
getName in interface QNodeTypeDefinitionnull 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 QNodeTypeDefinitionpublic boolean hasOrderableChildNodes()
hasOrderableChildNodes in interface QNodeTypeDefinitionpublic Name getPrimaryItemName()
null if not set.
getPrimaryItemName in interface QNodeTypeDefinitionnull if not set.public QPropertyDefinition[] getPropertyDefs()
getPropertyDefs in interface QNodeTypeDefinitionpublic QNodeDefinition[] getChildNodeDefs()
getChildNodeDefs in interface QNodeTypeDefinitionpublic java.util.Collection getDependencies()
Names 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 QNodeTypeDefinitionNamespublic Name[] getSupportedMixinTypes()
QNodeTypeDefinitionThe returned array must not be modified by the application.
getSupportedMixinTypes in interface QNodeTypeDefinitionnull
when there are no known constraints.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||