List of usage examples for com.google.gson JsonObject JsonObject
JsonObject
From source file:buri.ddmsence.ddms.summary.gml.Polygon.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//*from w ww. jav a 2 s.c o m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, ID_NAME, getId()); addJson(object, getSRSAttributes()); addJson(object, Position.getName(getDDMSVersion()), getPositions()); return (object); }
From source file:buri.ddmsence.ddms.summary.gml.Position.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///w w w . j a v a 2s .co m public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, "coordinates", getCoordinates()); addJson(object, getSRSAttributes()); return (object); }
From source file:buri.ddmsence.ddms.summary.gml.SRSAttributes.java
License:Open Source License
/** * @see AbstractAttributeGroup#getJSONObject() *//*ww w .j a v a2 s. c o m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, "srsName", getSrsName()); addJson(object, "srsDimension", getSrsDimension()); addJson(object, "axisLabels", getAxisLabels()); addJson(object, "uomLabels", getUomLabels()); return (object); }
From source file:buri.ddmsence.ddms.summary.Keyword.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//* ww w .ja v a2s . c o m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getName(), getValue()); addJson(object, getSecurityAttributes()); addJson(object, getExtensibleAttributes()); return (object); }
From source file:buri.ddmsence.ddms.summary.Link.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///from www . j a v a2s. c o m public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getXLinkAttributes()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.summary.NonStateActor.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() */// w w w .j a v a 2s . c om public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getName(), getValue()); addJson(object, ORDER_NAME, getOrder()); addJson(object, QUALIFIER_NAME, getQualifier()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.summary.PostalAddress.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///from w w w. jav a2 s . c om public JsonObject getJSONObject() { JsonObject object = new JsonObject(); if (!getDDMSVersion().isAtLeast("5.0")) { addJson(object, STREET_NAME, getStreets()); addJson(object, CITY_NAME, getCity()); addJson(object, STATE_NAME, getState()); addJson(object, PROVINCE_NAME, getProvince()); addJson(object, POSTAL_CODE_NAME, getPostalCode()); addJson(object, getCountryCode()); } else { AbstractBaseComponent tspi = (AbstractBaseComponent) getTspiAddress(); addJson(object, "addressType", tspi.getJSONObject().get("addressType").getAsString()); } return (object); }
From source file:buri.ddmsence.ddms.summary.ProductionMetric.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//*www .j ava 2 s . co m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, SUBJECT_NAME, getSubject()); addJson(object, COVERAGE_NAME, getCoverage()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.summary.RelatedResource.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///from w ww . j a v a 2 s.c om public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, RELATIONSHIP_NAME, getRelationship()); addJson(object, DIRECTION_NAME, getDirection()); addJson(object, getQualifierName(), getQualifier()); addJson(object, getValueName(), getValue()); addJson(object, Link.getName(getDDMSVersion()), getLinks()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.summary.SubjectCoverage.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//*from w w w .ja va 2 s . c o m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, Keyword.getName(getDDMSVersion()), getKeywords()); addJson(object, Category.getName(getDDMSVersion()), getCategories()); addJson(object, ProductionMetric.getName(getDDMSVersion()), getProductionMetrics()); addJson(object, NonStateActor.getName(getDDMSVersion()), getNonStateActors()); addJson(object, getSecurityAttributes()); return (object); }