org.apache.jackrabbit.spi.commons.nodetype
Class NodeTypeDefDiff

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.nodetype.NodeTypeDefDiff

public class NodeTypeDefDiff
extends Object

A NodeTypeDefDiff represents the result of the comparison of two node type definitions.

The result of the comparison can be categorized as one of the following types:

NONE indicates 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:

A MAJOR modification potentially affects the consistency of existing content. All modifications that are not TRIVIAL are considered MAJOR.

See Also:
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

NONE

public static final int NONE
no modification

See Also:
Constant Field Values

TRIVIAL

public static final int TRIVIAL
trivial modification: does not affect consistency of existing content

See Also:
Constant Field Values

MAJOR

public static final int MAJOR
major modification: does affect consistency of existing content

See Also:
Constant Field Values
Method Detail

create

public static NodeTypeDefDiff create(QNodeTypeDefinition oldDef,
                                     QNodeTypeDefinition newDef)
Parameters:
oldDef - old definition
newDef - new definition
Returns:
the diff

isModified

public boolean isModified()
Returns:
true if modified

isTrivial

public boolean isTrivial()
Returns:
true if trivial

isMajor

public boolean isMajor()
Returns:
true if major

getType

public int getType()
Returns the type of modification as expressed by the following constants:

Returns:
the type of modification

mixinFlagDiff

public int mixinFlagDiff()
Returns:
true if mixin flag diff

abstractFlagDiff

public int abstractFlagDiff()
Returns:
true if abstract flag diff

supertypesDiff

public int supertypesDiff()
Returns:
true if supertypes diff

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.