|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(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 boolean
public 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 boolean
public void setMandatory(boolean mandatory)
mandatory
- a boolean
public Name getDeclaringNodeType()
getDeclaringNodeType
in interface ItemDef
public Name getName()
getName
in interface ItemDef
public boolean isAutoCreated()
isAutoCreated
in interface ItemDef
public int getOnParentVersion()
getOnParentVersion
in interface ItemDef
public boolean isProtected()
isProtected
in interface ItemDef
public boolean isMandatory()
isMandatory
in interface ItemDef
public boolean definesResidual()
getName().equals(ANY_NAME)
.
definesResidual
in interface ItemDef
true
if this definition defines a residual set;
false
otherwise.public boolean equals(Object obj)
true
if the given object is an item defintion and has the same attributes
as this item definition.
equals
in class Object
obj
- 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 Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |