fluid-api/src/main/java/com/fluidbpm/program/api/vo/thirdpartylib/ThirdPartyLibrary.java
@Override
    @XmlTransient
    public JSONObject toJsonObject() throws JSONException
    {
        JSONObject returnVal = super.toJsonObject();

        //Filename...
        if(this.getFilename() != null)
        {
            returnVal.put(JSONMapping.FILENAME, this.getFilename());
        }

        //Description...
        if(this.getDescription() != null)
        {
            returnVal.put(JSONMapping.DESCRIPTION, this.getDescription());
        }

        //Sha-256 SUM...
        if(this.getSha256sum() != null)
        {
            returnVal.put(JSONMapping.SHA_256_SUM, this.getSha256sum());
        }

        //Add Tools to Classpath...
        if(this.isAddToolsToClassPath() != null)
        {
            returnVal.put(JSONMapping.ADD_TOOLS_TO_CLASS_PATH, this.isAddToolsToClassPath());
        }

        //Library Data in Base-64...
        if(this.getLibraryDataBase64() != null)
        {
            returnVal.put(JSONMapping.LIBRARY_DATA_BASE64,
                    this.getLibraryDataBase64());
        }

        //Date Created...
        if(this.getDateCreated() != null)
        {
            returnVal.put(JSONMapping.DATE_CREATED,
                    this.getDateAsLongFromJson(this.getDateCreated()));
        }

        //Date Last Updated...
        if(this.getDateLastUpdated() != null)
        {
            returnVal.put(JSONMapping.DATE_LAST_UPDATED,
                    this.getDateAsLongFromJson(this.getDateLastUpdated()));
        }

        return returnVal;
    }
@Override
    @XmlTransient
    public JSONObject toJsonObject() throws JSONException
    {
        JSONObject returnVal = super.toJsonObject();

        //Filename...
        if(this.getFilename() != null)
        {
            returnVal.put(JSONMapping.FILENAME, this.getFilename());
        }

        //Description...
        if(this.getDescription() != null)
        {
            returnVal.put(JSONMapping.DESCRIPTION, this.getDescription());
        }

        //Sha-256 SUM...
        if(this.getSha256sum() != null)
        {
            returnVal.put(JSONMapping.SHA_256_SUM, this.getSha256sum());
        }

        //Add Tools to Classpath...
        if(this.isAddToolsToClassPath() != null)
        {
            returnVal.put(JSONMapping.ADD_TOOLS_TO_CLASS_PATH, this.isAddToolsToClassPath());
        }

        //Library Data in Base-64...
        if(this.getLibraryDataBase64() != null)
        {
            returnVal.put(JSONMapping.LIBRARY_DATA_BASE64,
                    this.getLibraryDataBase64());
        }

        //Date Created...
        if(this.getDateCreated() != null)
        {
            returnVal.put(JSONMapping.DATE_CREATED,
                    this.getDateAsLongFromJson(this.getDateCreated()));
        }

        //Date Last Updated...
        if(this.getDateLastUpdated() != null)
        {
            returnVal.put(JSONMapping.DATE_LAST_UPDATED,
                    this.getDateAsLongFromJson(this.getDateLastUpdated()));
        }

        return returnVal;
    }
@ Override @ XmlTransient public JSONObject toJsonObject ( ) throws JSONException { JSONObject returnVal = super . toJsonObject ( ) ; //Filename... if ( this . getFilename ( ) != null ) { returnVal . put ( JSONMapping . FILENAME , this . getFilename ( ) ) ; } //Description... if ( this . getDescription ( ) != null ) { returnVal . put ( JSONMapping . DESCRIPTION , this . getDescription ( ) ) ; } //Sha-256 SUM... if ( this . getSha256sum ( ) != null ) { returnVal . put ( JSONMapping . SHA_256_SUM , this . getSha256sum ( ) ) ; } //Add Tools to Classpath... if ( this . isAddToolsToClassPath ( ) != null ) { returnVal . put ( JSONMapping . ADD_TOOLS_TO_CLASS_PATH , this . isAddToolsToClassPath ( ) ) ; } //Library Data in Base-64... if ( this . getLibraryDataBase64 ( ) != null ) { returnVal . put ( JSONMapping . LIBRARY_DATA_BASE64 , this . getLibraryDataBase64 ( ) ) ; } //Date Created... if ( this . getDateCreated ( ) != null ) { returnVal . put ( JSONMapping . DATE_CREATED , this . getDateAsLongFromJson ( this . getDateCreated ( ) ) ) ; } //Date Last Updated... if ( this . getDateLastUpdated ( ) != null ) { returnVal . put ( JSONMapping . DATE_LAST_UPDATED , this . getDateAsLongFromJson ( this . getDateLastUpdated ( ) ) ) ; } return returnVal ; }
Conversion to {@code JSONObject} from Java Object.

@return {@code JSONObject} representation of {@code Field}
@throws JSONException If there is a problem with the JSON Body.

@see ABaseFluidJSONObject#toJsonObject()
Conversion to { @code JSONObject } from Java Object .