|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.editor.Transaction
apollo.editor.CompoundTransaction
public class CompoundTransaction
A CompoundTransaction contains a list of Transactions (children). In some cases the child Transactions may also be CompoundTransactions (i.e., CompoundTransactions may be nested)
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
| Fields inherited from class apollo.editor.Transaction |
|---|
author, date, NEW, newProperties, OLD, oldProperties |
| Constructor Summary | |
|---|---|
CompoundTransaction(java.lang.Object source)
phase out -> require source! |
|
| Method Summary | |
|---|---|
void |
addTransaction(CompoundTransaction addedTrans)
Adds the children of the compound trans NOT the CompoundTransaction itself. |
void |
addTransaction(Transaction childTrans)
Add a child Transaction to this CompoundTransaction object. |
protected boolean |
flattenOnAddingToCompTrans()
Returns true. |
AnnotationChangeEvent |
generateAnnotationChangeEvent()
sets ace source to trans source. |
java.lang.String |
getCompoundTypeString()
|
java.util.List |
getLeafTransactions()
returns list of all non-compound leaf descendants. |
AnnotatedFeatureI |
getNewSplitFeature()
If split compound transaction (isSplit == true), this returns the new split off feature. |
Transaction |
getTransaction(int i)
Default return null. |
java.util.List |
getTransactions()
Return list of transactions |
boolean |
hasCompoundType()
|
boolean |
isCompound()
default false. |
boolean |
isMerge()
|
boolean |
isSplit()
|
java.lang.String |
oneLineSummary()
Short (one-line) summary of the object; concise alternative to toString() that displays every instance variable set in one of the constructors, plus date and author. |
void |
removeTransaction(Transaction transaction)
Remove a child Transaction object from this CompoundTransaction object. |
void |
setSource(java.lang.Object source)
|
int |
size()
overridded by CompositeTransaction. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public CompoundTransaction(java.lang.Object source)
| Method Detail |
|---|
public boolean hasCompoundType()
public boolean isSplit()
isSplit in class Transactionpublic boolean isMerge()
isMerge in class Transactionpublic boolean isCompound()
Transaction
isCompound in class Transactionpublic void addTransaction(Transaction childTrans)
transaction - public void addTransaction(CompoundTransaction addedTrans)
protected boolean flattenOnAddingToCompTrans()
public Transaction getTransaction(int i)
Transaction
getTransaction in class Transactionpublic int size()
Transaction
size in class Transactionpublic java.lang.String getCompoundTypeString()
public java.lang.String toString()
toString in class Transactionpublic java.util.List getTransactions()
public void removeTransaction(Transaction transaction)
transaction - public void setSource(java.lang.Object source)
setSource in class Transactionpublic AnnotationChangeEvent generateAnnotationChangeEvent()
Transaction
public java.util.List getLeafTransactions()
getLeafTransactions in class Transactionpublic AnnotatedFeatureI getNewSplitFeature()
getNewSplitFeature in class Transactionpublic java.lang.String oneLineSummary()
oneLineSummary in class Transaction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||