List of usage examples for com.google.gson JsonObject JsonObject
JsonObject
From source file:buri.ddmsence.AbstractTspiAddress.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///ww w . j a va 2 s . c o m public JsonObject getJSONObject() { JsonObject object = new JsonObject(); String name = getName().replaceAll("USPS", "usps"); addJson(object, "addressType", Util.decapitalize(name)); return (object); }
From source file:buri.ddmsence.AbstractTspiShape.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///from w ww . j a va 2 s . co m public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, "shapeType", Util.decapitalize(getName())); return (object); }
From source file:buri.ddmsence.ddms.ApproximableDate.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///from w w w. jav a 2s. c o m public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, DESCRIPTION_NAME, getDescription()); addJson(object, APPROXIMABLE_DATE_NAME, getApproximableDateString()); addJson(object, APPROXIMABLE_DATE_NAME + "." + APPROXIMATION_NAME, getApproximation()); addJson(object, SEARCHABLE_DATE_NAME + "." + START_NAME, getSearchableStartString()); addJson(object, SEARCHABLE_DATE_NAME + "." + END_NAME, getSearchableEndString()); return (object); }
From source file:buri.ddmsence.ddms.extensible.ExtensibleAttributes.java
License:Open Source License
/** * @see AbstractAttributeGroup#getJSONObject() *//*w ww . j a va 2 s .c o m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); for (Attribute attribute : getAttributes()) { addJson(object, attribute.getNamespacePrefix() + "." + attribute.getLocalName(), attribute.getValue()); } return (object); }
From source file:buri.ddmsence.ddms.extensible.ExtensibleElement.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() */ public JsonObject getJSONObject() { return (new JsonObject()); }
From source file:buri.ddmsence.ddms.format.Extent.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//* w w w . j ava2s.c o m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getQualifierName(), getQualifier()); addJson(object, getValueName(), getValue()); return (object); }
From source file:buri.ddmsence.ddms.format.Format.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///from ww w .ja va 2s .co m public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, MIME_TYPE_NAME, getMimeType()); addJson(object, getExtent()); addJson(object, MEDIUM_NAME, getMedium()); return (object); }
From source file:buri.ddmsence.ddms.metacard.MetacardInfo.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//*from w w w.j av a 2 s.c o m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, "identifier", getIdentifiers()); addJson(object, getDates()); addJson(object, "publisher", getPublishers()); addJson(object, "contributor", getContributors()); addJson(object, "creator", getCreators()); addJson(object, "pointOfContact", getPointOfContacts()); addJson(object, getDescription()); addJson(object, "processingInfo", getProcessingInfos()); addJson(object, getRevisionRecall()); addJson(object, getRecordsManagementInfo()); addJson(object, getNoticeList()); addJson(object, getAccess()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.resource.ApplicationSoftware.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//* www.j ava 2 s .com*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getName(), getValue()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.resource.Dates.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//*from w w w.jav a 2 s .c om*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, ACQUIRED_ON_NAME, getAcquiredOns()); addJson(object, CREATED_NAME, getCreatedString()); addJson(object, POSTED_NAME, getPostedString()); addJson(object, VALID_TIL_NAME, getValidTilString()); addJson(object, INFO_CUT_OFF_NAME, getInfoCutOffString()); addJson(object, APPROVED_ON_NAME, getApprovedOnString()); addJson(object, RECEIVED_ON_NAME, getReceivedOnString()); return (object); }