Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.language.model
Class DdsChange

java.lang.Object
  extended by com.ibm.etools.iseries.edit.language.model.DdsChange

public class DdsChange
extends Object

Enumerates all the types of changes in a DDS file. Keeps track of the type of change Note that sequence number changes are not supported because they are not needed and would waste performance Also keeps track of the line number of the changed line in the editor And keeps track of the line number of the changed line in the model


Field Summary
static int CHANGE_DATA_AREA
          A change of data area only
static int CHANGE_SEQUENCE_NUMBER
          A change involving date stamp and/or sequence number
static int DELETE
          A line is deleted
static int INSERT
          A line is inserted
 
Constructor Summary
DdsChange(int line, int type)
           
 
Method Summary
 int getModelLineNumber()
           
 int getSourceLineNumber()
           
 long getTimestamp()
          When was this change created
 void incrementModelLineNumber(int increment)
          Increment the line number in the model- useful if insertion changes have to be reordered in order to maintain source line order
 void incrementSourceLineNumber(int increment)
          Increment the line number - useful if a line has been inserted before this one
 boolean isChangeDataArea()
           
 boolean isChangeSequenceNumber()
           
 boolean isDelete()
           
 boolean isInsert()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DELETE

public static final int DELETE
A line is deleted

See Also:
Constant Field Values

INSERT

public static final int INSERT
A line is inserted

See Also:
Constant Field Values

CHANGE_DATA_AREA

public static final int CHANGE_DATA_AREA
A change of data area only

See Also:
Constant Field Values

CHANGE_SEQUENCE_NUMBER

public static final int CHANGE_SEQUENCE_NUMBER
A change involving date stamp and/or sequence number

See Also:
Constant Field Values
Constructor Detail

DdsChange

public DdsChange(int line,
                 int type)
Method Detail

isDelete

public boolean isDelete()

isInsert

public boolean isInsert()

isChangeDataArea

public boolean isChangeDataArea()

isChangeSequenceNumber

public boolean isChangeSequenceNumber()

getSourceLineNumber

public int getSourceLineNumber()

incrementSourceLineNumber

public void incrementSourceLineNumber(int increment)
Increment the line number - useful if a line has been inserted before this one


getModelLineNumber

public int getModelLineNumber()

toString

public String toString()
Overrides:
toString in class Object

getTimestamp

public long getTimestamp()
When was this change created


incrementModelLineNumber

public void incrementModelLineNumber(int increment)
Increment the line number in the model- useful if insertion changes have to be reordered in order to maintain source line order


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.