|
|||||||||
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 String |
DEFAULT_VERSION_STRING
Default VOTable version number which output will conform to if not otherwise specified ("1.2"). |
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 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(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 |
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 String |
getDoctypeDeclaration()
Returns the text of the DOCTYPE XML declaration for this version. |
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 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. |
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 String DEFAULT_VERSION_STRING
public static final String VOTABLE_VERSION_PROP
DEFAULT_VERSION_STRING
(="1.2").
Constructor Detail |
---|
protected VOTableVersion(String versionNumber)
versionNumber
- the number (like "1.1") identifying this versionMethod Detail |
---|
public String getVersionNumber()
public abstract String getXmlNamespace()
public abstract String getSchemaLocation()
public abstract Schema getSchema()
getSchemaLocation()
returns non-null.
public abstract String getDoctypeDeclaration()
public abstract URL getDtdUrl()
getDoctypeDeclaration()
returns non-null.
public String toString()
toString
in class Object
public abstract boolean allowEmptyTd()
public abstract boolean allowBinary2()
public abstract boolean allowXtype()
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 © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |