public interface ICodeReverser
The sequence is :
beginReverseSession()
method is called.
reverseCode(MObject)
method is called once for each CMS node that may be committed.
endReverseSession()
method is called.
Modifier and Type | Method and Description |
---|---|
void |
beginReverseSession()
Tells that a reverse session begins so that the ICodeReverser can initialize itself.
|
void |
endReverseSession()
Called when all elements that may be committed have been reversed.
|
void |
reverseCode(MObject cmsNode)
Reverse the given CMS node element.
|
void beginReverseSession()
void reverseCode(MObject cmsNode) throws ReverseFailedException
This method will be called once and only once for each CMS node that may be committed.
The Subversion has already open a transaction so that the code reverser does not have to create one.
cmsNode
- the element whose generated code must be reversed.ReverseFailedException
- if the reverse failsvoid endReverseSession()
The ICodeReverser may then dispose all resources allocated in beginReverseSession()
.
Thrown RuntimeExceptions
are caught and printed to the console.
It allows other code reversers to dispose their resources.