org.graphstream.stream
Annotation Type AnnotatedSink.Bind


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public static @interface AnnotatedSink.Bind

Annotation used to bind an event to a method. This bind is composed of a name (the attribute key) and an element type. For example, the annotation


Required Element Summary
 String value
          Name of the attribute key that triggered the annotated method.
 
Optional Element Summary
 SourceBase.ElementType type
          Type of element that triggered the annotated method.
 

Element Detail

value

public abstract String value
Name of the attribute key that triggered the annotated method.

Returns:
an attribute key

type

public abstract SourceBase.ElementType type
Type of element that triggered the annotated method. Default is GRAPH.

Returns:
type of element in GRAPH, NODE or EDGE
Default:
org.graphstream.stream.SourceBase.ElementType.GRAPH


Copyright © 2012. All Rights Reserved.