|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.QItemDefinitionImpl
org.apache.jackrabbit.spi.commons.QPropertyDefinitionImpl
public class QPropertyDefinitionImpl
QPropertyDefinitionImpl implements a qualified property
definition.
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.spi.commons.QItemDefinitionImpl |
|---|
ANY_NAME, hashCode |
| Fields inherited from interface org.apache.jackrabbit.spi.QPropertyDefinition |
|---|
EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
QPropertyDefinitionImpl(Name name,
Name declaringNodeType,
boolean isAutoCreated,
boolean isMandatory,
int onParentVersion,
boolean isProtected,
QValue[] defaultValues,
boolean isMultiple,
int requiredType,
String[] valueConstraints)
Creates a new serializable qualified property definition. |
|
QPropertyDefinitionImpl(QPropertyDefinition propDef)
Copy constructor. |
|
| Method Summary | |
|---|---|
boolean |
definesNode()
|
boolean |
equals(Object obj)
Compares two property definitions for equality. |
QValue[] |
getDefaultValues()
|
int |
getRequiredType()
|
String[] |
getValueConstraints()
|
int |
hashCode()
Overwrites QItemDefinitionImpl.hashCode(). |
boolean |
isMultiple()
|
| Methods inherited from class org.apache.jackrabbit.spi.commons.QItemDefinitionImpl |
|---|
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.spi.QItemDefinition |
|---|
definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected |
| Constructor Detail |
|---|
public QPropertyDefinitionImpl(QPropertyDefinition propDef)
propDef - some other property definition.
public QPropertyDefinitionImpl(Name name,
Name declaringNodeType,
boolean isAutoCreated,
boolean isMandatory,
int onParentVersion,
boolean isProtected,
QValue[] defaultValues,
boolean isMultiple,
int requiredType,
String[] valueConstraints)
name - the name of the child item.declaringNodeType - the delaring node typeisAutoCreated - if this item is auto created.isMandatory - if this is a mandatory item.onParentVersion - the on parent version behaviour.isProtected - if this item is protected.defaultValues - the default values or null if there
are none.isMultiple - if this property is multi-valued.requiredType - the required type for this property.valueConstraints - the value constraints for this property. If none
exist an empty array must be passed.
NullPointerException - if valueConstraints is
null.| Method Detail |
|---|
public int getRequiredType()
getRequiredType in interface QPropertyDefinitionpublic String[] getValueConstraints()
getValueConstraints in interface QPropertyDefinitionpublic QValue[] getDefaultValues()
getDefaultValues in interface QPropertyDefinitionpublic boolean isMultiple()
isMultiple in interface QPropertyDefinitionpublic boolean definesNode()
definesNode in interface QItemDefinitionfalsepublic boolean equals(Object obj)
true
if the given object is a property defintion and has the same attributes
as this property definition.
equals in class QItemDefinitionImplobj - 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()
QItemDefinitionImpl.hashCode().
hashCode in class QItemDefinitionImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||