eu.play_project.play_commons.constants
Enum Stream

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

public enum Stream
extends Enum<Stream>

Enum of stream identifiers (also used for topic names) commonly used in PLAY. Full stream IDs ending in #stream are used when creating metadata about streams, largely when describing the stream in RDF. Shorter IDs without this suffix are used for topics on the DSB which can be obtained by getTopicUri() and getTopicQName().


Enum Constant Summary
ActivityEventStream
           
ConsequenceEventStream
           
ContextualizedLatitudeFeed
           
ESRRecom
           
FacebookCepResults
           
FacebookStatusFeed
           
Friend_Geo_Event
           
PachubeFeed
           
ProximityInfoStream
           
ResourcesEventStream
           
SARRecom
           
SituationalAlertEventStream
           
SituationalEventStream
           
TaxiUCAnswer
           
TaxiUCCall
           
TaxiUCClic2Call
           
TaxiUCESRRecom
           
TaxiUCESRRecomDcep
           
TaxiUCFaceBook
           
TaxiUCGeoLocation
           
TaxiUCTwitter
           
TwitterFeed
           
VesselStream
           
VisualizationEventStream
           
 
Field Summary
static String STREAM_COMPLEXEVENTS
          Whether a stream has complex or not.
static String STREAM_DESCRIPTION
          The stream descriptions attribute.
static String STREAM_DSBNEEDSTOSUBSCRIBE
          Whether DSB needs to subscribe to the event cloud, i.e.
static String STREAM_ICON
          The stream icon attribute.
static String STREAM_ID_SUFFIX
          Stream IDs usually end in this special suffix (URI fragment identifier).
static String STREAM_TITLE
          The stream title attribute.
static String STREAM_TOPIC
          The fully qualified topic URI
 
Method Summary
 QName getQName()
           
 QName getTopicQName()
          Obtain short stream IDs for use with the DSB.
 String getTopicUri()
          Obtain short stream IDs for use with the DSB.
 String getUri()
           
 String toString()
           
static QName toTopicQName(QName streamId)
          Obtain short stream IDs for use with the DSB.
static String toTopicUri(String streamId)
          Obtain short stream IDs for use with the DSB.
static Stream valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Stream[] 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

FacebookStatusFeed

public static final Stream FacebookStatusFeed

FacebookCepResults

public static final Stream FacebookCepResults

PachubeFeed

public static final Stream PachubeFeed

TwitterFeed

public static final Stream TwitterFeed

SituationalEventStream

public static final Stream SituationalEventStream

SituationalAlertEventStream

public static final Stream SituationalAlertEventStream

ActivityEventStream

public static final Stream ActivityEventStream

ResourcesEventStream

public static final Stream ResourcesEventStream

ConsequenceEventStream

public static final Stream ConsequenceEventStream

VisualizationEventStream

public static final Stream VisualizationEventStream

ESRRecom

public static final Stream ESRRecom

SARRecom

public static final Stream SARRecom

VesselStream

public static final Stream VesselStream

ProximityInfoStream

public static final Stream ProximityInfoStream

TaxiUCCall

public static final Stream TaxiUCCall

TaxiUCClic2Call

public static final Stream TaxiUCClic2Call

TaxiUCFaceBook

public static final Stream TaxiUCFaceBook

TaxiUCGeoLocation

public static final Stream TaxiUCGeoLocation

TaxiUCTwitter

public static final Stream TaxiUCTwitter

ContextualizedLatitudeFeed

public static final Stream ContextualizedLatitudeFeed

TaxiUCESRRecom

public static final Stream TaxiUCESRRecom

TaxiUCESRRecomDcep

public static final Stream TaxiUCESRRecomDcep

Friend_Geo_Event

public static final Stream Friend_Geo_Event

TaxiUCAnswer

public static final Stream TaxiUCAnswer
Field Detail

STREAM_ID_SUFFIX

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

See Also:
Constant Field Values

STREAM_TITLE

public static final String STREAM_TITLE
The stream title attribute. Values should be 30 characters max.

See Also:
Constant Field Values

STREAM_DESCRIPTION

public static final String STREAM_DESCRIPTION
The stream descriptions attribute.

See Also:
Constant Field Values

STREAM_ICON

public static final String STREAM_ICON
The stream icon attribute. Value should be a uri to the image. Size should be like a favicon.

See Also:
Constant Field Values

STREAM_TOPIC

public static final String STREAM_TOPIC
The fully qualified topic URI

See Also:
Constant Field Values

STREAM_COMPLEXEVENTS

public static final String STREAM_COMPLEXEVENTS
Whether a stream has complex or not. Defaults to false. Boolean.

See Also:
Constant Field Values

STREAM_DSBNEEDSTOSUBSCRIBE

public static final String STREAM_DSBNEEDSTOSUBSCRIBE
Whether DSB needs to subscribe to the event cloud, i.e. EC->DSB. Defaults to false (DSB->EC). Boolean.

See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

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

getQName

public QName getQName()

getUri

public String getUri()

getTopicUri

public String getTopicUri()
Obtain short stream IDs for use with the DSB. This representation omits the trailing #stream suffix.


toTopicUri

public static String toTopicUri(String streamId)
Obtain short stream IDs for use with the DSB. This representation omits the trailing #stream suffix.


getTopicQName

public QName getTopicQName()
Obtain short stream IDs for use with the DSB. This representation omits the trailing #stream suffix.


toTopicQName

public static QName toTopicQName(QName streamId)
Obtain short stream IDs for use with the DSB. This representation omits the trailing #stream suffix.


toString

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


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