org.sdmx.resources.sdmxml.schemas.v2_1.common
Enum DataType

java.lang.Object
  extended by java.lang.Enum<DataType>
      extended by org.sdmx.resources.sdmxml.schemas.v2_1.common.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>

public enum DataType
extends Enum<DataType>

Java class for DataType.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="DataType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
     <enumeration value="String"/>
     <enumeration value="Alpha"/>
     <enumeration value="AlphaNumeric"/>
     <enumeration value="Numeric"/>
     <enumeration value="BigInteger"/>
     <enumeration value="Integer"/>
     <enumeration value="Long"/>
     <enumeration value="Short"/>
     <enumeration value="Decimal"/>
     <enumeration value="Float"/>
     <enumeration value="Double"/>
     <enumeration value="Boolean"/>
     <enumeration value="URI"/>
     <enumeration value="Count"/>
     <enumeration value="InclusiveValueRange"/>
     <enumeration value="ExclusiveValueRange"/>
     <enumeration value="Incremental"/>
     <enumeration value="ObservationalTimePeriod"/>
     <enumeration value="StandardTimePeriod"/>
     <enumeration value="BasicTimePeriod"/>
     <enumeration value="GregorianTimePeriod"/>
     <enumeration value="GregorianYear"/>
     <enumeration value="GregorianYearMonth"/>
     <enumeration value="GregorianDay"/>
     <enumeration value="ReportingTimePeriod"/>
     <enumeration value="ReportingYear"/>
     <enumeration value="ReportingSemester"/>
     <enumeration value="ReportingTrimester"/>
     <enumeration value="ReportingQuarter"/>
     <enumeration value="ReportingMonth"/>
     <enumeration value="ReportingWeek"/>
     <enumeration value="ReportingDay"/>
     <enumeration value="DateTime"/>
     <enumeration value="TimeRange"/>
     <enumeration value="Month"/>
     <enumeration value="MonthDay"/>
     <enumeration value="Day"/>
     <enumeration value="Time"/>
     <enumeration value="Duration"/>
     <enumeration value="XHTML"/>
     <enumeration value="KeyValues"/>
     <enumeration value="IdentifiableReference"/>
     <enumeration value="DataSetReference"/>
     <enumeration value="AttachmentConstraintReference"/>
   </restriction>
 </simpleType>
 


Enum Constant Summary
ALPHA
          A string datatype which only allows for the simple aplhabetic charcter set of A-z.
ALPHA_NUMERIC
          A string datatype which only allows for the simple alphabetic character set of A-z plus the simple numeric character set of 0-9.
ATTACHMENT_CONSTRAINT_REFERENCE
          This value indicates that the content of the component will be reference to an attachment constraint, which is actually a combination of a collection of full or partial key values and a reference to a data set or data structure, usage, or provision agreement.
BASIC_TIME_PERIOD
          BasicTimePeriod time periods is a superset of the Gregorian time periods and a date time.
BIG_INTEGER
          An integer datatype corresponding to W3C XML Schema's xs:integer datatype.
BOOLEAN
          A datatype corresponding to W3C XML Schema's xs:boolean datatype.
COUNT
          A simple incrementing Integer type.
DATA_SET_REFERENCE
          This value indicates that the content of the component will be reference to a data provider, which is actually a formal reference to a data provider and a data set identifier value.
DATE_TIME
          A time datatype corresponding to W3C XML Schema's xs:dateTime datatype.
DAY
          A time datatype corresponding to W3C XML Schema's xs:gDay datatype.
DECIMAL
          A numeric datatype corresponding to W3C XML Schema's xs:decimal datatype.
DOUBLE
          A numeric datatype corresponding to W3C XML Schema's xs:double datatype.
DURATION
          A time datatype corresponding to W3C XML Schema's xs:duration datatype.
EXCLUSIVE_VALUE_RANGE
          This value indicates that the startValue and endValue attributes provide the exclusive boundaries of a numeric range, of type xs:decimal.
FLOAT
          A numeric datatype corresponding to W3C XML Schema's xs:float datatype.
GREGORIAN_DAY
          A time datatype corresponding to W3C XML Schema's xs:date datatype, which is based on ISO-8601.
GREGORIAN_TIME_PERIOD
          Gregorian time periods correspond to calendar periods and are represented in ISO-8601 formats.
GREGORIAN_YEAR
          A Gregorian time period corresponding to W3C XML Schema's xs:gYear datatype, which is based on ISO-8601.
GREGORIAN_YEAR_MONTH
          A time datatype corresponding to W3C XML Schema's xs:gYearMonth datatype, which is based on ISO-8601.
IDENTIFIABLE_REFERENCE
          This value indicates that the content of the component will be complete reference (either URN or full set of reference fields) to an Identifiable object in the SDMX Information Model.
INCLUSIVE_VALUE_RANGE
          This value indicates that the startValue and endValue attributes provide the inclusive boundaries of a numeric range of type xs:decimal.
INCREMENTAL
          This value indicates that the value increments according to the value provided in the interval facet, and has a true value for the isSequence facet.
INTEGER
          An integer datatype corresponding to W3C XML Schema's xs:int datatype.
KEY_VALUES
          This value indicates that the content of the component will be data key (a set of dimension references and values for the dimensions).
LONG
          A numeric datatype corresponding to W3C XML Schema's xs:long datatype.
MONTH
          A time datatype corresponding to W3C XML Schema's xs:gMonth datatype.
MONTH_DAY
          A time datatype corresponding to W3C XML Schema's xs:gMonthDay datatype.
NUMERIC
          A string datatype which only allows for the simple numeric character set of 0-9.
OBSERVATIONAL_TIME_PERIOD
          Observational time periods are the superset of all time periods in SDMX.
REPORTING_DAY
          A reporting day represents a period of 1 day (P1D) from the start date of the reporting year.
REPORTING_MONTH
          A reporting month represents a period of 1 month (P1M) from the start date of the reporting year.
REPORTING_QUARTER
          A reporting quarter represents a period of 3 months (P3M) from the start date of the reporting year.
REPORTING_SEMESTER
          A reporting semester represents a period of 6 months (P6M) from the start date of the reporting year.
REPORTING_TIME_PERIOD
          Reporting time periods represent periods of a standard length within a reporting year, where to start of the year (defined as a month and day) must be defined elsewhere or it is assumed to be January 1.
REPORTING_TRIMESTER
          A reporting trimester represents a period of 4 months (P4M) from the start date of the reporting year.
REPORTING_WEEK
          A reporting week represents a period of 7 days (P7D) from the start date of the reporting year.
REPORTING_YEAR
          A reporting year represents a period of 1 year (P1Y) from the start date of the reporting year.
SHORT
          A numeric datatype corresponding to W3C XML Schema's xs:short datatype.
STANDARD_TIME_PERIOD
          Standard time periods is a superset of distinct time period in SDMX.
STRING
          A string datatype corresponding to W3C XML Schema's xs:string datatype.
TIME
          A time datatype corresponding to W3C XML Schema's xs:time datatype.
TIME_RANGE
          TimeRange defines a time period by providing a distinct start (date or date time) and a duration.
URI
          A datatype corresponding to W3C XML Schema's xs:anyURI datatype.
XHTML
          This value indicates that the content of the component can contain XHTML markup.
 
Method Summary
static DataType fromValue(String v)
           
 String value()
           
static DataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STRING

public static final DataType STRING
A string datatype corresponding to W3C XML Schema's xs:string datatype.


ALPHA

public static final DataType ALPHA
A string datatype which only allows for the simple aplhabetic charcter set of A-z.


ALPHA_NUMERIC

public static final DataType ALPHA_NUMERIC
A string datatype which only allows for the simple alphabetic character set of A-z plus the simple numeric character set of 0-9.


NUMERIC

public static final DataType NUMERIC
A string datatype which only allows for the simple numeric character set of 0-9. This format is not treated as an integer, and therefore can having leading zeros.


BIG_INTEGER

public static final DataType BIG_INTEGER
An integer datatype corresponding to W3C XML Schema's xs:integer datatype.


INTEGER

public static final DataType INTEGER
An integer datatype corresponding to W3C XML Schema's xs:int datatype.


LONG

public static final DataType LONG
A numeric datatype corresponding to W3C XML Schema's xs:long datatype.


SHORT

public static final DataType SHORT
A numeric datatype corresponding to W3C XML Schema's xs:short datatype.


DECIMAL

public static final DataType DECIMAL
A numeric datatype corresponding to W3C XML Schema's xs:decimal datatype.


FLOAT

public static final DataType FLOAT
A numeric datatype corresponding to W3C XML Schema's xs:float datatype.


DOUBLE

public static final DataType DOUBLE
A numeric datatype corresponding to W3C XML Schema's xs:double datatype.


BOOLEAN

public static final DataType BOOLEAN
A datatype corresponding to W3C XML Schema's xs:boolean datatype.


URI

public static final DataType URI
A datatype corresponding to W3C XML Schema's xs:anyURI datatype.


COUNT

public static final DataType COUNT
A simple incrementing Integer type. The isSequence facet must be set to true, and the interval facet must be set to "1".


INCLUSIVE_VALUE_RANGE

public static final DataType INCLUSIVE_VALUE_RANGE
This value indicates that the startValue and endValue attributes provide the inclusive boundaries of a numeric range of type xs:decimal.


EXCLUSIVE_VALUE_RANGE

public static final DataType EXCLUSIVE_VALUE_RANGE
This value indicates that the startValue and endValue attributes provide the exclusive boundaries of a numeric range, of type xs:decimal.


INCREMENTAL

public static final DataType INCREMENTAL
This value indicates that the value increments according to the value provided in the interval facet, and has a true value for the isSequence facet.


OBSERVATIONAL_TIME_PERIOD

public static final DataType OBSERVATIONAL_TIME_PERIOD
Observational time periods are the superset of all time periods in SDMX. It is the union of the standard time periods (i.e. Gregorian time periods, the reporting time periods, and date time) and a time range.


STANDARD_TIME_PERIOD

public static final DataType STANDARD_TIME_PERIOD
Standard time periods is a superset of distinct time period in SDMX. It is the union of the basic time periods (i.e. the Gregorian time periods and date time) and the reporting time periods.


BASIC_TIME_PERIOD

public static final DataType BASIC_TIME_PERIOD
BasicTimePeriod time periods is a superset of the Gregorian time periods and a date time.


GREGORIAN_TIME_PERIOD

public static final DataType GREGORIAN_TIME_PERIOD
Gregorian time periods correspond to calendar periods and are represented in ISO-8601 formats. This is the union of the year, year month, and date formats.


GREGORIAN_YEAR

public static final DataType GREGORIAN_YEAR
A Gregorian time period corresponding to W3C XML Schema's xs:gYear datatype, which is based on ISO-8601.


GREGORIAN_YEAR_MONTH

public static final DataType GREGORIAN_YEAR_MONTH
A time datatype corresponding to W3C XML Schema's xs:gYearMonth datatype, which is based on ISO-8601.


GREGORIAN_DAY

public static final DataType GREGORIAN_DAY
A time datatype corresponding to W3C XML Schema's xs:date datatype, which is based on ISO-8601.


REPORTING_TIME_PERIOD

public static final DataType REPORTING_TIME_PERIOD
Reporting time periods represent periods of a standard length within a reporting year, where to start of the year (defined as a month and day) must be defined elsewhere or it is assumed to be January 1. This is the union of the reporting year, semester, trimester, quarter, month, week, and day.


REPORTING_YEAR

public static final DataType REPORTING_YEAR
A reporting year represents a period of 1 year (P1Y) from the start date of the reporting year. This is expressed as using the SDMX specific ReportingYearType.


REPORTING_SEMESTER

public static final DataType REPORTING_SEMESTER
A reporting semester represents a period of 6 months (P6M) from the start date of the reporting year. This is expressed as using the SDMX specific ReportingSemesterType.


REPORTING_TRIMESTER

public static final DataType REPORTING_TRIMESTER
A reporting trimester represents a period of 4 months (P4M) from the start date of the reporting year. This is expressed as using the SDMX specific ReportingTrimesterType.


REPORTING_QUARTER

public static final DataType REPORTING_QUARTER
A reporting quarter represents a period of 3 months (P3M) from the start date of the reporting year. This is expressed as using the SDMX specific ReportingQuarterType.


REPORTING_MONTH

public static final DataType REPORTING_MONTH
A reporting month represents a period of 1 month (P1M) from the start date of the reporting year. This is expressed as using the SDMX specific ReportingMonthType.


REPORTING_WEEK

public static final DataType REPORTING_WEEK
A reporting week represents a period of 7 days (P7D) from the start date of the reporting year. This is expressed as using the SDMX specific ReportingWeekType.


REPORTING_DAY

public static final DataType REPORTING_DAY
A reporting day represents a period of 1 day (P1D) from the start date of the reporting year. This is expressed as using the SDMX specific ReportingDayType.


DATE_TIME

public static final DataType DATE_TIME
A time datatype corresponding to W3C XML Schema's xs:dateTime datatype.


TIME_RANGE

public static final DataType TIME_RANGE
TimeRange defines a time period by providing a distinct start (date or date time) and a duration.


MONTH

public static final DataType MONTH
A time datatype corresponding to W3C XML Schema's xs:gMonth datatype.


MONTH_DAY

public static final DataType MONTH_DAY
A time datatype corresponding to W3C XML Schema's xs:gMonthDay datatype.


DAY

public static final DataType DAY
A time datatype corresponding to W3C XML Schema's xs:gDay datatype.


TIME

public static final DataType TIME
A time datatype corresponding to W3C XML Schema's xs:time datatype.


DURATION

public static final DataType DURATION
A time datatype corresponding to W3C XML Schema's xs:duration datatype.


XHTML

public static final DataType XHTML
This value indicates that the content of the component can contain XHTML markup.


KEY_VALUES

public static final DataType KEY_VALUES
This value indicates that the content of the component will be data key (a set of dimension references and values for the dimensions).


IDENTIFIABLE_REFERENCE

public static final DataType IDENTIFIABLE_REFERENCE
This value indicates that the content of the component will be complete reference (either URN or full set of reference fields) to an Identifiable object in the SDMX Information Model.


DATA_SET_REFERENCE

public static final DataType DATA_SET_REFERENCE
This value indicates that the content of the component will be reference to a data provider, which is actually a formal reference to a data provider and a data set identifier value.


ATTACHMENT_CONSTRAINT_REFERENCE

public static final DataType ATTACHMENT_CONSTRAINT_REFERENCE
This value indicates that the content of the component will be reference to an attachment constraint, which is actually a combination of a collection of full or partial key values and a reference to a data set or data structure, usage, or provision agreement.

Method Detail

values

public static DataType[] 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 (DataType c : DataType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataType 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 name
NullPointerException - if the argument is null

value

public String value()

fromValue

public static DataType fromValue(String v)


Copyright © 2012. All Rights Reserved.