Package com.addthis.maljson

Examples of com.addthis.maljson.LineNumberInfo


            Object value = json.opt(fieldName);
            if (value == null) {
                field.set(object, json.getLineNumberInfo(), value, LineNumberInfo.MissingInfo);
                continue;
            }
            LineNumberInfo keyInfo = json.getKeyLineNumber(fieldName);
            LineNumberInfo valInfo = json.getValLineNumber(fieldName);

            if (CodecJSON.JSONCodable.class.isAssignableFrom(type)) {
                Object oValue = value;
                try {
                    value = type.newInstance();
View Full Code Here


            Object value = json.opt(fieldName);
            if (value == null) {
                field.set(object, json.getLineNumberInfo(), value, LineNumberInfo.MissingInfo);
                continue;
            }
            LineNumberInfo keyInfo = json.getKeyLineNumber(fieldName);
            LineNumberInfo valInfo = json.getValLineNumber(fieldName);

            if (CodecJSON.JSONCodable.class.isAssignableFrom(type)) {
                Object oValue = value;
                try {
                    value = type.newInstance();
View Full Code Here

            Object value = json.opt(fieldName);
            if (value == null) {
                field.set(object, json.getLineNumberInfo(), value, LineNumberInfo.MissingInfo);
                continue;
            }
            LineNumberInfo keyInfo = json.getKeyLineNumber(fieldName);
            LineNumberInfo valInfo = json.getValLineNumber(fieldName);

            if (CodecJSON.JSONCodable.class.isAssignableFrom(type)) {
                Object oValue = value;
                try {
                    value = type.newInstance();
View Full Code Here

        // json config is "unexpectedly" an array; if the base class has registered a handler, use it
        if (json instanceof JSONArray) {
            Class<?> arrarySugar = classInfo.getArraySugar();
            if (arrarySugar != null) {
                LineNumberInfo infoCopy = ((JSONArray) json).getMyLineNumberInfo();
                JSONObject magicWrapper = new JSONObject();
                magicWrapper.put(classInfo.getPluginMap().aliasDefaults("_array").toConfig().getString("_primary"), json, infoCopy, infoCopy);
                classInfo = Fields.getClassFieldMap(arrarySugar);
                json = magicWrapper;
                type = (Class<T>) arrarySugar;
View Full Code Here

            }
            if (value == null) {
                field.set(object, json.getLineNumberInfo(), value, LineNumberInfo.MissingInfo);
                continue;
            }
            LineNumberInfo keyInfo = json.getKeyLineNumber(fieldName);
            LineNumberInfo valInfo = json.getValLineNumber(fieldName);

            if (JSONCodable.class.isAssignableFrom(type)) {
                Object oValue = value;
                try {
                    value = type.newInstance();
View Full Code Here

        // json config is "unexpectedly" an array; if the base class has registered a handler, use it
        if (json instanceof JSONArray) {
            Class<?> arrarySugar = classInfo.getArraySugar();
            if (arrarySugar != null) {
                LineNumberInfo infoCopy = ((JSONArray) json).getMyLineNumberInfo();
                JSONObject magicWrapper = new JSONObject();
                magicWrapper.put(classInfo.getPluginMap().aliasDefaults("_array").toConfig().getString("_primary"), json, infoCopy, infoCopy);
                classInfo = Fields.getClassFieldMap(arrarySugar);
                json = magicWrapper;
                type = (Class<T>) arrarySugar;
View Full Code Here

            }
            if (value == null) {
                field.setStrictJson(object, json.getLineNumberInfo(), value, LineNumberInfo.MissingInfo);
                continue;
            }
            LineNumberInfo keyInfo = json.getKeyLineNumber(fieldName);
            LineNumberInfo valInfo = json.getValLineNumber(fieldName);

            if (JSONCodable.class.isAssignableFrom(type)) {
                Object oValue = value;
                try {
                    value = type.newInstance();
View Full Code Here

        // json config is "unexpectedly" an array; if the base class has registered a handler, use it
        if (json instanceof JSONArray) {
            Class<?> arrarySugar = classInfo.getArraySugar();
            if (arrarySugar != null) {
                LineNumberInfo infoCopy = ((JSONArray) json).getMyLineNumberInfo();
                JSONObject magicWrapper = new JSONObject();
                magicWrapper.put(classInfo.getPluginMap().arrayField(), json, infoCopy, infoCopy);
                classInfo = Fields.getClassFieldMap(arrarySugar);
                json = magicWrapper;
                type = (Class<T>) arrarySugar;
View Full Code Here

            }
            if (value == null) {
                field.set(object, json.getLineNumberInfo(), value, LineNumberInfo.MissingInfo);
                continue;
            }
            LineNumberInfo keyInfo = json.getKeyLineNumber(fieldName);
            LineNumberInfo valInfo = json.getValLineNumber(fieldName);

            if (JSONCodable.class.isAssignableFrom(type)) {
                Object oValue = value;
                try {
                    value = type.newInstance();
View Full Code Here

        // json config is "unexpectedly" an array; if the base class has registered a handler, use it
        if (json instanceof JSONArray) {
            Class<?> arrarySugar = classInfo.getArraySugar();
            if (arrarySugar != null) {
                LineNumberInfo infoCopy = ((JSONArray) json).getMyLineNumberInfo();
                JSONObject magicWrapper = new JSONObject();
                magicWrapper.put(classInfo.getPluginMap().arrayField(), json, infoCopy, infoCopy);
                classInfo = Fields.getClassFieldMap(arrarySugar);
                json = magicWrapper;
                type = (Class<T>) arrarySugar;
View Full Code Here

TOP

Related Classes of com.addthis.maljson.LineNumberInfo

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.