|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.nodetype.NodeTypeDefDiff
public class 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 | |
|---|---|
static NodeTypeDefDiff |
create(QNodeTypeDefinition oldDef,
QNodeTypeDefinition 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()
|
int |
mixinFlagDiff()
|
int |
supertypesDiff()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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(QNodeTypeDefinition oldDef,
QNodeTypeDefinition 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 int mixinFlagDiff()
public int supertypesDiff()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||