Package org.graphstream.stream
Annotation Type AnnotatedSink.Bind
- Enclosing class:
- AnnotatedSink
@Documented @Retention(RUNTIME) @Target(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
@Bind(value = "test", type = ElementType.NODE)will be triggered the annotated method when receiving 'nodeAttributeXXX()' methods.
-
Required Element Summary
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description SourceBase.ElementTypetypeType of element that triggered the annotated method.
-
Element Details
-
value
String valueName of the attribute key that triggered the annotated method.- Returns:
- an attribute key
-
-
-
type
Type of element that triggered the annotated method. Default is GRAPH.- Returns:
- type of element in GRAPH, NODE or EDGE
- Default:
- GRAPH
-