XES - Programmers Guide - nodeAnnotation

Annotations associate meta-information with definitions.

Java

/**
* annotation definition
*/
public @interface myAnnotation {
int id();
String string1();
String string2() default "[unassigned]";
String string3(); default "[unimplemented]";
}

using annotation we specify name-value pairs:

@myAnnotation(
id = 44464,
string1 = "abc",
string2 = "def",
string3 = "hfg"
)
public static void myClass(int value) { ... }

Scala

 


metadata block
see also:

 

Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.