Package org.apache.chemistry.opencmis.commons.impl.json

Examples of org.apache.chemistry.opencmis.commons.impl.json.JSONArray


        if (!target.containsKey(ext.getName())) {
            target.put(ext.getName(), value);
        } else {
            Object extValue = target.get(ext.getName());

            JSONArray array;
            if (extValue instanceof JSONArray) {
                array = (JSONArray) extValue;
            } else {
                array = new JSONArray();
                array.add(extValue);
            }

            array.add(value);

            target.put(ext.getName(), array);
        }
    }
View Full Code Here


    public static JSONArray getJSONArrayFromList(final List<?> list) {
        if (list == null) {
            return null;
        }

        JSONArray result = new JSONArray();
        result.addAll(list);

        return result;
    }
View Full Code Here

        return m;
    }

    private List<Object> createArrayContainer(ContainerFactory containerFactory) {
        if (containerFactory == null) {
            return new JSONArray();
        }

        List<Object> l = containerFactory.creatArrayContainer();

        if (l == null) {
            return new JSONArray();
        }

        return l;
    }
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.commons.impl.json.JSONArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.