litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Server/src/org/litesoft/testplan/SelectionParserJQuery.java
|
@@ -1,21 +1,21 @@ |
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.inspection.*; |
5 |
|
- |
import org.litesoft.xml.*; |
6 |
|
- |
|
7 |
|
- |
public class SelectionParserJQuery { |
8 |
|
- |
private static final String TAG_NAME = "JQuery"; |
9 |
|
- |
private static final String ATTR_EXPRESSSION = "expression"; |
10 |
|
- |
|
11 |
|
- |
public JQuerySelectionSpec parse( PullParserProxy pParser ) { |
12 |
|
- |
pParser.validateIsStartTag( TAG_NAME ); |
13 |
|
- |
String expression = pParser.getAttributeValue( ATTR_EXPRESSSION ); |
14 |
|
- |
pParser.validateNextIsEndTag( TAG_NAME ); |
15 |
|
- |
return new JQuerySelectionSpec( expression ); |
16 |
|
- |
} |
17 |
|
- |
|
18 |
|
- |
public String getTagName() { |
19 |
|
- |
return TAG_NAME; |
20 |
|
- |
} |
21 |
|
- |
} |
|
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.inspection.*; |
|
5 |
+ |
import org.litesoft.xml.*; |
|
6 |
+ |
|
|
7 |
+ |
public class SelectionParserJQuery { |
|
8 |
+ |
private static final String TAG_NAME = "JQuery"; |
|
9 |
+ |
private static final String ATTR_EXPRESSSION = "expression"; |
|
10 |
+ |
|
|
11 |
+ |
public JQuerySelectionSpec parse( PullParserProxy pParser ) { |
|
12 |
+ |
pParser.validateIsStartTag( TAG_NAME ); |
|
13 |
+ |
String expression = pParser.getAttributeValue( ATTR_EXPRESSSION ); |
|
14 |
+ |
pParser.validateNextIsEndTag( TAG_NAME ); |
|
15 |
+ |
return new JQuerySelectionSpec( expression ); |
|
16 |
+ |
} |
|
17 |
+ |
|
|
18 |
+ |
public String getTagName() { |
|
19 |
+ |
return TAG_NAME; |
|
20 |
+ |
} |
|
21 |
+ |
} |