|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.pattern.refactoring.move.MoveInfo
public class MoveInfo
Move information.
Constructor Summary | |
---|---|
MoveInfo()
|
Method Summary | |
---|---|
void |
addElementsToMove(Collection<AbstractPatternElement> elementsToMove_p)
Add elements to elements to move. |
void |
addElementToMove(AbstractPatternElement element_p)
Add an element to move. |
boolean |
checkDestinationType()
Check if destination element is of correct type. |
NamedModelElementWithId |
getDestinationElement()
Get destination element. |
Collection<AbstractPatternElement> |
getElementsToMove()
Get elements to move. |
AbstractPatternElement |
getFirstElementToMove()
Get first element to move. |
boolean |
isMoveAcceptable()
Is move to destination element acceptable for elements to move ? |
protected boolean |
isRelevantElementToMove(AbstractPatternElement element_p)
Make sure that given element is not already having destination element (if any specified) as a parent. |
void |
retainRelevantElementsToMove()
Retain relevant elements to move only. |
void |
setDestinationElement(NamedModelElementWithId destinationElement_p)
Set destination element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MoveInfo()
Method Detail |
---|
public Collection<AbstractPatternElement> getElementsToMove()
AbstractPatternElement
(being either a pattern or a library of patterns).public AbstractPatternElement getFirstElementToMove()
public void addElementsToMove(Collection<AbstractPatternElement> elementsToMove_p)
MoveInfo
.
elementsToMove_p
- A not null and not empty collection of elements to move.public void addElementToMove(AbstractPatternElement element_p)
element_p
- A not null element to move.protected boolean isRelevantElementToMove(AbstractPatternElement element_p)
element_p
-
public boolean isMoveAcceptable()
public void retainRelevantElementsToMove()
getElementsToMove()
method.
public boolean checkDestinationType()
public NamedModelElementWithId getDestinationElement()
public void setDestinationElement(NamedModelElementWithId destinationElement_p)
destinationElement_p
-
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.