AnnotationAttributes.java :  » GWT » gwtoolbox » org » gwtoolbox » bean » rebind » validation » Java Open Source

Java Open Source » GWT » gwtoolbox 
gwtoolbox » org » gwtoolbox » bean » rebind » validation » AnnotationAttributes.java
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);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.