package org.springframework.roo.addon.plural.addon;
import org.springframework.roo.addon.plural.annotations.RooPlural;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.annotations.populator.AbstractAnnotationValues;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulate;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulationUtils;
/**
* The values of a {@link RooPlural} annotation.
*
* @author Andrew Swan
* @since 1.2.0
*/
public class PluralAnnotationValues extends AbstractAnnotationValues {
@AutoPopulate
private String value = "";
/**
* Constructor that reads the {@link RooPlural} annotation (if any) on the
* given governor.
*
* @param governor the governor's metadata (required)
*/
public PluralAnnotationValues(final PhysicalTypeMetadata governor) {
super(governor, RooPlural.class);
AutoPopulationUtils.populate(this, annotationMetadata);
}
/**
* Returns the plural provided by the annotation
*
* @return
*/
public String getValue() {
return value;
}
}