Annotation Type FullVSRef


  • @Documented
    @Retention(RUNTIME)
    @Target(TYPE_USE)
    public @interface FullVSRef
    Annotation for a name space reference. It is used to as either a String-cast of an inline string or as a field or variable declaration of String type.

    Only 1 acceptable method pattern for this annotation.

    Example:

       public class MyVSListener
         {
         @FullVSRef private static final String myVirtualSpace = "module:/vs/myVirtualSpace";
         
         void someMethod(BaseVSEvent event)
           {
           ...
           VirtualSpace ns=event.getVirtualizedVirtualSpace((@FullVSRef String) "module:/vs/myVirtualSpace");
           
           // or
           
           VirtualSpace ns=event.getVirtualizedVirtualSpace(myVirtualSpace);
           ...
           }
         }
     

    Author:
    Christopher Mindus