|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.votable.VOTableVersion
public abstract class VOTableVersion
Provides characteristics for a given version of the VOTable standard.
An instance of this class is passed to a VOTableWriter
to
indicate what version of the standard should be followed when generating
VOTable output.
Field Summary | |
---|---|
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 VOTableVersion |
V14
VOTable 1.4. |
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. |
Constructor Summary | |
---|---|
protected |
VOTableVersion(java.lang.String versionNumber)
Constructor. |
Method Summary | |
---|---|
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 |
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)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 java.lang.String DEFAULT_VERSION_STRING
public static final java.lang.String VOTABLE_VERSION_PROP
DEFAULT_VERSION_STRING
(="1.3").
Constructor Detail |
---|
protected VOTableVersion(java.lang.String versionNumber)
versionNumber
- the number (like "1.1") identifying this versionMethod Detail |
---|
public 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 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 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |