org.apache.jackrabbit.core.nodetype
Class NodeTypeDefDiff

java.lang.Object
  extended byorg.apache.jackrabbit.core.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 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:

A 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:

A 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.

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 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

NONE

public static final int NONE
no modification

See Also:
Constant Field Values

TRIVIAL

public static final int TRIVIAL
trivial modification: does neither affect consistency of existing content nor does it change existing/assigned definition id's

See Also:
Constant Field Values

MINOR

public static final int MINOR
minor modification: does not affect consistency of existing content but does change existing/assigned definition id's

See Also:
Constant Field Values

MAJOR

public static final int MAJOR
major modification: does affect consistency of existing content and does change existing/assigned definition id's

See Also:
Constant Field Values
Method Detail

create

public static NodeTypeDefDiff create(NodeTypeDef oldDef,
                                     NodeTypeDef newDef)
Parameters:
oldDef -
newDef -
Returns:

isModified

public boolean isModified()
Returns:

isTrivial

public boolean isTrivial()
Returns:

isMinor

public boolean isMinor()
Returns:

isMajor

public boolean isMajor()
Returns:

getType

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

Returns:
the type of modification

supertypesChanged

public boolean supertypesChanged()
Returns:

propertyDefsChanged

public boolean propertyDefsChanged()
Returns:

childNodeDefsChanged

public boolean childNodeDefsChanged()
Returns:


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.