Example usage for com.google.gson JsonObject JsonObject

List of usage examples for com.google.gson JsonObject JsonObject

Introduction

In this page you can find the example usage for com.google.gson JsonObject JsonObject.

Prototype

JsonObject

Source Link

Usage

From source file:buri.ddmsence.ddms.security.ntk.ProfileValue.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 */// w  w  w  .  j  av a2 s  .  c o m
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    addJson(object, "profileValue", getValue());
    addJson(object, "vocabulary", getVocabulary());
    addJson(object, "id", getID());
    addJson(object, "idReference", getIDReference());
    addJson(object, "qualifier", getQualifier());
    addJson(object, getSecurityAttributes());
    return (object);
}

From source file:buri.ddmsence.ddms.security.ntk.SystemName.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 *//*from  www.  j  a va  2 s.c o m*/
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    addJson(object, "systemName", getValue());
    addJson(object, "id", getID());
    addJson(object, "idReference", getIDReference());
    addJson(object, "qualifier", getQualifier());
    addJson(object, getSecurityAttributes());
    return (object);
}

From source file:buri.ddmsence.ddms.security.Security.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 *///from  ww w  .j a v a  2s . com
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    addJson(object, EXCLUDE_FROM_ROLLUP_NAME, getExcludeFromRollup());
    addJson(object, getNoticeList());
    addJson(object, getAccess());
    addJson(object, getSecurityAttributes());
    return (object);
}

From source file:buri.ddmsence.ddms.summary.BoundingBox.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 *///from   w w w .  j av a2  s  .  c o  m
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    addJson(object, getWestBLName(), getWestBL());
    addJson(object, getEastBLName(), getEastBL());
    addJson(object, getSouthBLName(), getSouthBL());
    addJson(object, getNorthBLName(), getNorthBL());
    return (object);
}

From source file:buri.ddmsence.ddms.summary.BoundingGeometry.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 *//*from  w w  w .  jav a2s .c om*/
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    if (!getDDMSVersion().isAtLeast("5.0")) {
        addJson(object, "polygon", getGmlPolygons());
        addJson(object, "point", getGmlPoints());
    } else {
        for (ITspiShape shape : getTspiShapes())
            addJson(object, (AbstractBaseComponent) shape);
    }
    return (object);
}

From source file:buri.ddmsence.ddms.summary.Category.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 *//*ww  w . ja  v  a  2s.c o  m*/
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    addJson(object, QUALIFIER_NAME, getQualifier());
    addJson(object, CODE_NAME, getCode());
    addJson(object, LABEL_NAME, getLabel());
    addJson(object, getSecurityAttributes());
    addJson(object, getExtensibleAttributes());
    return (object);
}

From source file:buri.ddmsence.ddms.summary.FacilityIdentifier.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 *//*from www. j av  a  2 s  . c  o  m*/
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    addJson(object, BE_NUMBER_NAME, getBeNumber());
    addJson(object, OSUFFIX_NAME, getOsuffix());
    return (object);
}

From source file:buri.ddmsence.ddms.summary.GeographicIdentifier.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 *///  www .  j av a 2s.  c o  m
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    addJson(object, NAME_NAME, getNames());
    addJson(object, REGION_NAME, getRegions());
    addJson(object, getCountryCode());
    addJson(object, getSubDivisionCode());
    addJson(object, getFacilityIdentifier());
    return (object);
}

From source file:buri.ddmsence.ddms.summary.GeospatialCoverage.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 *///www  . j  a  va  2s .c om
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    addJson(object, getGeographicIdentifier());
    addJson(object, getBoundingBox());
    addJson(object, getBoundingGeometry());
    addJson(object, getPostalAddress());
    addJson(object, getVerticalExtent());
    addJson(object, PRECEDENCE_NAME, getPrecedence());
    addJson(object, ORDER_NAME, getOrder());
    addJson(object, getSecurityAttributes());
    return (object);
}

From source file:buri.ddmsence.ddms.summary.gml.Point.java

License:Open Source License

/**
 * @see AbstractBaseComponent#getJSONObject()
 */// www  .  j a  v a2s  .  c  om
public JsonObject getJSONObject() {
    JsonObject object = new JsonObject();
    addJson(object, ID_NAME, getId());
    addJson(object, getSRSAttributes());
    addJson(object, getPosition());
    return (object);
}