eu.play_project.play_commons.constants
Enum Source

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

public enum Source
extends Enum<Source>

Enum of event source identifiers commonly used in PLAY. The source IDs usually end in #source and are used when creating metadata about streams, largely when describing the stream in RDF.

Author:
stuehmer

Enum Constant Summary
Dcep
           
FacebookAdapter
           
PachubeAdapter
           
TwitterAdapter
           
WebApp
           
 
Field Summary
static String SOURCE_ID_SUFFIX
          Source IDs usually end in this special suffix (URI fragment identifier).
 
Method Summary
 String toString()
           
static Source valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Source[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Dcep

public static final Source Dcep

WebApp

public static final Source WebApp

FacebookAdapter

public static final Source FacebookAdapter

TwitterAdapter

public static final Source TwitterAdapter

PachubeAdapter

public static final Source PachubeAdapter
Field Detail

SOURCE_ID_SUFFIX

public static final String SOURCE_ID_SUFFIX
Source IDs usually end in this special suffix (URI fragment identifier).

See Also:
Constant Field Values
Method Detail

values

public static Source[] 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 (Source c : Source.values())
    System.out.println(c);

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

valueOf

public static Source 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

toString

public String toString()
Overrides:
toString in class Enum<Source>


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