PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/webccr/src/com/emis/caesar/senao/webAPI/SenaoGameGetCouponInforResponseChild.java

https://bitbucket.org/sanliou/synccr
Java | 38 lines | 25 code | 8 blank | 5 comment | 2 complexity | 1eb92c0ea59d6b363141864a064f7b71 MD5 | raw file
 1package com.emis.caesar.senao.webAPI;
 2
 3import org.w3c.dom.Node;
 4
 5/**
 6 * 銷退遊戲網址的TOKEN 子節點Token
 7 */
 8public class SenaoGameGetCouponInforResponseChild extends APIResponseChild {
 9  private String TokenNo; // 遊戲次數的ID
10
11  public SenaoGameGetCouponInforResponseChild() {
12    super("Token");
13  }
14
15  @Override
16  public boolean parseNode(Node node) {
17    if (node == null) {
18      return false;
19    }
20    // 定义规则 AD_SALE_LINE 下面的所有第一层节点
21    String[] tags2 = new String[] { "TokenNo" };
22    XMLNodeRule ruleToken = new XMLNodeRule(rootTag, tags2);
23
24    // 改成下面用反射的機制,并且单层的xml处理
25    WebApiUtil.parseXMLByReflect(node, ruleToken, this);
26
27    this.isSuccess = true;
28    return true;
29  }
30
31  public String getTokenNo() {
32    return TokenNo;
33  }
34
35  public void setTokenNo(String tokenNo) {
36    TokenNo = tokenNo;
37  }
38}