Package com.thedeadpixelsociety.twodee.core.properties

Examples of com.thedeadpixelsociety.twodee.core.properties.PropertySet


     * @param input
     *         The input.
     * @return The property set.
     */
    @Override public PropertySet readProperties(JsonValue input) {
        final PropertySet propertySet = new PropertySet();
        for(JsonValue valueMap = input.child(); valueMap != null; valueMap = valueMap.next()) {
            switch(valueMap.type()) {
                case object:
                    parseObject(valueMap, propertySet);
                    break;
                case array:
                    parseArray(valueMap, propertySet);
                    break;
                case stringValue: // Fall through
                case doubleValue: // Fall through
                case longValue: // Fall through
                case booleanValue:
                    propertySet.put(valueMap.name(), new Property(valueMap.name(), valueMap.asString()));
                    break;
                case nullValue:
                    propertySet.put(valueMap.name(), null);
                    break;
            }
        }
        return propertySet;
    }
View Full Code Here

TOP

Related Classes of com.thedeadpixelsociety.twodee.core.properties.PropertySet

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.