|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.nodetype.NodeTypeDef
public class NodeTypeDef
A NodeTypeDef holds the definition of a node type.
| Constructor Summary | |
|---|---|
NodeTypeDef()
Default constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
boolean |
equals(Object obj)
|
NodeDef[] |
getChildNodeDefs()
Returns an array containing the child node definitions or null if not set. |
Collection |
getDependencies()
Returns a collection of node type QNames that are being
referenced by this node type definition (e.g. |
QName |
getName()
Returns the name of the node type being defined or null if not set. |
QName |
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. |
PropDef[] |
getPropertyDefs()
Returns an array containing the property definitions or null if not set. |
QName[] |
getSupertypes()
Returns an array containing the names of the supertypes. |
int |
hashCode()
Returns zero to satisfy the Object equals/hashCode contract. |
boolean |
hasOrderableChildNodes()
Returns the value of the orderableChildNodes flag. |
boolean |
isMixin()
Returns the value of the mixin flag. |
void |
setChildNodeDefs(NodeDef[] defs)
Sets the child node definitions. |
void |
setMixin(boolean mixin)
Sets the mixin flag. |
void |
setName(QName name)
Sets the name of the node type being defined. |
void |
setOrderableChildNodes(boolean orderableChildNodes)
Sets the orderableChildNodes flag. |
void |
setPrimaryItemName(QName primaryItemName)
Sets the name of the primary item (one of the child items of the node's of this node type) |
void |
setPropertyDefs(PropDef[] defs)
Sets the property definitions. |
void |
setSupertypes(QName[] names)
Sets the supertypes. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeTypeDef()
| Method Detail |
|---|
public Collection getDependencies()
QNames 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.
QNamespublic void setName(QName name)
name - The name of the node type.public void setSupertypes(QName[] names)
names - the names of the supertypes.public void setMixin(boolean mixin)
mixin - flagpublic void setOrderableChildNodes(boolean orderableChildNodes)
orderableChildNodes - flagpublic void setPrimaryItemName(QName primaryItemName)
primaryItemName - The name of the primary item.public void setPropertyDefs(PropDef[] defs)
defs - An array of PropertyDef objects.public void setChildNodeDefs(NodeDef[] defs)
defs - An array of NodeDef objectspublic QName getName()
null if not set.
null if not set.public QName[] 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.
- Returns:
- a sorted array of supertype names
public boolean isMixin()
public boolean hasOrderableChildNodes()
public QName getPrimaryItemName()
null if not set.
null if not set.public PropDef[] getPropertyDefs()
null if not set.
null if not set.public NodeDef[] getChildNodeDefs()
null if not set.
null if not set.public Object clone()
clone in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||