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> */*from w w w. j av a2s.com*/ * 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.twitter; import net.vvakame.util.jsonpullparser.annotation.JsonKey; import net.vvakame.util.jsonpullparser.annotation.JsonModel; import net.vvakame.util.jsonpullparser.util.JsonHash; /** * Sample data model for place (as in Twitter.) * @author vvakame */ @JsonModel(treatUnknownKeyAsError = true) public class Place { @JsonKey String id; @JsonKey String url; @JsonKey(decamelize = true) JsonHash boundingBox; @JsonKey JsonHash attributes; @JsonKey(decamelize = true) String fullName; @JsonKey String name; @JsonKey(decamelize = true) String countryCode; @JsonKey(decamelize = true) String placeType; @JsonKey String country; /** * @return the id */ public String getId() { return id; } /** * @param id * the id to set */ public void setId(String id) { this.id = id; } /** * @return the url */ public String getUrl() { return url; } /** * @param url * the url to set */ public void setUrl(String url) { this.url = url; } /** * @return the boundingBox */ public JsonHash getBoundingBox() { return boundingBox; } /** * @param boundingBox * the boundingBox to set */ public void setBoundingBox(JsonHash boundingBox) { this.boundingBox = boundingBox; } /** * @return the attributes */ public JsonHash getAttributes() { return attributes; } /** * @param attributes * the attributes to set */ public void setAttributes(JsonHash attributes) { this.attributes = attributes; } /** * @return the fullName */ public String getFullName() { return fullName; } /** * @param fullName * the fullName to set */ public void setFullName(String fullName) { this.fullName = fullName; } /** * @return the name */ public String getName() { return name; } /** * @param name * the name to set */ public void setName(String name) { this.name = name; } /** * @return the countryCode */ public String getCountryCode() { return countryCode; } /** * @param countryCode * the countryCode to set */ public void setCountryCode(String countryCode) { this.countryCode = countryCode; } /** * @return the placeType */ public String getPlaceType() { return placeType; } /** * @param placeType * the placeType to set */ public void setPlaceType(String placeType) { this.placeType = placeType; } /** * @return the country */ public String getCountry() { return country; } /** * @param country * the country to set */ public void setCountry(String country) { this.country = country; } }