All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webit.script.resolvers.impl.MapResolver Maven / Gradle / Ivy

The newest version!
// Copyright (c) 2013-2014, Webit Team. All Rights Reserved.
package webit.script.resolvers.impl;

import java.util.Map;
import webit.script.resolvers.GetResolver;
import webit.script.resolvers.SetResolver;

/**
 *
 * @author Zqq
 */
public class MapResolver implements GetResolver, SetResolver {

    public Class getMatchClass() {
        return Map.class;
    }

    public Object get(Object object, Object property) {
        return ((Map) object).get(property);
    }

    @SuppressWarnings("unchecked")
    public void set(Object object, Object property, Object value) {
        ((Map) object).put(property, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy