verinec.util
Class VerinecNamespaces

java.lang.Object
  extended by verinec.util.VerinecNamespaces

public class VerinecNamespaces
extends Object

Defines constants for the namespaces used in the Verinec application.

Provides the url for the namespaces/schemas and Namespace objects with prefixes for all those namespaces.

If you need to use one of the namespaces as default namespace, or with an other prefix, use the org.jdom.Namespace.getNamespace(uri) method with one of the SCHEMA_ strings.

Version:
$Revision: 47 $
Author:
david.buchmann at unifr.ch

Field Summary
static String BASE_ADDRESS
          Base for Schema Namespaces and Schema Locations
static Namespace DEFNS_NODE
          The nodes namespace as default namespace.
static Namespace NS_CONFIGURATION
          The configuration namespace, prefix conf.
static Namespace NS_EVENTS
          The events namespaces, prefix evt.
static Namespace NS_GUI
          The gui metadata namespace, prefix gui.
static Namespace NS_NETWORK
          The networks namespace, prefix nw.
static Namespace NS_NODE
          The nodes namespace, prefix vn.
static Namespace NS_RESTRICTION
          The restriction namespace, prefix res.
static Namespace NS_SCHEMAINSTANCE
          Schema instance namespace, prefix xsi
static Namespace NS_TRANSLATION
          The translation metadata namespace, prefix tr.
static String SCHEMA_CONFIGURATION
          Schema Namespace for the translator output: http://diuf.unifr.ch/tns/projects/verinec/configuration
static String SCHEMA_EVENTS
          Schema Namespace for the simulator input/output: http://diuf.unifr.ch/tns/projects/verinec/events
static String SCHEMA_GUI
          Schema Namespace for the GUI metadata: http://diuf.unifr.ch/tns/projects/verinec/gui
static String SCHEMA_NETWORK
          Schema Namespace for networks: http://diuf.unifr.ch/tns/projects/verinec/network
static String SCHEMA_NODE
          Schema Namespace for nodes: http://diuf.unifr.ch/tns/projects/verinec/node
static String SCHEMA_RESTRICTION
          Schema Namespace for the translator restriction information: http://diuf.unifr.ch/tns/projects/verinec/restriction
static String SCHEMA_SCHEMAINSTANCE
          Schema instance namespace (and URL)
static String SCHEMA_TRANSLATION
          Schema Namespace for translation metadata: http://diuf.unifr.ch/tns/projects/verinec/translation
static String schemaLocationAttrString
          xmlns:xsi and xsi:schemaLocation attribute value to define all schemas.
static String schemaLocations
          List of all schema namespaces and schema locations, ready for xsi:schemaLocation attribute.
static String URL_CONFIGURATION
          Schema Location URL for the translator output: http://diuf.unifr.ch/tns/projects/verinec/configuration.xsd
static String URL_EVENTS
          Schema Location URL for the simulator input/output: http://diuf.unifr.ch/tns/projects/verinec/events.xsd
static String URL_GUI
          Schema Location URL for the GUI metadata: http://diuf.unifr.ch/tns/projects/verinec/gui.xsd
static String URL_NETWORK
          Schema Location URL for networks: http://diuf.unifr.ch/tns/projects/verinec/network.xsd
static String URL_NODE
          Schema Location URL for nodes: http://diuf.unifr.ch/tns/projects/verinec/node.xsd
static String URL_RESTRICTION
          Schema Location URL for the translator restriction information: http://diuf.unifr.ch/tns/projects/verinec/restriction.xsd
static String URL_TRANSLATION
          Schema Location URL for translation metadata: http://diuf.unifr.ch/tns/projects/verinec/translation.xsd
 
Constructor Summary
private VerinecNamespaces()
          Do not instantiate VerinecNamespaces, it contains only static constants.
 
Method Summary
static Attribute getSchemaLocationAttribute()
          The JDOM Attribute for the schema locations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_ADDRESS

public static final String BASE_ADDRESS
Base for Schema Namespaces and Schema Locations

See Also:
Constant Field Values

SCHEMA_NODE

public static final String SCHEMA_NODE
Schema Namespace for nodes: http://diuf.unifr.ch/tns/projects/verinec/node

See Also:
Constant Field Values

SCHEMA_NETWORK

public static final String SCHEMA_NETWORK
Schema Namespace for networks: http://diuf.unifr.ch/tns/projects/verinec/network

See Also:
Constant Field Values

SCHEMA_GUI

public static final String SCHEMA_GUI
Schema Namespace for the GUI metadata: http://diuf.unifr.ch/tns/projects/verinec/gui

See Also:
Constant Field Values

SCHEMA_EVENTS

public static final String SCHEMA_EVENTS
Schema Namespace for the simulator input/output: http://diuf.unifr.ch/tns/projects/verinec/events

See Also:
Constant Field Values

SCHEMA_TRANSLATION

public static final String SCHEMA_TRANSLATION
Schema Namespace for translation metadata: http://diuf.unifr.ch/tns/projects/verinec/translation

See Also:
Constant Field Values

SCHEMA_CONFIGURATION

public static final String SCHEMA_CONFIGURATION
Schema Namespace for the translator output: http://diuf.unifr.ch/tns/projects/verinec/configuration

See Also:
Constant Field Values

SCHEMA_RESTRICTION

public static final String SCHEMA_RESTRICTION
Schema Namespace for the translator restriction information: http://diuf.unifr.ch/tns/projects/verinec/restriction

See Also:
Constant Field Values

URL_NODE

public static final String URL_NODE
Schema Location URL for nodes: http://diuf.unifr.ch/tns/projects/verinec/node.xsd

See Also:
Constant Field Values

URL_NETWORK

public static final String URL_NETWORK
Schema Location URL for networks: http://diuf.unifr.ch/tns/projects/verinec/network.xsd

See Also:
Constant Field Values

URL_GUI

public static final String URL_GUI
Schema Location URL for the GUI metadata: http://diuf.unifr.ch/tns/projects/verinec/gui.xsd

See Also:
Constant Field Values

URL_EVENTS

public static final String URL_EVENTS
Schema Location URL for the simulator input/output: http://diuf.unifr.ch/tns/projects/verinec/events.xsd

See Also:
Constant Field Values

URL_TRANSLATION

public static final String URL_TRANSLATION
Schema Location URL for translation metadata: http://diuf.unifr.ch/tns/projects/verinec/translation.xsd

See Also:
Constant Field Values

URL_CONFIGURATION

public static final String URL_CONFIGURATION
Schema Location URL for the translator output: http://diuf.unifr.ch/tns/projects/verinec/configuration.xsd

See Also:
Constant Field Values

URL_RESTRICTION

public static final String URL_RESTRICTION
Schema Location URL for the translator restriction information: http://diuf.unifr.ch/tns/projects/verinec/restriction.xsd

See Also:
Constant Field Values

DEFNS_NODE

public static final Namespace DEFNS_NODE
The nodes namespace as default namespace. Used for the node definition.


NS_NODE

public static final Namespace NS_NODE
The nodes namespace, prefix vn. Might be of use somewhere.


NS_NETWORK

public static final Namespace NS_NETWORK
The networks namespace, prefix nw. Used for the network definition.


NS_GUI

public static final Namespace NS_GUI
The gui metadata namespace, prefix gui. Used for extra information for the GUI in the nodes namespace.


NS_EVENTS

public static final Namespace NS_EVENTS
The events namespaces, prefix evt. Used as input and output of the simulation.


NS_TRANSLATION

public static final Namespace NS_TRANSLATION
The translation metadata namespace, prefix tr. Used for extra information for translation in the nodes namespace.


NS_CONFIGURATION

public static final Namespace NS_CONFIGURATION
The configuration namespace, prefix conf. Used for the output of translations.


NS_RESTRICTION

public static final Namespace NS_RESTRICTION
The restriction namespace, prefix res. Used for the output of restriction information.


SCHEMA_SCHEMAINSTANCE

public static final String SCHEMA_SCHEMAINSTANCE
Schema instance namespace (and URL)

See Also:
Constant Field Values

NS_SCHEMAINSTANCE

public static final Namespace NS_SCHEMAINSTANCE
Schema instance namespace, prefix xsi


schemaLocations

public static final String schemaLocations
List of all schema namespaces and schema locations, ready for xsi:schemaLocation attribute.

See Also:
Constant Field Values

schemaLocationAttrString

public static final String schemaLocationAttrString
xmlns:xsi and xsi:schemaLocation attribute value to define all schemas. Must be included in all root elements.

See Also:
Constant Field Values
Constructor Detail

VerinecNamespaces

private VerinecNamespaces()
Do not instantiate VerinecNamespaces, it contains only static constants.

Method Detail

getSchemaLocationAttribute

public static Attribute getSchemaLocationAttribute()
The JDOM Attribute for the schema locations. (This is a method because we need each time a new instance.)

Returns:
A fresh attribute to add to a node.

Copyright © 2005 Verinec, DIUF