org.autosemantix.deltalog
Class Change

java.lang.Object
  extended byorg.autosemantix.deltalog.Change

public class Change
extends java.lang.Object

This class respresents a change in the current release of a project. There can be many different types of changes and each one may have several different elements to which it applies. Each change must have a target which represents the base environment where that change is taking place.

Version:
Created on Jul 19, 2005
Author:
Shawn Simister

Field Summary
static int ADDITION
           
static int OTHER
           
static int REMOVAL
           
static int RENAME
           
 
Constructor Summary
Change()
           
Change(int type, java.lang.String target)
           
 
Method Summary
 void addElement(Element element)
          Add a new element to this change.
 java.util.List getElements()
          Get the list of elements that this change applies to.
 java.lang.String getTarget()
          Get the target element of this change.
 void setTarget(java.lang.String target)
          Set the target element of this change.
 java.lang.String toXML()
          Get an XML representation of this change.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OTHER

public static final int OTHER
See Also:
Constant Field Values

ADDITION

public static final int ADDITION
See Also:
Constant Field Values

REMOVAL

public static final int REMOVAL
See Also:
Constant Field Values

RENAME

public static final int RENAME
See Also:
Constant Field Values
Constructor Detail

Change

public Change()

Change

public Change(int type,
              java.lang.String target)
Method Detail

toXML

public java.lang.String toXML()
Get an XML representation of this change.

Returns:
The serialized XML change operation.

getElements

public java.util.List getElements()
Get the list of elements that this change applies to.

Returns:
A list of elements.

addElement

public void addElement(Element element)
Add a new element to this change.

Parameters:
element - A new element.

getTarget

public java.lang.String getTarget()
Get the target element of this change.

Returns:
The name of the target element.

setTarget

public void setTarget(java.lang.String target)
Set the target element of this change.

Parameters:
target - The target element.