ucot.model
Class Updation

java.lang.Object
  extended by ucot.model.Updation
All Implemented Interfaces:
java.io.Serializable

public class Updation
extends java.lang.Object
implements java.io.Serializable

Class contains updation information about the model. It contains the type of change and information about the change.

For example deletion of method would look like this:

new Updatition(UpdationType.DELETION, UpdatioDatatype.METHOD, "entity", "method");

It can be used to signal that the "method" of "entity" is deleted.

Author:
pajumasu
See Also:
Serialized Form

Nested Class Summary
static class Updation.UpdationDataType
          Contains information about the type beign changed.
static class Updation.UpdationType
          Contains information about the updation type.
 
Field Summary
(package private)  Updation.UpdationDataType dataType
           
(package private)  java.lang.String[] references
           
static long serialVersionUID
           
(package private)  Updation.UpdationType type
           
 
Constructor Summary
Updation()
           Initializes empty instance Updation.
Updation(Updation.UpdationType type)
           Initializes new instance of Updation which has the given UpdationType as value.
Updation(Updation.UpdationType type, Updation.UpdationDataType dataType)
           Initializes new instance of Updation which has the given UpdationType and UpdationDataType as values.
Updation(Updation.UpdationType type, Updation.UpdationDataType dataType, java.lang.String... references)
           Initializes new instance of Updation which has the given UpdationType, UpdationDataType and references as values.
 
Method Summary
 Updation.UpdationDataType getDataType()
           Returns the UpdationDataType of this instance of updation.
 java.lang.String[] getReferences()
           Returns the references carried by this instance of updation.
 Updation.UpdationType getType()
           Returns the UpdationType of this instance of Updation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

type

Updation.UpdationType type

dataType

Updation.UpdationDataType dataType

references

java.lang.String[] references
Constructor Detail

Updation

public Updation()

Initializes empty instance Updation. UpdationType of this is "no operation" and this does not carry any data.


Updation

public Updation(Updation.UpdationType type,
                Updation.UpdationDataType dataType)

Initializes new instance of Updation which has the given UpdationType and UpdationDataType as values.

Parameters:
type - UpdationType of this Updation
dataType - UpdationDataType of this Updation

Updation

public Updation(Updation.UpdationType type,
                Updation.UpdationDataType dataType,
                java.lang.String... references)

Initializes new instance of Updation which has the given UpdationType, UpdationDataType and references as values.

Parameters:
type - UpdationType of this Updation
dataType - UpdationDataType of this Updation
references - References of this Updation. The references that should be carried depend on the used UpdationDataType.
See Also:
Updation.UpdationDataType

Updation

public Updation(Updation.UpdationType type)

Initializes new instance of Updation which has the given UpdationType as value.

Parameters:
type - UpdationType of this Updation
Method Detail

getDataType

public Updation.UpdationDataType getDataType()

Returns the UpdationDataType of this instance of updation.

Returns:
UpdationDataType of this Updation.

getReferences

public java.lang.String[] getReferences()

Returns the references carried by this instance of updation.

What the references are can be deciphered by checking the UpdationDataType of this Updation.

Returns:
References carried by Updation.
See Also:
Updation.UpdationDataType, getDataType()

getType

public Updation.UpdationType getType()

Returns the UpdationType of this instance of Updation.

Returns:
UpdationType of this Updation.