|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.nodetype.ItemDefImpl
public abstract class ItemDefImpl
This abstract class implements the ItemDef
interface and additionally provides setter methods for the
various item definition attributes.
| Field Summary | |
|---|---|
protected Name |
declaringNodeType
The name of the declaring node type. |
| Fields inherited from interface org.apache.jackrabbit.core.nodetype.ItemDef |
|---|
ANY_NAME, EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
ItemDefImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
definesResidual()
Determines whether this item definition defines a residual set of child items. |
boolean |
equals(java.lang.Object obj)
Compares two item definitions for equality. |
Name |
getDeclaringNodeType()
Gets the name of the declaring node type. |
Name |
getName()
Gets the name of the child item. |
int |
getOnParentVersion()
Gets the 'onParentVersion' attribute of the item. |
int |
hashCode()
Returns zero to satisfy the Object equals/hashCode contract. |
boolean |
isAutoCreated()
Determines whether the item is 'autoCreated'. |
boolean |
isMandatory()
Determines whether the item is 'mandatory'. |
boolean |
isProtected()
Determines whether the item is 'protected'. |
void |
setAutoCreated(boolean autoCreated)
Sets the 'autoCreated' flag. |
void |
setDeclaringNodeType(Name declaringNodeType)
Sets the name of declaring node type. |
void |
setMandatory(boolean mandatory)
Sets the 'mandatory' flag. |
void |
setName(Name name)
Sets the name of the child item. |
void |
setOnParentVersion(int onParentVersion)
Sets the 'onParentVersion' attribute. |
void |
setProtected(boolean writeProtected)
Sets the 'protected' flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.core.nodetype.ItemDef |
|---|
definesNode |
| Field Detail |
|---|
protected Name declaringNodeType
| Constructor Detail |
|---|
public ItemDefImpl()
| Method Detail |
|---|
public void setDeclaringNodeType(Name declaringNodeType)
declaringNodeType - name of the declaring node type (must not be
null)public void setName(Name name)
name - name of child item (must not be null)public void setAutoCreated(boolean autoCreated)
autoCreated - a booleanpublic void setOnParentVersion(int onParentVersion)
onParentVersion - any of the following constants:
OnParentVersionAction.COPY
OnParentVersionAction.VERSION
OnParentVersionAction.INITIALIZE
OnParentVersionAction.COMPUTE
OnParentVersionAction.IGNORE
OnParentVersionAction.ABORT
public void setProtected(boolean writeProtected)
writeProtected - a booleanpublic void setMandatory(boolean mandatory)
mandatory - a booleanpublic Name getDeclaringNodeType()
getDeclaringNodeType in interface ItemDefpublic Name getName()
getName in interface ItemDefpublic boolean isAutoCreated()
isAutoCreated in interface ItemDefpublic int getOnParentVersion()
getOnParentVersion in interface ItemDefpublic boolean isProtected()
isProtected in interface ItemDefpublic boolean isMandatory()
isMandatory in interface ItemDefpublic boolean definesResidual()
getName().equals(ANY_NAME).
definesResidual in interface ItemDeftrue if this definition defines a residual set;
false otherwise.public boolean equals(java.lang.Object obj)
true
if the given object is an item defintion and has the same attributes
as this item definition.
equals in class java.lang.Objectobj - the object to compare this item definition with
true if the object is equal to this item definition,
false otherwiseObject.equals(Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||