Package iu.type

Class FieldFacade<D,T>

Type Parameters:
D - declaring type
T - field type
All Implemented Interfaces:
IuAnnotatedElement, IuAttribute<D,T>, IuDeclaredElement<D>, IuField<D,T>, IuNamedElement<D>, DeclaredAttribute<D,T>

final class FieldFacade<D,T> extends DeclaredElementBase<D,Field> implements IuField<D,T>, DeclaredAttribute<D,T>
Facade implementation for IuField.
  • Constructor Details

    • FieldFacade

      FieldFacade(Field field, TypeTemplate<?,T> typeTemplate, TypeTemplate<?,D> declaringTypeTemplate)
      Facade constructor.
      Parameters:
      field - Field
      typeTemplate - fully realized TypeTemplate for a generic type whose erasure is the field type
      declaringTypeTemplate - fully realized TypeTemplate for a generic type whose erasure declared the field
  • Method Details

    • type

      public TypeFacade<?,T> type()
      Description copied from interface: IuAttribute
      Gets the type.
      Specified by:
      type in interface DeclaredAttribute<D,T>
      Specified by:
      type in interface IuAttribute<D,T>
      Returns:
      type
    • name

      public String name()
      Description copied from interface: IuNamedElement
      Gets the name.
      Specified by:
      name in interface IuNamedElement<D>
      Returns:
      name
    • get

      public T get(Object o)
      Description copied from interface: IuAttribute
      Gets the attribute value.
      Specified by:
      get in interface IuAttribute<D,T>
      Parameters:
      o - object
      Returns:
      attribute value.
    • set

      public void set(Object o, T value)
      Description copied from interface: IuAttribute
      Gets the attribute value.
      Specified by:
      set in interface IuAttribute<D,T>
      Parameters:
      o - object
      value - attribute value
    • serializable

      public boolean serializable()
      Description copied from interface: IuAttribute
      Determines whether or not the attribute should be included when serializing declaring type.

      Note that is check has nothing to do with the Serializable interface or any of its related types or behaviors. Java serialization streams should not be used by applications, and will not be supported by any IU Java Utilities or IU JEE modules.

      Serialization in this context refers to a back-end, cache, or configuration storage scenario, as a check to verify that an attribute may be retrieved if stored from the same version of the type.

      Specified by:
      serializable in interface IuAttribute<D,T>
      Returns:
      True if the attribute should be included in serialized form; else false
    • toString

      public String toString()
      Overrides:
      toString in class Object