- Type Parameters:
D- declaring typeT- 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.-
Field Summary
Fields inherited from class iu.type.DeclaredElementBase
declaringTypeFields inherited from class iu.type.AnnotatedElementBase
annotatedElement -
Constructor Summary
ConstructorsConstructorDescriptionFieldFacade(Field field, TypeTemplate<?, T> typeTemplate, TypeTemplate<?, D> declaringTypeTemplate) Facade constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the attribute value.name()Gets the name.booleanDetermines whether or not the attribute should be included when serializing declaring type.voidGets the attribute value.toString()TypeFacade<?, T> type()Gets the type.Methods inherited from class iu.type.DeclaredElementBase
declaringTypeMethods inherited from class iu.type.AnnotatedElementBase
annotation, annotations, hasAnnotation, permittedMethods inherited from class iu.type.ElementBase
checkSealed, postInit, sealMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface iu.type.DeclaredAttribute
declaringTypeMethods inherited from interface edu.iu.type.IuAnnotatedElement
annotation, annotations, hasAnnotation, permitted, permitted
-
Constructor Details
-
FieldFacade
FieldFacade(Field field, TypeTemplate<?, T> typeTemplate, TypeTemplate<?, D> declaringTypeTemplate) Facade constructor.- Parameters:
field-FieldtypeTemplate- fully realizedTypeTemplatefor a generic type whose erasure is the field typedeclaringTypeTemplate- fully realizedTypeTemplatefor a generic type whose erasure declared the field
-
-
Method Details
-
type
Description copied from interface:IuAttributeGets the type.- Specified by:
typein interfaceDeclaredAttribute<D,T> - Specified by:
typein interfaceIuAttribute<D,T> - Returns:
- type
-
name
Description copied from interface:IuNamedElementGets the name.- Specified by:
namein interfaceIuNamedElement<D>- Returns:
- name
-
get
Description copied from interface:IuAttributeGets the attribute value.- Specified by:
getin interfaceIuAttribute<D,T> - Parameters:
o- object- Returns:
- attribute value.
-
set
Description copied from interface:IuAttributeGets the attribute value.- Specified by:
setin interfaceIuAttribute<D,T> - Parameters:
o- objectvalue- attribute value
-
serializable
public boolean serializable()Description copied from interface:IuAttributeDetermines whether or not the attribute should be included when serializing declaring type.Note that is check has nothing to do with the
Serializableinterface 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:
serializablein interfaceIuAttribute<D,T> - Returns:
- True if the attribute should be included in serialized form; else false
-
toString
-