org.codehaus.aspectwerkz.annotation
Class UntypedAnnotationProxy

java.lang.Object
  extended byorg.codehaus.aspectwerkz.annotation.UntypedAnnotationProxy
All Implemented Interfaces:
Annotation, Serializable
Direct Known Subclasses:
AdviceAnnotationProxyBase, AspectAnnotationProxy, ExpressionAnnotationProxy, ImplementsAnnotationProxy, IntroduceAnnotationProxy

public class UntypedAnnotationProxy
extends Object
implements Annotation, Serializable

Untyped annotation proxy.

To be used with JavDoc-style, pure string based, one value only type of annotations.

Author:
Jonas Bonér , Alexandre Vasseur
See Also:
Serialized Form

Field Summary
protected  String m_name
          The name of the annotation.
protected  String m_value
          The full value of the annotation.
 
Constructor Summary
UntypedAnnotationProxy()
           
 
Method Summary
 String getName()
          Returns the name.
 String getValue()
          Returns the value.
 void initialize(String name, String value)
          Set the value of the annotation given its full representation as @Foo , lskdlksdl"k"lk"l.
 boolean isTyped()
          Checks if the annotation is typed or not.
 void setName(String name)
          Sets the name of the annotation, the '@[name]'.
 void setValue(String value)
          Sets the string single value of this untyped annotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_value

protected String m_value
The full value of the annotation.


m_name

protected String m_name
The name of the annotation.

Constructor Detail

UntypedAnnotationProxy

public UntypedAnnotationProxy()
Method Detail

getValue

public String getValue()
Returns the value.

Returns:
the value

getName

public String getName()
Returns the name.

Specified by:
getName in interface Annotation
Returns:

setName

public void setName(String name)
Sets the name of the annotation, the '@[name]'.

Specified by:
setName in interface Annotation
Parameters:
name -

setValue

public void setValue(String value)
Sets the string single value of this untyped annotation

Parameters:
value -

isTyped

public boolean isTyped()
Checks if the annotation is typed or not.

Specified by:
isTyped in interface Annotation
Returns:
boolean

initialize

public void initialize(String name,
                       String value)
Set the value of the annotation given its full representation as @Foo , lskdlksdl"k"lk"l.

Specified by:
initialize in interface Annotation
Parameters:
name -
value -


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.