org.plasma.sdo.annotation.ValueConstraint Maven / Gradle / Ivy
//==============================================================================
//
// This software artifact was generated using Plasma
// provisioning tools. Do not modify.
//
//==============================================================================
package org.plasma.sdo.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import org.atteo.classindex.IndexAnnotated;
/**
*
* This stereotype allows a value constraint to be specified for a class attribute.
*
* @author Plasma-Team
* @version 2.0.3
*/
@Retention(RetentionPolicy.RUNTIME)
@IndexAnnotated
public @interface ValueConstraint{
/**
* Specifies the lower bounds for numeric values (the value must be greater than or equal to this value). Note: the data type is currently string to support bioinformatics and other scientific models, as no long or real primitive type exists in the current UML version and restrictions in these models often involves very, very large integral or real numbers.
*/
public String minInclusive() default "";
/**
* Specifies the upper bounds for numeric values (the value must be less than or equal to this value). Note: the data type is currently string to support bioinformatics and other scientific models, as no long or real primitive type exists in the current UML version and restrictions in these models often involves very, very large integral or real numbers.
*/
public String maxInclusive() default "";
/**
* Specifies the minimum number of characters or list items allowed. Must be equal to or greater than zero. Note: the data type is currently string to support bioinformatics and other scientific models, as no long or real primitive type exists in the current UML version and restrictions in these models often involves very, very large integral or real numbers.
*/
public String minLength() default "";
/**
* Specifies the maximum number of characters or list items allowed. Must be equal to or greater than zero. Note: the data type is currently string to support bioinformatics and other scientific models, as no long or real primitive type exists in the current UML version and restrictions in these models often involves very, very large integral or real numbers.
*/
public String maxLength() default "";
/**
* Specifies the exact number of digits allowed. Must be greater than zero. The total number of digits for the Property value must be below or equal to the specified total. Note: the data type is currently string to support bioinformatics and other scientific models, as no long or real primitive type exists in the current UML version and restrictions in these models often involves very, very large integral or real numbers.
*/
public String totalDigits() default "";
/**
* Specifies the maximum number of decimal places allowed. Must be equal to or greater than zero. Note: the data type is currently string to support bioinformatics and other scientific models, as no long or real primitive type exists in the current UML version and restrictions in these models often involves very, very large integral or real numbers.
*/
public String fractionDigits() default "";
/**
* The Property value must match the specified regular expression. The regular expression follows the Java regular expression conventions. Defines the exact sequence of characters that are acceptable
*/
public String pattern() default "";
/**
* Specifies the lower bounds for numeric values (the value must be greater than this value). Note: the data type is currently string to support bioinformatics and other scientific models, as no long or real primitive type exists in the current UML version and restrictions in these models often involves very, very large integral or real numbers.
*/
public String minExclusive() default "";
/**
* Specifies the upper bounds for numeric values (the value must be less than this value). Note: the data type is currently string to support bioinformatics and other scientific models, as no long or real primitive type exists in the current UML version and restrictions in these models often involves very, very large integral or real numbers.
*/
public String maxExclusive() default "";
}