public abstract class VOTableVersion extends Object implements Comparable<VOTableVersion>
VOTableWriter
to
indicate what version of the standard should be followed when generating
VOTable output.Modifier and Type | Field and Description |
---|---|
static 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 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(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 String |
getDoctypeDeclaration()
Returns the text of the DOCTYPE XML declaration for this version.
|
String |
getDraftIdentifier()
Returns a draft-version identifier for VOTable versions that are not
yet in their final form.
|
abstract URL |
getDtdUrl()
Returns a URL from which the DTD can be retrieved.
|
static Map<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 String |
getSchemaLocation()
Returns the URL of the VOTable schema corresponding to this version.
|
String |
getVersionNumber()
Returns the version number for this version.
|
abstract 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.
|
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 String DEFAULT_VERSION_STRING
public static final String VOTABLE_VERSION_PROP
DEFAULT_VERSION_STRING
(="1.4").protected VOTableVersion(String versionNumber)
versionNumber
- the number (like "1.1") identifying this versionpublic String getVersionNumber()
public abstract String getXmlNamespace()
public abstract String getSchemaLocation()
public abstract javax.xml.validation.Schema getSchema()
getSchemaLocation()
returns non-null.public abstract String getDoctypeDeclaration()
public abstract URL getDtdUrl()
getDoctypeDeclaration()
returns non-null.public 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 Comparable<VOTableVersion>
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 Map<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.Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.