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

java.lang.Object
  extended by org.jvnet.annox.model.XAnnotationField<T[]>
      extended by org.jvnet.annox.model.XAnnotationField.XArrayField<T>
Type Parameters:
T - Type of the array element.
Direct Known Subclasses:
XAnnotationField.XClassArray, XAnnotationField.XFixedArrayField
Enclosing class:
XAnnotationField<T>

public abstract static class XAnnotationField.XArrayField<T>
extends XAnnotationField<T[]>

Defines an array field.

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.XArrayField(String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 Object[] getInternalValue()
          Returns the internal value of the field used for Object.hashCode(), Object.equals(Object) and Object.toString() operations.
 Object getResult()
          Returns the result value of the field.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jvnet.annox.model.XAnnotationField
accept, getName, getType, getValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAnnotationField.XArrayField

public XAnnotationField.XArrayField(String name)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getInternalValue

public 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<T[]>
Returns:
Returns the value of the field.

getResult

public Object getResult()
Description copied from class: XAnnotationField
Returns the result value of the field. By default, returns the value of the field.

Overrides:
getResult in class XAnnotationField<T[]>
Returns:
Result value of the field.


Copyright © 2006-2011 Highsource. All Rights Reserved.