java.lang.Object
iu.type.ElementBase
iu.type.PropertyFacade<D,T>
- Type Parameters:
D
- declaring typeT
- property type
- All Implemented Interfaces:
IuAnnotatedElement
,IuAttribute<D,
,T> IuDeclaredElement<D>
,IuNamedElement<D>
,IuProperty<D,
,T> DeclaredAttribute<D,
T>
final class PropertyFacade<D,T>
extends ElementBase
implements IuProperty<D,T>, DeclaredAttribute<D,T>
Facade implementation of
IuProperty
.-
Constructor Summary
ConstructorsConstructorDescriptionPropertyFacade
(PropertyDescriptor propertyDescriptor, TypeTemplate<?, T> typeTemplate, TypeTemplate<?, D> declaringTypeTemplate) Facade constructor. -
Method Summary
Modifier and TypeMethodDescriptionTypeFacade
<?, D> Gets the declaring type.Gets the attribute value.name()
Gets the name.read()
Gets a facade describing the property read method.void
Gets the attribute value.toString()
TypeFacade
<?, T> type()
Gets the type.write()
Gets a facade describing the property write method.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 edu.iu.type.IuAnnotatedElement
permitted
Methods inherited from interface edu.iu.type.IuProperty
annotation, annotations, canRead, canWrite, hasAnnotation, permitted, printSafe, serializable
-
Constructor Details
-
PropertyFacade
PropertyFacade(PropertyDescriptor propertyDescriptor, TypeTemplate<?, T> typeTemplate, TypeTemplate<?, D> declaringTypeTemplate) Facade constructor.- Parameters:
propertyDescriptor
- property descriptortypeTemplate
- fully realizedTypeTemplate
for a generic type whose erasure is the property typedeclaringTypeTemplate
- fully realizedTypeTemplate
for a generic type whose erasure declared the property
-
-
Method Details
-
name
Description copied from interface:IuNamedElement
Gets the name.- Specified by:
name
in interfaceIuNamedElement<D>
- Returns:
- name
-
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
-
declaringType
Description copied from interface:IuDeclaredElement
Gets the declaring type.- Specified by:
declaringType
in interfaceDeclaredAttribute<D,
T> - Specified by:
declaringType
in interfaceIuDeclaredElement<D>
- Returns:
- declaring type
-
read
Description copied from interface:IuProperty
Gets a facade describing the property read method.- Specified by:
read
in interfaceIuProperty<D,
T> - Returns:
- read method facade
-
write
Description copied from interface:IuProperty
Gets a facade describing the property write method.- Specified by:
write
in interfaceIuProperty<D,
T> - Returns:
- write method facade
-
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
-
toString
-