com.pholser.util.properties
Annotation Type ValuesSeparatedBy


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

Mark an interface method with this annotation to indicate a regular expression that separates multiple values of the value for the property source key represented by the method. This makes sense only on methods which return array types or Lists. If the method is not marked with this annotation, the separator is taken to be "," (single comma, no surrounding whitespaces). Use pattern() to specify a plain regular expression, or valueOf() to specify a regular expression parts of which can be comprised of the values of bound properties. The keys of such properties are delimited in the pattern by [ and ]. It is illegal to specify both pattern() and valueOf() at the same time with values other than the default.

Author:
Paul Holser
See Also:
BoundProperty

Optional Element Summary
 String pattern
          A regular expression specifying a separator to be used on values of a given property.
 String valueOf
          An expression evaluating to a regular expression specifying a separator to be used on values of a given property.
 

pattern

public abstract String pattern
A regular expression specifying a separator to be used on values of a given property.

Returns:
a separator pattern
Default:
","

valueOf

public abstract String valueOf
An expression evaluating to a regular expression specifying a separator to be used on values of a given property. This expression can be given in terms of property references.

Returns:
a separator pattern expression
Default:
""


© Copyright 2009-2013 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu