eu.play_project.play_commons.constants
Enum Namespace

java.lang.Object
  extended by java.lang.Enum<Namespace>
      extended by eu.play_project.play_commons.constants.Namespace
All Implemented Interfaces:
Serializable, Comparable<Namespace>

public enum Namespace
extends Enum<Namespace>

Enum of namespaces commonly used in PLAY events.


Enum Constant Summary
ESR
           
EVENTS
           
GEO
           
RDF
           
SIOC
           
SOURCE
           
STREAMS
           
TYPES
           
UCCRISIS
           
UCTELCO
           
USER
           
XSD_NS
           
 
Method Summary
 String getPrefix()
           
 String getUri()
           
static Namespace valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Namespace[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TYPES

public static final Namespace TYPES

EVENTS

public static final Namespace EVENTS

STREAMS

public static final Namespace STREAMS

SOURCE

public static final Namespace SOURCE

UCCRISIS

public static final Namespace UCCRISIS

UCTELCO

public static final Namespace UCTELCO

ESR

public static final Namespace ESR

XSD_NS

public static final Namespace XSD_NS

RDF

public static final Namespace RDF

GEO

public static final Namespace GEO

USER

public static final Namespace USER

SIOC

public static final Namespace SIOC
Method Detail

values

public static Namespace[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Namespace c : Namespace.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Namespace valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getUri

public String getUri()

getPrefix

public String getPrefix()


Copyright © 2010-2013 OW2 Consortium. All Rights Reserved.