de.smartics.properties.api.core.annotations
Annotation Type PropertyStringValueRange


@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface PropertyStringValueRange

Defines the range of valid string values of a property.

 
   
   

Examples

@PropertySet("myprops")
public interface MyProperties {
...
@PropertyStringValueRange(
   value = { "one", "two", "three" },
   defaultValue = "three")
String stringValueRange();
}

See Also:
PropertyIntValueRange

Required Element Summary
 String[] value
          The enumeration of valid property values.
 
Optional Element Summary
 String[] defaultValue
          The default value to use, if no other value is specified.
 

Element Detail

value

public abstract String[] value
The enumeration of valid property values.

defaultValue

public abstract String[] defaultValue
The default value to use, if no other value is specified.

Default:
{}


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.