|
||||||||||
| 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.QNodeDefinitionImpl
public class QNodeDefinitionImpl
QNodeDefinitionImpl implements a QNodeDefinition.
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.spi.commons.QItemDefinitionImpl |
|---|
ANY_NAME, hashCode |
| Fields inherited from interface org.apache.jackrabbit.spi.QNodeDefinition |
|---|
EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
QNodeDefinitionImpl(Name name,
Name declaringNodeType,
boolean isAutoCreated,
boolean isMandatory,
int onParentVersion,
boolean isProtected,
Name defaultPrimaryType,
Name[] requiredPrimaryTypes,
boolean allowsSameNameSiblings)
Creates a new qualified node definition based on a JCR NodeDefinition. |
|
QNodeDefinitionImpl(QNodeDefinition nodeDef)
Copy constructor. |
|
| Method Summary | |
|---|---|
boolean |
allowsSameNameSiblings()
|
boolean |
definesNode()
|
boolean |
equals(Object obj)
Compares two node definitions for equality. |
Name |
getDefaultPrimaryType()
|
Name[] |
getRequiredPrimaryTypes()
|
int |
hashCode()
Overwrites QItemDefinitionImpl.hashCode(). |
| 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 QNodeDefinitionImpl(QNodeDefinition nodeDef)
nodeDef - some other node definition.
public QNodeDefinitionImpl(Name name,
Name declaringNodeType,
boolean isAutoCreated,
boolean isMandatory,
int onParentVersion,
boolean isProtected,
Name defaultPrimaryType,
Name[] requiredPrimaryTypes,
boolean allowsSameNameSiblings)
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.| Method Detail |
|---|
public Name getDefaultPrimaryType()
getDefaultPrimaryType in interface QNodeDefinitionpublic Name[] getRequiredPrimaryTypes()
getRequiredPrimaryTypes in interface QNodeDefinitionpublic boolean allowsSameNameSiblings()
allowsSameNameSiblings in interface QNodeDefinitionpublic boolean definesNode()
definesNode in interface QItemDefinitiontruepublic boolean equals(Object obj)
true
if the given object is a node defintion and has the same attributes
as this node definition.
equals in class QItemDefinitionImplobj - the object to compare this node definition with
true if the object is equal to this node 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 | |||||||||