- 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
declaringType
Fields 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.boolean
Determines whether or not the attribute should be included when serializing declaring type.void
Gets the attribute value.toString()
TypeFacade
<?, T> type()
Gets the type.Methods inherited from class iu.type.DeclaredElementBase
declaringType
Methods inherited from class iu.type.AnnotatedElementBase
annotation, annotations, hasAnnotation, permitted
Methods inherited from class iu.type.ElementBase
checkSealed, postInit, seal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface iu.type.DeclaredAttribute
declaringType
Methods 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
-Field
typeTemplate
- fully realizedTypeTemplate
for a generic type whose erasure is the field typedeclaringTypeTemplate
- fully realizedTypeTemplate
for a generic type whose erasure declared the field
-
-
Method Details
-
type
Description copied from interface:IuAttribute
Gets the type.- Specified by:
type
in interfaceDeclaredAttribute<D,
T> - Specified by:
type
in interfaceIuAttribute<D,
T> - Returns:
- type
-
name
Description copied from interface:IuNamedElement
Gets the name.- Specified by:
name
in interfaceIuNamedElement<D>
- Returns:
- name
-
get
Description copied from interface:IuAttribute
Gets the attribute value.- Specified by:
get
in interfaceIuAttribute<D,
T> - Parameters:
o
- object- Returns:
- attribute value.
-
set
Description copied from interface:IuAttribute
Gets the attribute value.- Specified by:
set
in interfaceIuAttribute<D,
T> - Parameters:
o
- objectvalue
- 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 interfaceIuAttribute<D,
T> - Returns:
- True if the attribute should be included in serialized form; else false
-
toString
-