Package org.qi4j.api.value

Examples of org.qi4j.api.value.ValueSerializationException


        {
            return;
        }
        if( !( inputNode instanceof JSONArray ) )
        {
            throw new ValueSerializationException( "Expected an array but got " + inputNode );
        }
        JSONArray array = (JSONArray) inputNode;
        for( int idx = 0; idx < array.length(); idx++ )
        {
            Object item = array.get( idx );
            if( !( item instanceof JSONObject ) )
            {
                throw new ValueSerializationException( "Expected an object but got " + inputNode );
            }
            JSONObject object = (JSONObject) item;
            Object keyNode = object.get( "key" );
            Object valueNode = object.get( "value" );
            K key = keyDeserializer.map( keyNode );
View Full Code Here

TOP

Related Classes of org.qi4j.api.value.ValueSerializationException

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.