List of usage examples for com.google.gson JsonObject JsonObject
JsonObject
From source file:buri.ddmsence.ddms.resource.ProcessingInfo.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//* w ww . j av a 2s . c o m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getName(), getValue()); addJson(object, DATE_PROCESSED_NAME, getDateProcessedString()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.resource.RecordKeeper.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///from w w w. j a v a2 s.co m public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, RECORD_KEEPER_ID_NAME, getRecordKeeperID()); addJson(object, getOrganization()); return (object); }
From source file:buri.ddmsence.ddms.resource.RecordsManagementInfo.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *///from w ww . j a v a 2s . c om public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getRecordKeeper()); addJson(object, getApplicationSoftware()); addJson(object, VITAL_RECORD_INDICATOR_NAME, getVitalRecordIndicator()); return (object); }
From source file:buri.ddmsence.ddms.resource.ResourceManagement.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() */// w w w . ja v a 2s. c o m public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getRecordsManagementInfo()); addJson(object, getRevisionRecall()); addJson(object, "taskingInfo", getTaskingInfos()); addJson(object, "processingInfo", getProcessingInfos()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.resource.RevisionRecall.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//* w w w . j ava 2 s . co m*/ public JsonObject getJSONObject() { boolean hasNestedElements = (!getLinks().isEmpty() || !getDetails().isEmpty()); JsonObject object = new JsonObject(); if (!hasNestedElements) addJson(object, getName(), getValue()); addJson(object, REVISION_ID_NAME, getRevisionID()); addJson(object, REVISION_TYPE_NAME, getRevisionType()); addJson(object, NETWORK_NAME, getNetwork()); addJson(object, OTHER_NETWORK_NAME, getOtherNetwork()); addJson(object, "link", getLinks()); addJson(object, "detail", getDetails()); addJson(object, getXLinkAttributes()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.resource.Rights.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//*from www . j a v a 2 s. co m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, PRIVACY_ACT_NAME, getPrivacyAct()); addJson(object, INTELLECTUAL_PROPERY_NAME, getIntellectualProperty()); addJson(object, COPYRIGHT_NAME, getCopyright()); return (object); }
From source file:buri.ddmsence.ddms.resource.Source.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//* w ww . j a va 2 s. co m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getQualifierName(), getQualifier()); addJson(object, getValueName(), getValue()); addJson(object, SCHEMA_QUALIFIER_NAME, getSchemaQualifier()); addJson(object, SCHEMA_HREF_NAME, getSchemaHref()); addJson(object, getSecurityAttributes()); return (object); }
From source file:buri.ddmsence.ddms.resource.TaskID.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//* w w w . j av a 2 s . c o m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, getName(), getValue()); addJson(object, TASKING_SYSTEM_NAME, getTaskingSystem()); addJson(object, NETWORK_NAME, getNetwork()); addJson(object, OTHER_NETWORK_NAME, getOtherNetwork()); addJson(object, getXLinkAttributes()); return (object); }
From source file:buri.ddmsence.ddms.resource.TaskingInfo.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() */// w w w . j a v a 2 s .co m public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, "requesterInfo", getRequesterInfos()); addJson(object, "addressee", getAddressees()); addJson(object, getDescription()); addJson(object, getTaskID()); return (object); }
From source file:buri.ddmsence.ddms.resource.Type.java
License:Open Source License
/** * @see AbstractBaseComponent#getJSONObject() *//*from w w w .jav a2s. co m*/ public JsonObject getJSONObject() { JsonObject object = new JsonObject(); addJson(object, "description", getDescription()); addJson(object, getQualifierName(), getQualifier()); addJson(object, getValueName(), getValue()); addJson(object, getSecurityAttributes()); return (object); }