|
@@ -1,24 +1,24 @@ |
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.*; |
5 |
|
- |
import org.litesoft.GWT.client.dev.ui.testplan.*; |
6 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
7 |
|
- |
import org.litesoft.xml.*; |
8 |
|
- |
|
9 |
|
- |
public class TestPlanParserActionFactoryClickTableCell implements TestPlanActionFactory { |
10 |
|
- |
private static final String TAG_NAME = TestPlanActionClickTableCell.FORM; |
11 |
|
- |
|
12 |
|
- |
@Override |
13 |
|
- |
public TestPlanAction parse( PullParserProxy pParser ) { |
14 |
|
- |
pParser.validateIsStartTag( TAG_NAME ); |
15 |
|
- |
String zStrNth = Strings.noEmpty( pParser.getAttributeValue( "nth" ) ); |
16 |
|
- |
int zRow = Integer.parseInt( Strings.noEmpty( pParser.getAttributeValue( "row" ) ) ); |
17 |
|
- |
int zCol = Integer.parseInt( Strings.noEmpty( pParser.getAttributeValue( "col" ) ) ); |
18 |
|
- |
String zModifiers = Strings.noEmpty( pParser.getAttributeValue( "modifiers" ) ); |
19 |
|
- |
pParser.validateNextIsEndTag( TAG_NAME ); |
20 |
|
- |
KeyboardKeyModifier zKeyboardKeyModifier = (zModifiers != null) ? KeyboardKeyModifier.valueOf( zModifiers ) : null; |
21 |
|
- |
Integer zNth = (zStrNth != null) ? new Integer( zStrNth ) : null; |
22 |
|
- |
return new TestPlanActionClickTableCell( zNth, zRow, zCol, zKeyboardKeyModifier ); |
23 |
|
- |
} |
24 |
|
- |
} |
|
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.*; |
|
5 |
+ |
import org.litesoft.GWT.client.dev.ui.testplan.*; |
|
6 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
7 |
+ |
import org.litesoft.xml.*; |
|
8 |
+ |
|
|
9 |
+ |
public class TestPlanParserActionFactoryClickTableCell implements TestPlanActionFactory { |
|
10 |
+ |
private static final String TAG_NAME = TestPlanActionClickTableCell.FORM; |
|
11 |
+ |
|
|
12 |
+ |
@Override |
|
13 |
+ |
public TestPlanAction parse( PullParserProxy pParser ) { |
|
14 |
+ |
pParser.validateIsStartTag( TAG_NAME ); |
|
15 |
+ |
String zStrNth = ConstrainTo.significantOrNull( pParser.getAttributeValue( "nth" ) ); |
|
16 |
+ |
int zRow = Integer.parseInt( ConstrainTo.significantOrNull( pParser.getAttributeValue( "row" ) ) ); |
|
17 |
+ |
int zCol = Integer.parseInt( ConstrainTo.significantOrNull( pParser.getAttributeValue( "col" ) ) ); |
|
18 |
+ |
String zModifiers = ConstrainTo.significantOrNull( pParser.getAttributeValue( "modifiers" ) ); |
|
19 |
+ |
pParser.validateNextIsEndTag( TAG_NAME ); |
|
20 |
+ |
KeyboardKeyModifier zKeyboardKeyModifier = (zModifiers != null) ? KeyboardKeyModifier.valueOf( zModifiers ) : null; |
|
21 |
+ |
Integer zNth = (zStrNth != null) ? new Integer( zStrNth ) : null; |
|
22 |
+ |
return new TestPlanActionClickTableCell( zNth, zRow, zCol, zKeyboardKeyModifier ); |
|
23 |
+ |
} |
|
24 |
+ |
} |