|
||||||||||
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. The following modifications are considered
TRIVIAL
:
orderableChildNodes
flag
primaryItemName
value
mandatory
property/child node
protected
flag
onParentVersion
value
mandatory
flag to false
autoCreated
flag
name
to *
defaultPrimaryType
sameNameSiblings
flag to true
requiredPrimaryTypes
(e.g. by removing)
valueConstraints
(e.g. by removing a constraint
or by making a specific constraint less restrictive)
defaultValues
requiredType
to undefined
multiple
flag to true
MAJOR
modification potentially affects the
consistency of existing content.
All modifications that are not TRIVIAL
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 |
static int |
NONE
no modification |
static int |
TRIVIAL
trivial modification: does not affect consistency of existing content |
Method Summary | |
---|---|
int |
abstractFlagDiff()
|
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 not affect consistency of
existing content
MAJOR : does affect consistency of existing
content
|
boolean |
isMajor()
|
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 MAJOR
Method Detail |
---|
public static NodeTypeDefDiff create(QNodeTypeDefinition oldDef, QNodeTypeDefinition newDef)
oldDef
- old definitionnewDef
- new definition
public boolean isModified()
true
if modifiedpublic boolean isTrivial()
true
if trivialpublic boolean isMajor()
true
if majorpublic int getType()
NONE
: no modification at all
TRIVIAL
: does not affect consistency of
existing content
MAJOR
: does affect consistency of existing
content
public int mixinFlagDiff()
true
if mixin flag diffpublic int abstractFlagDiff()
true
if abstract flag diffpublic int supertypesDiff()
true
if supertypes diffpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |