Categories of annotations
by , 10-31-2011 at 04:57 PM (664 Views)
There are three categories of annotations namely Marker, Single-Value and Full annotation.
Let me present these one by one:
Marker annotations
There annotations have no variables. These are identified by name, with no additional data supplied. For example:
Code:
@SingleValueAnnotation
Single-value annotations
These are similar to markers, but also provide a single piece of data. You can only provide a single bit of data with these. For example:
Code:
Full annotationsJava Code:@SingleValueAnnotation("my data")
There have multiple data members. Annotations of this type won’t look quite so much like a normal Java method:
Java Code:@FullAnnotation(var1="data value 1", var2="data value 2", var3="data value 3")









Email Blog Entry
Size Reduced for Images in PDF &...
05-15-2013, 05:53 PM in Java Software