org.jvnet.annox.model
Class XAnnotationField.XClass

java.lang.Object
  extended by org.jvnet.annox.model.XAnnotationField<T>
      extended by org.jvnet.annox.model.XAnnotationField.XField<Class>
          extended by org.jvnet.annox.model.XAnnotationField.XClass
Enclosing class:
XAnnotationField<T>

public static class XAnnotationField.XClass
extends XAnnotationField.XField<Class>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.annox.model.XAnnotationField
XAnnotationField.XAnnotation, XAnnotationField.XAnnotationArray, XAnnotationField.XArrayField<T>, XAnnotationField.XBoolean, XAnnotationField.XBooleanArray, XAnnotationField.XByte, XAnnotationField.XByteArray, XAnnotationField.XChar, XAnnotationField.XCharArray, XAnnotationField.XClass, XAnnotationField.XClassArray, XAnnotationField.XDouble, XAnnotationField.XDoubleArray, XAnnotationField.XEnum, XAnnotationField.XEnumArray, XAnnotationField.XField<T>, XAnnotationField.XFixedArrayField<T>, XAnnotationField.XFixedField<T>, XAnnotationField.XFloat, XAnnotationField.XFloatArray, XAnnotationField.XInt, XAnnotationField.XIntArray, XAnnotationField.XLong, XAnnotationField.XLongArray, XAnnotationField.XShort, XAnnotationField.XShortArray, XAnnotationField.XString, XAnnotationField.XStringArray
 
Constructor Summary
XAnnotationField.XClass(String name, Class theClass)
           
XAnnotationField.XClass(String name, String className)
           
 
Method Summary
<T> T
accept(XAnnotationVisitor<T> visitor)
          Accepts the annotation visitor.
 String getClassName()
           
protected  Object getInternalValue()
          Returns the internal value of the field used for Object.hashCode(), Object.equals(Object) and Object.toString() operations.
 Class<?> getType()
          Return the type of the field.
 Class getValue()
          Returns the value of the field.
 
Methods inherited from class org.jvnet.annox.model.XAnnotationField.XField
equals, hashCode, toString
 
Methods inherited from class org.jvnet.annox.model.XAnnotationField
getName, getResult
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAnnotationField.XClass

public XAnnotationField.XClass(String name,
                               Class theClass)

XAnnotationField.XClass

public XAnnotationField.XClass(String name,
                               String className)
Method Detail

getClassName

public String getClassName()

getType

public Class<?> getType()
Description copied from class: XAnnotationField
Return the type of the field.

Specified by:
getType in class XAnnotationField<Class>
Returns:
Type of the field.

accept

public <T> T accept(XAnnotationVisitor<T> visitor)
Description copied from class: XAnnotationField
Accepts the annotation visitor.

Specified by:
accept in class XAnnotationField<Class>
Type Parameters:
T - Return type of the visitor.
Parameters:
visitor - visitor to accept.
Returns:
Result of the visit.

getInternalValue

protected Object getInternalValue()
Description copied from class: XAnnotationField
Returns the internal value of the field used for Object.hashCode(), Object.equals(Object) and Object.toString() operations. Defaults to the value of the field.

Overrides:
getInternalValue in class XAnnotationField<Class>
Returns:
Returns the value of the field.

getValue

public Class getValue()
Description copied from class: XAnnotationField
Returns the value of the field.

Specified by:
getValue in class XAnnotationField<Class>
Returns:
Value of the field.


Copyright © 2006-2011 Highsource. All Rights Reserved.