public final class ClientPropertyContext extends Object implements AutoBeanVisitor.PropertyContext, AutoBeanVisitor.CollectionPropertyContext, AutoBeanVisitor.MapPropertyContext
Modifier and Type | Class and Description |
---|---|
static class |
ClientPropertyContext.Setter
A reference to an instance setter method.
|
Constructor and Description |
---|
ClientPropertyContext(Object instance,
ClientPropertyContext.Setter setter,
Class<?> type) |
ClientPropertyContext(Object instance,
ClientPropertyContext.Setter setter,
Class<?>[] types,
int[] paramCounts) |
Modifier and Type | Method and Description |
---|---|
void |
accept(AutoBeanVisitor.ParameterizationVisitor visitor)
Allows deeper inspection of the declared parameterization of the
property.
|
boolean |
canSet()
Indicates if the
AutoBeanVisitor.PropertyContext.set(java.lang.Object) method will succeed. |
Class<?> |
getElementType()
Returns the collection's element type.
|
Class<?> |
getKeyType()
Returns the map's key type.
|
Class<?> |
getType()
Returns the expected type of the property.
|
Class<?> |
getValueType()
Returns the map's value type.
|
void |
set(Object value)
Sets a property value.
|
public ClientPropertyContext(Object instance, ClientPropertyContext.Setter setter, Class<?> type)
public ClientPropertyContext(Object instance, ClientPropertyContext.Setter setter, Class<?>[] types, int[] paramCounts)
public void accept(AutoBeanVisitor.ParameterizationVisitor visitor)
AutoBeanVisitor.PropertyContext
accept
in interface AutoBeanVisitor.PropertyContext
public boolean canSet()
AutoBeanVisitor.PropertyContext
AutoBeanVisitor.PropertyContext.set(java.lang.Object)
method will succeed.canSet
in interface AutoBeanVisitor.PropertyContext
true
if the property can be setpublic Class<?> getElementType()
AutoBeanVisitor.CollectionPropertyContext
getElementType
in interface AutoBeanVisitor.CollectionPropertyContext
public Class<?> getKeyType()
AutoBeanVisitor.MapPropertyContext
getKeyType
in interface AutoBeanVisitor.MapPropertyContext
public Class<?> getType()
AutoBeanVisitor.PropertyContext
getType
in interface AutoBeanVisitor.PropertyContext
public Class<?> getValueType()
AutoBeanVisitor.MapPropertyContext
getValueType
in interface AutoBeanVisitor.MapPropertyContext
public void set(Object value)
AutoBeanVisitor.PropertyContext
set
in interface AutoBeanVisitor.PropertyContext
value
- the new valueCopyright © 2016. All rights reserved.