Enum Domains
- java.lang.Object
-
- java.lang.Enum<Domains>
-
- it.bancaditalia.oss.vtl.impl.types.domain.Domains
-
- All Implemented Interfaces:
ScalarValueMetadata
,VTLValueMetadata
,Serializable
,Comparable<Domains>
public enum Domains extends Enum<Domains> implements ScalarValueMetadata
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
DATE
DURATION
INTEGER
NULL
NUMBER
STRING
TIME
TIME_PERIOD_DAYS
TIME_PERIOD_MONTHS
TIME_PERIOD_QUARTERS
TIME_PERIOD_SEMESTERS
TIME_PERIOD_WEEKS
TIME_PERIOD_YEARS
-
Field Summary
Fields Modifier and Type Field Description static EntireBooleanDomainSubset
BOOLEANDS
static EntireDateDomainSubset
DATEDS
static EntireTimePeriodDomainSubsets.DaysDomainSubset
DAYSDS
static EntireDurationDomainSubset
DURATIONDS
static EntireIntegerDomainSubset
INTEGERDS
static EntireTimePeriodDomainSubsets.MonthsDomainSubset
MONTHSDS
static NullDomain
NULLDS
static EntireNumberDomainSubset
NUMBERDS
static EntireTimePeriodDomainSubsets.QuartersDomainSubset
QUARTERSDS
static EntireTimePeriodDomainSubsets.SemestersDomainSubset
SEMESTERSDS
static EntireStringDomainSubset
STRINGDS
static EnumSet<Domains>
TIME_PERIODS
static EntireTimeDomainSubset
TIMEDS
static EntireTimePeriodDomainSubsets.WeeksDomainSubset
WEEKSDS
static EntireTimePeriodDomainSubsets.YearsDomainSubset
YEARSDS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueDomainSubset<?,?>
getDomain()
boolean
isAssignableFrom(ScalarValueMetadata<?,?> other)
boolean
isAssignableFrom(ValueDomainSubset<?,?> other)
static Domains
valueOf(String name)
Returns the enum constant of this type with the specified name.static Domains[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final Domains BOOLEAN
-
INTEGER
public static final Domains INTEGER
-
DURATION
public static final Domains DURATION
-
STRING
public static final Domains STRING
-
NUMBER
public static final Domains NUMBER
-
TIME
public static final Domains TIME
-
DATE
public static final Domains DATE
-
TIME_PERIOD_DAYS
public static final Domains TIME_PERIOD_DAYS
-
TIME_PERIOD_WEEKS
public static final Domains TIME_PERIOD_WEEKS
-
TIME_PERIOD_MONTHS
public static final Domains TIME_PERIOD_MONTHS
-
TIME_PERIOD_QUARTERS
public static final Domains TIME_PERIOD_QUARTERS
-
TIME_PERIOD_SEMESTERS
public static final Domains TIME_PERIOD_SEMESTERS
-
TIME_PERIOD_YEARS
public static final Domains TIME_PERIOD_YEARS
-
NULL
public static final Domains NULL
-
-
Field Detail
-
DURATIONDS
public static final EntireDurationDomainSubset DURATIONDS
-
NUMBERDS
public static final EntireNumberDomainSubset NUMBERDS
-
INTEGERDS
public static final EntireIntegerDomainSubset INTEGERDS
-
BOOLEANDS
public static final EntireBooleanDomainSubset BOOLEANDS
-
STRINGDS
public static final EntireStringDomainSubset STRINGDS
-
DATEDS
public static final EntireDateDomainSubset DATEDS
-
TIMEDS
public static final EntireTimeDomainSubset TIMEDS
-
DAYSDS
public static final EntireTimePeriodDomainSubsets.DaysDomainSubset DAYSDS
-
WEEKSDS
public static final EntireTimePeriodDomainSubsets.WeeksDomainSubset WEEKSDS
-
MONTHSDS
public static final EntireTimePeriodDomainSubsets.MonthsDomainSubset MONTHSDS
-
QUARTERSDS
public static final EntireTimePeriodDomainSubsets.QuartersDomainSubset QUARTERSDS
-
SEMESTERSDS
public static final EntireTimePeriodDomainSubsets.SemestersDomainSubset SEMESTERSDS
-
YEARSDS
public static final EntireTimePeriodDomainSubsets.YearsDomainSubset YEARSDS
-
NULLDS
public static final NullDomain NULLDS
-
-
Method Detail
-
values
public static Domains[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Domains c : Domains.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Domains valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isAssignableFrom
public boolean isAssignableFrom(ScalarValueMetadata<?,?> other)
-
isAssignableFrom
public boolean isAssignableFrom(ValueDomainSubset<?,?> other)
-
getDomain
public ValueDomainSubset<?,?> getDomain()
- Specified by:
getDomain
in interfaceScalarValueMetadata
- Returns:
- the
ValueDomainSubset
instance represented by this VTLScalarValueMetadata
-
-