|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff
A NodeTypeDefDiff
represents the result of the comparison of
two node type definitions.
NONE
inidcates that there is no modification at all.
A TRIVIAL
modification has no impact on the consistency
of existing content and does not affect existing/assigned definition id's.
The following modifications are considered TRIVIAL
:
orderableChildNodes
flag
primaryItemName
value
mandatory
property/child node
protected
flag
onParentVersion
value
mandatory
flag to false
autoCreated
flag
defaultPrimaryType
sameNameSiblings
flag to true
valueConstraints
(e.g. by removing completely
or by adding to existing or by making a single constraint less restrictive)
defaultValues
MINOR
modification has no impact on the consistency
of existing content but does affect existing/assigned definition id's.
The following modifications are considered MINOR
:
name
to *
requiredPrimaryTypes
(e.g. by removing)
requiredType
to undefined
multiple
flag to true
MAJOR
modification affects the consistency of
existing content and does change existing/assigned definition id's.
All modifications that are neither TRIVIAL
nor
MINOR
are considered MAJOR
.
getType()
Nested Class Summary | |
class |
NodeTypeDefDiff.ChildNodeDefDiff
|
class |
NodeTypeDefDiff.PropDefDiff
|
Field Summary | |
static int |
MAJOR
major modification: does affect consistency of existing content and does change existing/assigned definition id's |
static int |
MINOR
minor modification: does not affect consistency of existing content but does change existing/assigned definition id's |
static int |
NONE
no modification |
static int |
TRIVIAL
trivial modification: does neither affect consistency of existing content nor does it change existing/assigned definition id's |
Method Summary | |
boolean |
childNodeDefsChanged()
|
static NodeTypeDefDiff |
create(NodeTypeDef oldDef,
NodeTypeDef newDef)
|
int |
getType()
Returns the type of modification as expressed by the following constants: NONE : no modification at all
TRIVIAL : does neither affect consistency of
existing content nor does it change existing/assigned definition id's
MINOR : does not affect consistency of existing
content but does change existing/assigned definition id's
MAJOR : does affect consistency of existing
content and does change existing/assigned definition id's
|
boolean |
isMajor()
|
boolean |
isMinor()
|
boolean |
isModified()
|
boolean |
isTrivial()
|
boolean |
propertyDefsChanged()
|
boolean |
supertypesChanged()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NONE
public static final int TRIVIAL
public static final int MINOR
public static final int MAJOR
Method Detail |
public static NodeTypeDefDiff create(NodeTypeDef oldDef, NodeTypeDef newDef)
oldDef
- newDef
-
public boolean isModified()
public boolean isTrivial()
public boolean isMinor()
public boolean isMajor()
public int getType()
NONE
: no modification at all
TRIVIAL
: does neither affect consistency of
existing content nor does it change existing/assigned definition id's
MINOR
: does not affect consistency of existing
content but does change existing/assigned definition id's
MAJOR
: does affect consistency of existing
content and does change existing/assigned definition id's
public boolean supertypesChanged()
public boolean propertyDefsChanged()
public boolean childNodeDefsChanged()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |