ua.gradsoft.javachecker.models
Class JavaDelegatedAnnotationInstanceModel

java.lang.Object
  extended by ua.gradsoft.javachecker.models.JavaAnnotationInstanceModel
      extended by ua.gradsoft.javachecker.models.JavaDelegatedAnnotationInstanceModel

public class JavaDelegatedAnnotationInstanceModel
extends JavaAnnotationInstanceModel

Author:
rssh

Field Summary
 
Fields inherited from class ua.gradsoft.javachecker.models.JavaAnnotationInstanceModel
elementType_, target_
 
Constructor Summary
JavaDelegatedAnnotationInstanceModel(JavaAnnotationInstanceModel origin, java.lang.Object newTarget)
          Creates a new instance of JavaDelegatedAnnotationInstanceModel
 
Method Summary
 JavaTypeModel getAnnotationModel()
           
 JavaExpressionModel getElement(java.lang.String elementName)
          expression, which is defined in annotations.
 java.util.Map<java.lang.String,JavaExpressionModel> getElements()
          Map, which contains declared fields.
 Term getModelTerm()
           
 boolean hasElement(java.lang.String elementName)
          true, if element whith name elementName is provided in this annotation
 
Methods inherited from class ua.gradsoft.javachecker.models.JavaAnnotationInstanceModel
getRetentionPolicy, getTargetAnnotationTypeModel, getTargetConstructorModel, getTargetElementType, getTargetFieldModel, getTargetFormalParameterModel, getTargetLocalVariableModel, getTargetMethodModel, getTargetTypeModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaDelegatedAnnotationInstanceModel

public JavaDelegatedAnnotationInstanceModel(JavaAnnotationInstanceModel origin,
                                            java.lang.Object newTarget)
Creates a new instance of JavaDelegatedAnnotationInstanceModel

Method Detail

getAnnotationModel

public JavaTypeModel getAnnotationModel()
                                 throws TermWareException,
                                        EntityNotFoundException
Specified by:
getAnnotationModel in class JavaAnnotationInstanceModel
Throws:
TermWareException
EntityNotFoundException

getModelTerm

public Term getModelTerm()
                  throws TermWareException,
                         EntityNotFoundException
Specified by:
getModelTerm in class JavaAnnotationInstanceModel
Throws:
TermWareException
EntityNotFoundException

hasElement

public boolean hasElement(java.lang.String elementName)
                   throws TermWareException
Description copied from class: JavaAnnotationInstanceModel
true, if element whith name elementName is provided in this annotation

Specified by:
hasElement in class JavaAnnotationInstanceModel
Throws:
TermWareException

getElement

public JavaExpressionModel getElement(java.lang.String elementName)
                               throws NotSupportedException,
                                      TermWareException
Description copied from class: JavaAnnotationInstanceModel
expression, which is defined in annotations.

Specified by:
getElement in class JavaAnnotationInstanceModel
Throws:
NotSupportedException
TermWareException

getElements

public java.util.Map<java.lang.String,JavaExpressionModel> getElements()
                                                                throws TermWareException
Description copied from class: JavaAnnotationInstanceModel
Map, which contains declared fields.

Specified by:
getElements in class JavaAnnotationInstanceModel
Throws:
TermWareException