public class SetPropertyCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
protected Element |
element |
protected String |
name |
protected Property |
property |
protected Object |
value |
version
Constructor and Description |
---|
SetPropertyCommand(Element element,
String name,
Object value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected Property |
getLocalProperty()
Get local property
|
protected Object |
getLocalPropertyValue()
Get local property value
|
Element |
getModifiedElement() |
protected Object |
swap()
Swap the object
|
void |
undo() |
getVersion, setVersion
protected Element element
protected String name
protected Object value
protected Property property
public void execute()
public void undo()
protected Object swap()
protected Property getLocalProperty()
protected Object getLocalPropertyValue()
public Element getModifiedElement()
Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.