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);
}
}