Android Open Source - JsonPullParser Builder Data






From Project

Back to project page JsonPullParser.

License

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.

Java Source Code

package net.vvakame.sample;
// w  ww .j av a  2s  .  c  o  m
import java.util.Date;
import java.util.List;

import net.vvakame.sample.converter.IntFlattenConverter;
import net.vvakame.util.jsonpullparser.annotation.JsonKey;
import net.vvakame.util.jsonpullparser.annotation.JsonModel;
import net.vvakame.util.jsonpullparser.util.JsonArray;
import net.vvakame.util.jsonpullparser.util.JsonHash;

/**
 * Test class for {@link JsonModel#builder()}.
 * @author vvakame
 */
@JsonModel(treatUnknownKeyAsError = true, decamelize = true, builder = true)
public class BuilderData {

  @JsonKey
  boolean bool;

  @JsonKey
  char c;

  @JsonKey
  byte b;

  @JsonKey
  short s;

  @JsonKey
  int i;

  @JsonKey
  long l;

  @JsonKey
  float f;

  @JsonKey
  double d;

  @JsonKey
  Boolean wBool;

  @JsonKey
  Character wc;

  @JsonKey
  Byte wb;

  @JsonKey
  Short ws;

  @JsonKey
  Integer wi;

  @JsonKey
  Long wl;

  @JsonKey
  Float wf;

  @JsonKey
  Double wd;

  @JsonKey
  String str;

  @JsonKey
  Date date;

  @JsonKey
  TestData model;

  @JsonKey
  SampleEnum outerEnum;

  @JsonKey
  List<Boolean> boolList;

  @JsonKey
  List<Character> cList;

  @JsonKey
  List<Byte> bList;

  @JsonKey
  List<Short> sList;

  @JsonKey
  List<Integer> iList;

  @JsonKey
  List<Long> lList;

  @JsonKey
  List<Float> fList;

  @JsonKey
  List<Double> dList;

  @JsonKey
  List<String> strList;

  @JsonKey
  List<Date> dateList;

  @JsonKey
  List<TestData> list1;

  @JsonKey
  List<? extends TestData> list2;

  @JsonKey
  List<SampleEnum> outerEnumList;

  @JsonKey(converter = IntFlattenConverter.class)
  List<Integer> conv;

  @JsonKey
  JsonHash jsonHash;

  @JsonKey
  JsonArray jsonArray;


  /**
   * @return the bool
   * @category accessor
   */
  public boolean isBool() {
    return bool;
  }

  /**
   * @param bool the bool to set
   * @category accessor
   */
  public void setBool(boolean bool) {
    this.bool = bool;
  }

  /**
   * @return the c
   * @category accessor
   */
  public char getC() {
    return c;
  }

  /**
   * @param c the c to set
   * @category accessor
   */
  public void setC(char c) {
    this.c = c;
  }

  /**
   * @return the b
   * @category accessor
   */
  public byte getB() {
    return b;
  }

  /**
   * @param b the b to set
   * @category accessor
   */
  public void setB(byte b) {
    this.b = b;
  }

  /**
   * @return the s
   * @category accessor
   */
  public short getS() {
    return s;
  }

  /**
   * @param s the s to set
   * @category accessor
   */
  public void setS(short s) {
    this.s = s;
  }

  /**
   * @return the i
   * @category accessor
   */
  public int getI() {
    return i;
  }

  /**
   * @param i the i to set
   * @category accessor
   */
  public void setI(int i) {
    this.i = i;
  }

  /**
   * @return the l
   * @category accessor
   */
  public long getL() {
    return l;
  }

  /**
   * @param l the l to set
   * @category accessor
   */
  public void setL(long l) {
    this.l = l;
  }

  /**
   * @return the f
   * @category accessor
   */
  public float getF() {
    return f;
  }

  /**
   * @param f the f to set
   * @category accessor
   */
  public void setF(float f) {
    this.f = f;
  }

  /**
   * @return the d
   * @category accessor
   */
  public double getD() {
    return d;
  }

  /**
   * @param d the d to set
   * @category accessor
   */
  public void setD(double d) {
    this.d = d;
  }

  /**
   * @return the wBool
   * @category accessor
   */
  public Boolean getwBool() {
    return wBool;
  }

  /**
   * @param wBool the wBool to set
   * @category accessor
   */
  public void setwBool(Boolean wBool) {
    this.wBool = wBool;
  }

  /**
   * @return the wc
   * @category accessor
   */
  public Character getWc() {
    return wc;
  }

  /**
   * @param wc the wc to set
   * @category accessor
   */
  public void setWc(Character wc) {
    this.wc = wc;
  }

  /**
   * @return the wb
   * @category accessor
   */
  public Byte getWb() {
    return wb;
  }

  /**
   * @param wb the wb to set
   * @category accessor
   */
  public void setWb(Byte wb) {
    this.wb = wb;
  }

  /**
   * @return the ws
   * @category accessor
   */
  public Short getWs() {
    return ws;
  }

  /**
   * @param ws the ws to set
   * @category accessor
   */
  public void setWs(Short ws) {
    this.ws = ws;
  }

  /**
   * @return the wi
   * @category accessor
   */
  public Integer getWi() {
    return wi;
  }

  /**
   * @param wi the wi to set
   * @category accessor
   */
  public void setWi(Integer wi) {
    this.wi = wi;
  }

  /**
   * @return the wl
   * @category accessor
   */
  public Long getWl() {
    return wl;
  }

  /**
   * @param wl the wl to set
   * @category accessor
   */
  public void setWl(Long wl) {
    this.wl = wl;
  }

  /**
   * @return the wf
   * @category accessor
   */
  public Float getWf() {
    return wf;
  }

  /**
   * @param wf the wf to set
   * @category accessor
   */
  public void setWf(Float wf) {
    this.wf = wf;
  }

  /**
   * @return the wd
   * @category accessor
   */
  public Double getWd() {
    return wd;
  }

  /**
   * @param wd the wd to set
   * @category accessor
   */
  public void setWd(Double wd) {
    this.wd = wd;
  }

  /**
   * @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 date
   * @category accessor
   */
  public Date getDate() {
    return date;
  }

  /**
   * @param date the date to set
   * @category accessor
   */
  public void setDate(Date date) {
    this.date = date;
  }

  /**
   * @return the model
   * @category accessor
   */
  public TestData getModel() {
    return model;
  }

  /**
   * @param model the model to set
   * @category accessor
   */
  public void setModel(TestData model) {
    this.model = model;
  }

  /**
   * @return the outerEnum
   * @category accessor
   */
  public SampleEnum getOuterEnum() {
    return outerEnum;
  }

  /**
   * @param outerEnum the outerEnum to set
   * @category accessor
   */
  public void setOuterEnum(SampleEnum outerEnum) {
    this.outerEnum = outerEnum;
  }

  /**
   * @return the boolList
   * @category accessor
   */
  public List<Boolean> getBoolList() {
    return boolList;
  }

  /**
   * @param boolList the boolList to set
   * @category accessor
   */
  public void setBoolList(List<Boolean> boolList) {
    this.boolList = boolList;
  }

  /**
   * @return the cList
   * @category accessor
   */
  public List<Character> getcList() {
    return cList;
  }

  /**
   * @param cList the cList to set
   * @category accessor
   */
  public void setcList(List<Character> cList) {
    this.cList = cList;
  }

  /**
   * @return the bList
   * @category accessor
   */
  public List<Byte> getbList() {
    return bList;
  }

  /**
   * @param bList the bList to set
   * @category accessor
   */
  public void setbList(List<Byte> bList) {
    this.bList = bList;
  }

  /**
   * @return the sList
   * @category accessor
   */
  public List<Short> getsList() {
    return sList;
  }

  /**
   * @param sList the sList to set
   * @category accessor
   */
  public void setsList(List<Short> sList) {
    this.sList = sList;
  }

  /**
   * @return the iList
   * @category accessor
   */
  public List<Integer> getiList() {
    return iList;
  }

  /**
   * @param iList the iList to set
   * @category accessor
   */
  public void setiList(List<Integer> iList) {
    this.iList = iList;
  }

  /**
   * @return the lList
   * @category accessor
   */
  public List<Long> getlList() {
    return lList;
  }

  /**
   * @param lList the lList to set
   * @category accessor
   */
  public void setlList(List<Long> lList) {
    this.lList = lList;
  }

  /**
   * @return the fList
   * @category accessor
   */
  public List<Float> getfList() {
    return fList;
  }

  /**
   * @param fList the fList to set
   * @category accessor
   */
  public void setfList(List<Float> fList) {
    this.fList = fList;
  }

  /**
   * @return the dList
   * @category accessor
   */
  public List<Double> getdList() {
    return dList;
  }

  /**
   * @param dList the dList to set
   * @category accessor
   */
  public void setdList(List<Double> dList) {
    this.dList = dList;
  }

  /**
   * @return the strList
   * @category accessor
   */
  public List<String> getStrList() {
    return strList;
  }

  /**
   * @param strList the strList to set
   * @category accessor
   */
  public void setStrList(List<String> strList) {
    this.strList = strList;
  }

  /**
   * @return the dateList
   * @category accessor
   */
  public List<Date> getDateList() {
    return dateList;
  }

  /**
   * @param dateList the dateList to set
   * @category accessor
   */
  public void setDateList(List<Date> dateList) {
    this.dateList = dateList;
  }

  /**
   * @return the list1
   * @category accessor
   */
  public List<TestData> getList1() {
    return list1;
  }

  /**
   * @param list1 the list1 to set
   * @category accessor
   */
  public void setList1(List<TestData> list1) {
    this.list1 = list1;
  }

  /**
   * @return the list2
   * @category accessor
   */
  public List<? extends TestData> getList2() {
    return list2;
  }

  /**
   * @param list2 the list2 to set
   * @category accessor
   */
  public void setList2(List<? extends TestData> list2) {
    this.list2 = list2;
  }

  /**
   * @return the outerEnumList
   * @category accessor
   */
  public List<SampleEnum> getOuterEnumList() {
    return outerEnumList;
  }

  /**
   * @param outerEnumList the outerEnumList to set
   * @category accessor
   */
  public void setOuterEnumList(List<SampleEnum> outerEnumList) {
    this.outerEnumList = outerEnumList;
  }

  /**
   * @return the conv
   * @category accessor
   */
  public List<Integer> getConv() {
    return conv;
  }

  /**
   * @param conv the conv to set
   * @category accessor
   */
  public void setConv(List<Integer> conv) {
    this.conv = conv;
  }

  /**
   * @return the jsonHash
   * @category accessor
   */
  public JsonHash getJsonHash() {
    return jsonHash;
  }

  /**
   * @param jsonHash the jsonHash to set
   * @category accessor
   */
  public void setJsonHash(JsonHash jsonHash) {
    this.jsonHash = jsonHash;
  }

  /**
   * @return the jsonArray
   * @category accessor
   */
  public JsonArray getJsonArray() {
    return jsonArray;
  }

  /**
   * @param jsonArray the jsonArray to set
   * @category accessor
   */
  public void setJsonArray(JsonArray jsonArray) {
    this.jsonArray = jsonArray;
  }
}




Java Source Code List

net.vvakame.apt.AptUtil.java
net.vvakame.jsonpullparser.android.sample.MainActivity.java
net.vvakame.sample.BaseData.java
net.vvakame.sample.BuilderData.java
net.vvakame.sample.ComplexData2.java
net.vvakame.sample.ComplexData.java
net.vvakame.sample.ContainsAnotherPackageObjectData.java
net.vvakame.sample.ConverterData.java
net.vvakame.sample.ExtendsData1.java
net.vvakame.sample.ExtendsData2.java
net.vvakame.sample.ForInnerClassData.java
net.vvakame.sample.GenToPackagePrivateData.java
net.vvakame.sample.JsonMetaToPackagePrivateValidData.java
net.vvakame.sample.MiniData.java
net.vvakame.sample.NestDepth1Data.java
net.vvakame.sample.NestDepth2Data.java
net.vvakame.sample.NestParentData.java
net.vvakame.sample.PrimitiveTypeData.java
net.vvakame.sample.PrimitiveWrapperData.java
net.vvakame.sample.PrimitiveWrapperListData.java
net.vvakame.sample.SampleEnum.java
net.vvakame.sample.SortOrderData1.java
net.vvakame.sample.SortOrderData2.java
net.vvakame.sample.StoreJsonData1.java
net.vvakame.sample.StoreJsonData2.java
net.vvakame.sample.TestData.java
net.vvakame.sample.anotherpackage.AnotherPackageClass.java
net.vvakame.sample.converter.IntFlattenConverter.java
net.vvakame.sample.converter.StringDiscardConverter.java
net.vvakame.sample.duma.ItemMapConverter.java
net.vvakame.sample.duma.Item.java
net.vvakame.sample.duma.ReadItLater.java
net.vvakame.sample.issue25.Issue25.java
net.vvakame.sample.issue28.Issue28.java
net.vvakame.sample.issue2.Child0ValueP0.java
net.vvakame.sample.issue2.Child0ValueP1.java
net.vvakame.sample.issue2.Child1ValueP0.java
net.vvakame.sample.issue2.Child1ValueP1.java
net.vvakame.sample.issue2.Grandchild0ValueC0P0.java
net.vvakame.sample.issue2.Grandchild0ValueC0P1.java
net.vvakame.sample.issue2.Grandchild0ValueC1P0.java
net.vvakame.sample.issue2.Grandchild0ValueC1P1.java
net.vvakame.sample.issue2.Grandchild1ValueC0P0.java
net.vvakame.sample.issue2.Grandchild1ValueC0P1.java
net.vvakame.sample.issue2.Grandchild1ValueC1P0.java
net.vvakame.sample.issue2.Grandchild1ValueC1P1.java
net.vvakame.sample.issue2.Parent0Value.java
net.vvakame.sample.issue2.Parent1Value.java
net.vvakame.sample.issue30.PrimitiveList.java
net.vvakame.sample.issue30.RecursiveStructure.java
net.vvakame.sample.issue31.BaseData.java
net.vvakame.sample.issue31.ExtendData.java
net.vvakame.sample.twitter.Place.java
net.vvakame.sample.twitter.Place.java
net.vvakame.sample.twitter.Tweet.java
net.vvakame.sample.twitter.Tweet.java
net.vvakame.sample.twitter.User.java
net.vvakame.sample.twitter.User.java
net.vvakame.twitter.ResultTweet.java
net.vvakame.twitter.SearchResult.java
net.vvakame.util.jsonpullparser.JsonFormatException.java
net.vvakame.util.jsonpullparser.JsonPullParser.java
net.vvakame.util.jsonpullparser.JsonSlice.java
net.vvakame.util.jsonpullparser.Stack.java
net.vvakame.util.jsonpullparser.annotation.JsonKey.java
net.vvakame.util.jsonpullparser.annotation.JsonModel.java
net.vvakame.util.jsonpullparser.annotation.StoreJson.java
net.vvakame.util.jsonpullparser.builder.JsonCoderRouter.java
net.vvakame.util.jsonpullparser.builder.JsonModelBuilder.java
net.vvakame.util.jsonpullparser.builder.JsonModelCoder.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyBuilderCreator.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyBuilder.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyCoder.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyMeta.java
net.vvakame.util.jsonpullparser.factory.JsonAnnotationProcessor.java
net.vvakame.util.jsonpullparser.factory.JsonKeyModel.java
net.vvakame.util.jsonpullparser.factory.JsonModelGenerator.java
net.vvakame.util.jsonpullparser.factory.JsonModelModel.java
net.vvakame.util.jsonpullparser.factory.Log.java
net.vvakame.util.jsonpullparser.factory.StandardTypeKindVisitor.java
net.vvakame.util.jsonpullparser.factory.StoreJsonModel.java
net.vvakame.util.jsonpullparser.factory.template.MvelTemplate.java
net.vvakame.util.jsonpullparser.factory.template.Template.java
net.vvakame.util.jsonpullparser.googleapiclient.JppFactory.java
net.vvakame.util.jsonpullparser.googleapiclient.JppGenerator.java
net.vvakame.util.jsonpullparser.googleapiclient.JppParser.java
net.vvakame.util.jsonpullparser.util.JsonArray.java
net.vvakame.util.jsonpullparser.util.JsonHash.java
net.vvakame.util.jsonpullparser.util.JsonParseUtil.java
net.vvakame.util.jsonpullparser.util.JsonSliceUtil.java
net.vvakame.util.jsonpullparser.util.JsonUtil.java
net.vvakame.util.jsonpullparser.util.OnJsonObjectAddListener.java
net.vvakame.util.jsonpullparser.util.TokenConverter.java
net.vvakame.util.jsonpullparser.util.Type.java