axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change
on this file since 0d9eba6 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
|
Rev | Line | |
---|
[8780cbec] | 1 | package com.algomagic.atn; |
---|
| 2 | |
---|
| 3 | import att.grappa.*; |
---|
| 4 | |
---|
| 5 | public 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.