com.agimatec.annotations.jam
Class JAMTestAnnotatedElement

java.lang.Object
  extended by com.agimatec.annotations.jam.JAMTestAnnotatedElement
Direct Known Subclasses:
JAMTestClass, JAMTestMethod

public abstract class JAMTestAnnotatedElement
extends Object

Description:
User: roman.stumm
Date: 08.06.2007
Time: 12:10:31
Copyright: Agimatec GmbH


Constructor Summary
JAMTestAnnotatedElement()
           
 
Method Summary
protected abstract  org.codehaus.jam.JAnnotatedElement element()
           
protected static org.codehaus.jam.JField findField(org.codehaus.jam.JClass rootCls, String each)
           
protected static org.codehaus.jam.JField findField(org.codehaus.jam.JField root, String each)
           
 JAMAnnotation getAnnotation(String anno)
           
 String getComment()
           
abstract  String getName()
           
 JAMAnnotation getTestAnnotation()
          the first active Test annotation or null
 JAMAnnotation[] getTestAnnotations()
          all active Test annotations or null
abstract  JAMTestClass getTestClass()
           
abstract  String getType()
           
abstract  String getType(String testPath)
           
abstract  org.codehaus.jam.JClass getTypeJClass()
           
protected  boolean isCurrentlyActive(JAMAnnotation ja)
           
 boolean isTestCurrentlyActive()
           
protected abstract  String multiAnnotation()
           
protected abstract  String singleAnnotation()
           
protected  String stringValue(String v, String defaultValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JAMTestAnnotatedElement

public JAMTestAnnotatedElement()
Method Detail

getName

public abstract String getName()

getType

public abstract String getType()

getTypeJClass

public abstract org.codehaus.jam.JClass getTypeJClass()

getTestClass

public abstract JAMTestClass getTestClass()

getAnnotation

public JAMAnnotation getAnnotation(String anno)

element

protected abstract org.codehaus.jam.JAnnotatedElement element()

stringValue

protected String stringValue(String v,
                             String defaultValue)

getComment

public String getComment()

isCurrentlyActive

protected boolean isCurrentlyActive(JAMAnnotation ja)

getTestAnnotation

public JAMAnnotation getTestAnnotation()
the first active Test annotation or null

Returns:

getTestAnnotations

public JAMAnnotation[] getTestAnnotations()
all active Test annotations or null

Returns:

singleAnnotation

protected abstract String singleAnnotation()

multiAnnotation

protected abstract String multiAnnotation()

isTestCurrentlyActive

public boolean isTestCurrentlyActive()

toString

public String toString()
Overrides:
toString in class Object

getType

public abstract String getType(String testPath)

findField

protected static org.codehaus.jam.JField findField(org.codehaus.jam.JField root,
                                                   String each)

findField

protected static org.codehaus.jam.JField findField(org.codehaus.jam.JClass rootCls,
                                                   String each)


Copyright © 2008-2013. All Rights Reserved.