Back to project page JsonPullParser.
The source code is released under:
Apache License
If you think the Android project JsonPullParser listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright 2011 vvakame <vvakame@gmail.com> */*w w w . ja v a 2 s . c o m*/ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.vvakame.sample; import net.vvakame.util.jsonpullparser.annotation.JsonKey; import net.vvakame.util.jsonpullparser.annotation.JsonModel; import net.vvakame.util.jsonpullparser.annotation.StoreJson; /** * Test class for {@link StoreJson}. * @author vvakame */ @JsonModel(treatUnknownKeyAsError = false) public class StoreJsonData2 { @JsonKey String str; @JsonKey long num; @JsonKey StoreJsonData1 data1; @StoreJson(treatLogDisabledAsError = false) String original; /** * @return the str * @category accessor */ public String getStr() { return str; } /** * @param str the str to set * @category accessor */ public void setStr(String str) { this.str = str; } /** * @return the num * @category accessor */ public long getNum() { return num; } /** * @param num the num to set * @category accessor */ public void setNum(long num) { this.num = num; } /** * @return the data1 * @category accessor */ public StoreJsonData1 getData1() { return data1; } /** * @param data1 the data1 to set * @category accessor */ public void setData1(StoreJsonData1 data1) { this.data1 = data1; } /** * @return the original * @category accessor */ public String getOriginal() { return original; } /** * @param original the original to set * @category accessor */ public void setOriginal(String original) { this.original = original; } }