|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.nodetype.ItemDefImpl
org.apache.jackrabbit.core.nodetype.PropDefImpl
public class PropDefImpl
This class implements the PropDef interface and additionally
provides setter methods for the various property definition attributes.
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.core.nodetype.ItemDefImpl |
|---|
declaringNodeType |
| Fields inherited from interface org.apache.jackrabbit.core.nodetype.PropDef |
|---|
EMPTY_ARRAY |
| Fields inherited from interface org.apache.jackrabbit.core.nodetype.ItemDef |
|---|
ANY_NAME |
| Constructor Summary | |
|---|---|
PropDefImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
definesNode()
Determines whether this item definition defines a node. |
boolean |
equals(java.lang.Object obj)
Compares two property definitions for equality. |
InternalValue[] |
getDefaultValues()
Returns the array of default values. |
PropDefId |
getId()
Returns an identifier for this property definition. |
int |
getRequiredType()
Returns the required type. |
ValueConstraint[] |
getValueConstraints()
Returns the array of value constraints. |
int |
hashCode()
Returns zero to satisfy the Object equals/hashCode contract. |
boolean |
isMultiple()
Reports whether this property can have multiple values. |
void |
setAutoCreated(boolean autoCreated)
Sets the 'autoCreated' flag. |
void |
setDeclaringNodeType(Name declaringNodeType)
Sets the name of declaring node type. |
void |
setDefaultValues(InternalValue[] defaultValues)
Sets the default values. |
void |
setMandatory(boolean mandatory)
Sets the 'mandatory' flag. |
void |
setMultiple(boolean multiple)
Sets the 'multiple' 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. |
void |
setRequiredType(int requiredType)
Sets the required type |
void |
setValueConstraints(ValueConstraint[] valueConstraints)
Sets the value constraints. |
| Methods inherited from class org.apache.jackrabbit.core.nodetype.ItemDefImpl |
|---|
definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected |
| 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 |
|---|
definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected |
| Constructor Detail |
|---|
public PropDefImpl()
| Method Detail |
|---|
public void setRequiredType(int requiredType)
requiredType - public void setValueConstraints(ValueConstraint[] valueConstraints)
valueConstraints - public void setDefaultValues(InternalValue[] defaultValues)
defaultValues - public void setMultiple(boolean multiple)
multiple - public void setDeclaringNodeType(Name declaringNodeType)
setDeclaringNodeType in class ItemDefImpldeclaringNodeType - name of the declaring node type (must not be
null)public void setName(Name name)
setName in class ItemDefImplname - name of child item (must not be null)public void setAutoCreated(boolean autoCreated)
setAutoCreated in class ItemDefImplautoCreated - a booleanpublic void setOnParentVersion(int onParentVersion)
setOnParentVersion in class ItemDefImplonParentVersion - any of the following constants:
OnParentVersionAction.COPY
OnParentVersionAction.VERSION
OnParentVersionAction.INITIALIZE
OnParentVersionAction.COMPUTE
OnParentVersionAction.IGNORE
OnParentVersionAction.ABORT
public void setProtected(boolean writeProtected)
setProtected in class ItemDefImplwriteProtected - a booleanpublic void setMandatory(boolean mandatory)
setMandatory in class ItemDefImplmandatory - a booleanpublic PropDefId getId()
getId in interface PropDefpublic int getRequiredType()
getRequiredType in interface PropDefpublic ValueConstraint[] getValueConstraints()
getValueConstraints in interface PropDefpublic InternalValue[] getDefaultValues()
getDefaultValues in interface PropDefpublic boolean isMultiple()
isMultiple in interface PropDefpublic boolean definesNode()
definesNode in interface ItemDeffalsepublic boolean equals(java.lang.Object obj)
true
if the given object is a property defintion and has the same attributes
as this property definition.
equals in class ItemDefImplobj - the object to compare this property definition with
true if the object is equal to this property definition,
false otherwiseObject.equals(Object)public int hashCode()
hashCode in class ItemDefImplObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||