source: fedd/abac-src/atnvis/src/com/algomagic/atn/ElementAttribute.java @ 4adc697

version-1.30
Last change on this file since 4adc697 was 8780cbec, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

ABAC sources from Cobham

  • Property mode set to 100644
File size: 602 bytes
RevLine 
[8780cbec]1package com.algomagic.atn;
2
3import att.grappa.*;
4
5public class ElementAttribute {
6    private Element _e;
7    private String _attr;
8    private Object _value;
9    private Object _undoValue;
10
11    public ElementAttribute( Element e, String attr, Object value, Object undoValue ) {
12        _e = e;
13        _attr = attr;
14        _value = value;
15        _undoValue = undoValue;
16    }
17
18    public void apply( ) {
19        _e.setAttribute( _attr, _value );
20    }
21       
22    public void undo( ) {
23        _e.setAttribute( _attr, _undoValue );
24    }
25
26
27    public String toString( ) {
28        return _e + " : " + _attr + " : " + _value + " : " + _undoValue;
29    }
30
31}
Note: See TracBrowser for help on using the repository browser.