org.jvnet.annox.model
Class XAnnotationField.XFixedField<T>

java.lang.Object
  extended by org.jvnet.annox.model.XAnnotationField<T>
      extended by org.jvnet.annox.model.XAnnotationField.XField<T>
          extended by org.jvnet.annox.model.XAnnotationField.XFixedField<T>
Type Parameters:
T - Type of the field.
Direct Known Subclasses:
XAnnotationField.XAnnotation, XAnnotationField.XBoolean, XAnnotationField.XByte, XAnnotationField.XChar, XAnnotationField.XDouble, XAnnotationField.XEnum, XAnnotationField.XFloat, XAnnotationField.XInt, XAnnotationField.XLong, XAnnotationField.XShort, XAnnotationField.XString
Enclosing class:
XAnnotationField<T>

public abstract static class XAnnotationField.XFixedField<T>
extends XAnnotationField.XField<T>

Annotation field with a fixed value.

Author:
Aleksei Valikov

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.XFixedField(String name, T value)
          Constructs a field with the fixed value.
 
Method Summary
 T getValue()
          Returns the fixed 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
accept, getInternalValue, getName, getResult, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAnnotationField.XFixedField

public XAnnotationField.XFixedField(String name,
                                    T value)
Constructs a field with the fixed value.

Parameters:
name - name of the field.
value - value of the field.
Method Detail

getValue

public T getValue()
Returns the fixed value of the field.

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


Copyright © 2006-2012 Highsource. All Rights Reserved.