Package org.gwtoolbox.bean.rebind.validation

Source Code of org.gwtoolbox.bean.rebind.validation.AnnotationAttributes

package org.gwtoolbox.bean.rebind.validation;

import org.gwtoolbox.commons.collections.client.attributes.Attributes;
import org.gwtoolbox.commons.generator.rebind.AnnotationWrapper;

import java.lang.annotation.Annotation;
import java.util.Collection;

/**
* @author Uri Boness
*/
public class AnnotationAttributes implements Attributes {

    private final AnnotationWrapper wrapper;

    public AnnotationAttributes(Annotation annotation) {
        wrapper = new AnnotationWrapper(annotation);
    }

    public Collection<String> getNames() {
        return wrapper.getAttributeNames();
    }

    public Object get(String name) {
        return wrapper.getValue(name);
    }
}
TOP

Related Classes of org.gwtoolbox.bean.rebind.validation.AnnotationAttributes

TOP
Copyright © 2018 www.massapi.com. 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.