|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.nodetype.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 QName s 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 or null if not set. |
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()
QName
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.
QName
spublic 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()
null
if not set.
null
if not set.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()
public boolean equals(Object obj)
public int hashCode()
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |