public abstract class VOTableVersion
extends java.lang.Object
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.3").
|
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 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 |
allowEmptyTd()
Indicates whether this version permits an empty TD element to represent
a null value for all data types.
|
abstract boolean |
allowXtype()
Indicates whether the xtype attribute is permitted on FIELD elements
etc in this version.
|
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.
|
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.
|
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 java.lang.String DEFAULT_VERSION_STRING
public static final java.lang.String VOTABLE_VERSION_PROP
DEFAULT_VERSION_STRING
(="1.3").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 toString()
toString
in class java.lang.Object
public abstract boolean allowEmptyTd()
public abstract boolean allowBinary2()
public abstract boolean allowXtype()
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.Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.