Categories of annotations

17 July 2008

I will write about categories of annotations in this post.

Marker annotations have no variables. These are identified by name, with no additional data supplied. For example:

@SingleValueAnnotation

Single-value annotations 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:

@SingleValueAnnotation("my data")

Full annotations have multiple data members. Annotations of this type won’t look quite so much like a normal Java method:

@FullAnnotation(var1="data value 1", var2="data value 2", var3="data value 3")

del.icio.us:Categories of annotations  digg:Categories of annotations  spurl:Categories of annotations  wists:Categories of annotations  simpy:Categories of annotations  newsvine:Categories of annotations  blinklist:Categories of annotations  furl:Categories of annotations  reddit:Categories of annotations  fark:Categories of annotations  blogmarks:Categories of annotations  Y!:Categories of annotations  smarking:Categories of annotations  magnolia:Categories of annotations  segnalo:Categories of annotations  gifttagging:Categories of annotations

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Categories of annotations

Leave a Reply