public abstract class VOTableVersion extends java.lang.Object implements java.lang.Comparable<VOTableVersion>
VOTableWriter
to
indicate what version of the standard should be followed when generating
VOTable output.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_VERSION_STRING
Default VOTable version number which output will conform to
if not otherwise specified ("1.4").
|
static VOTableVersion |
V10
VOTable 1.0.
|
static VOTableVersion |
V11
VOTable 1.1.
|
static VOTableVersion |
V12
VOTable 1.2.
|
static VOTableVersion |
V13
VOTable 1.3.
|
static VOTableVersion |
V14
VOTable 1.4.
|
static VOTableVersion |
V15
VOTable 1.5.
|
static java.lang.String |
VOTABLE_VERSION_PROP
System property name whose value gives the default VOTable version
written by instances of this class if no version is given explicitly.
|
Modifier | Constructor and Description |
---|---|
protected |
VOTableVersion(java.lang.String versionNumber)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
allowBinary2()
Indicates whether the BINARY2 serialization format is defined by
this version.
|
abstract boolean |
allowCoosysRefposition()
Indicates whether the refposition attribute of the COOSYS element
is supported in this version.
|
abstract boolean |
allowEmptyTd()
Indicates whether this version permits an empty TD element to represent
a null value for all data types.
|
abstract boolean |
allowTimesys()
Indicates whether the TIMESYS element is supported in this version.
|
abstract boolean |
allowXtype()
Indicates whether the xtype attribute is permitted on FIELD elements
etc in this version.
|
int |
compareTo(VOTableVersion other) |
abstract boolean |
forbidArraysize1()
Indicates whether this version of VOTable deprecates/forbids
the use of the arraysize attribute on FIELD/PARAM elements
with a value of "1".
|
static VOTableVersion |
getDefaultVersion()
Returns the version instance used by default for output in this JVM.
|
abstract java.lang.String |
getDoctypeDeclaration()
Returns the text of the DOCTYPE XML declaration for this version.
|
java.lang.String |
getDraftIdentifier()
Returns a draft-version identifier for VOTable versions that are not
yet in their final form.
|
abstract java.net.URL |
getDtdUrl()
Returns a URL from which the DTD can be retrieved.
|
static java.util.Map<java.lang.String,VOTableVersion> |
getKnownVersions()
Returns a number->version map for all known versions.
|
abstract javax.xml.validation.Schema |
getSchema()
Returns a schema which may be used to validate document instances
of this VOTable version.
|
abstract java.lang.String |
getSchemaLocation()
Returns the URL of the VOTable schema corresponding to this version.
|
java.lang.String |
getVersionNumber()
Returns the version number for this version.
|
abstract java.lang.String |
getXmlNamespace()
Returns the XML namespace in which the VOTable elements reside.
|
abstract boolean |
isVOUnitSyntax()
Indicates whether this version of VOTable is supposed to use the
VOUnit standard for the content of unit attributes.
|
java.lang.String |
toString()
Returns version number.
|
public static final VOTableVersion V10
public static final VOTableVersion V11
public static final VOTableVersion V12
public static final VOTableVersion V13
public static final VOTableVersion V14
public static final VOTableVersion V15
public static final java.lang.String DEFAULT_VERSION_STRING
public static final java.lang.String VOTABLE_VERSION_PROP
DEFAULT_VERSION_STRING
(="1.4").protected VOTableVersion(java.lang.String versionNumber)
versionNumber
- the number (like "1.1") identifying this versionpublic java.lang.String getVersionNumber()
public abstract java.lang.String getXmlNamespace()
public abstract java.lang.String getSchemaLocation()
public abstract javax.xml.validation.Schema getSchema()
getSchemaLocation()
returns non-null.public abstract java.lang.String getDoctypeDeclaration()
public abstract java.net.URL getDtdUrl()
getDoctypeDeclaration()
returns non-null.public java.lang.String getDraftIdentifier()
If the standard to which this version applies is still subject to change, a version-specific document identifier of the form XX-VOTable-A.B-YYYYMMD should be returned, as described in the IVOA DocStd document. XX will presumably be WD or PR.
For final (REC-status) documents, null is returned.
public int compareTo(VOTableVersion other)
compareTo
in interface java.lang.Comparable<VOTableVersion>
public java.lang.String toString()
toString
in class java.lang.Object
public abstract boolean allowEmptyTd()
public abstract boolean allowBinary2()
public abstract boolean allowXtype()
public abstract boolean allowTimesys()
public abstract boolean allowCoosysRefposition()
public abstract boolean isVOUnitSyntax()
public abstract boolean forbidArraysize1()
public static java.util.Map<java.lang.String,VOTableVersion> getKnownVersions()
public static VOTableVersion getDefaultVersion()
DEFAULT_VERSION_STRING
constant, but it can be
overridden by use of the VOTABLE_VERSION_PROP
("votable.version") system property.