com.softwareag.centrasite.appl.framework.validation.impl
Annotation Type Constraint


@Retention(value=RUNTIME)
public @interface Constraint

This annotation denotes a single constraint. A getter may contain multiple constraints: The Constraints annotation is used to group constraints.


Required Element Summary
 java.lang.String[] condition
          Returns the constraints condition.
 
Optional Element Summary
 java.lang.String errorCode
          The error code, which is used for type "validation" only.
 java.lang.String scope
          Returns the constraints scope.
 java.lang.String type
          Returns the constraints type.
 

Element Detail

condition

public abstract java.lang.String[] condition
Returns the constraints condition. The condition is converted into an instance of Condition by the ConditionFactory.

See Also:
ConditionFactory

type

public abstract java.lang.String type
Returns the constraints type. By default, the available types are "readOnly", and "validation". However, you may introduce custom types.

Default:
"validation"

scope

public abstract java.lang.String scope
Returns the constraints scope. The scope is converted into an instance of Scope by the ScopeFactory.

See Also:
ScopeFactory
Default:
""

errorCode

public abstract java.lang.String errorCode
The error code, which is used for type "validation" only.

Default:
""