litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Server/src/org/litesoft/testplan/ActionParserKeystrokes.java
|
@@ -1,23 +1,23 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.testplan; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.client.dev.ui.actions.*; |
5 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
6 |
|
- |
import org.litesoft.xml.*; |
7 |
|
- |
|
8 |
|
- |
public class ActionParserKeystrokes extends ActionParserBase { |
9 |
|
- |
private static final String TAG_NAME = "Keystrokes"; |
10 |
|
- |
private static final String ATTR_VALUE = "value"; |
11 |
|
- |
|
12 |
|
- |
public ActionParserKeystrokes() { |
13 |
|
- |
super( TAG_NAME ); |
14 |
|
- |
} |
15 |
|
- |
|
16 |
|
- |
@Override |
17 |
|
- |
public KeystrokesActionSpec parse( PullParserProxy pParser ) { |
18 |
|
- |
pParser.validateIsStartTag( TAG_NAME ); |
19 |
|
- |
String value = Strings.assertNotNullNotEmpty( TAG_NAME + ' ' + ATTR_VALUE, pParser.getAttributeValue( ATTR_VALUE ) ); |
20 |
|
- |
pParser.validateNextIsEndTag( TAG_NAME ); |
21 |
|
- |
return new KeystrokesActionSpec( value ); |
22 |
|
- |
} |
23 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.testplan; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.client.dev.ui.actions.*; |
|
5 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
6 |
+ |
import org.litesoft.xml.*; |
|
7 |
+ |
|
|
8 |
+ |
public class ActionParserKeystrokes extends ActionParserBase { |
|
9 |
+ |
private static final String TAG_NAME = "Keystrokes"; |
|
10 |
+ |
private static final String ATTR_VALUE = "value"; |
|
11 |
+ |
|
|
12 |
+ |
public ActionParserKeystrokes() { |
|
13 |
+ |
super( TAG_NAME ); |
|
14 |
+ |
} |
|
15 |
+ |
|
|
16 |
+ |
@Override |
|
17 |
+ |
public KeystrokesActionSpec parse( PullParserProxy pParser ) { |
|
18 |
+ |
pParser.validateIsStartTag( TAG_NAME ); |
|
19 |
+ |
String value = Confirm.significant( TAG_NAME + ' ' + ATTR_VALUE, pParser.getAttributeValue( ATTR_VALUE ) ); |
|
20 |
+ |
pParser.validateNextIsEndTag( TAG_NAME ); |
|
21 |
+ |
return new KeystrokesActionSpec( value ); |
|
22 |
+ |
} |
|
23 |
+ |
} |