|
||||||||||
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 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. |
PropDef[] |
getPropertyDefs()
Returns an array containing the property definitions or null if not set. |
Name[] |
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 |
isAbstract()
Returns the value of the 'abstract' flag. |
boolean |
isMixin()
Returns the value of the mixin flag. |
void |
setAbstract(boolean abstractStatus)
Sets the 'abstract' flag. |
void |
setChildNodeDefs(NodeDef[] defs)
Sets the child node definitions. |
void |
setMixin(boolean mixin)
Sets the mixin flag. |
void |
setName(Name name)
Sets the name of the node type being defined. |
void |
setOrderableChildNodes(boolean orderableChildNodes)
Sets the orderableChildNodes flag. |
void |
setPrimaryItemName(Name 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(Name[] 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()
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.
Name
spublic void setName(Name name)
name
- The name of the node type.public void setSupertypes(Name[] names)
names
- the names of the supertypes.public void setMixin(boolean mixin)
mixin
- flagpublic void setOrderableChildNodes(boolean orderableChildNodes)
orderableChildNodes
- flagpublic void setAbstract(boolean abstractStatus)
abstractStatus
- flagpublic void setPrimaryItemName(Name 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 Name getName()
null
if not set.
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.
- Returns:
- a sorted array of supertype names
public boolean isMixin()
public boolean hasOrderableChildNodes()
public boolean isAbstract()
public Name 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 Object
public boolean equals(Object obj)
equals
in class 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 |