public class Property extends Object
| Constructor | Description |
|---|---|
Property(String name,
JsonbAnnotatedElement<Class<?>> declaringClassModel) |
Create instance of property.
|
| Modifier and Type | Method | Description |
|---|---|---|
JsonbAnnotatedElement<Class<?>> |
getDeclaringClassElement() |
Class element with annotation under construction for declaring class of this property.
|
Field |
getField() |
Field representing property if any |
JsonbAnnotatedElement<Field> |
getFieldElement() |
Element with field and its annotations.
|
Method |
getGetter() |
Method representing getter of a property if any. |
JsonbAnnotatedElement<Method> |
getGetterElement() |
Element with getter and its annotations.
|
Type |
getGetterType() |
|
String |
getName() |
Name of a property, java bean convention.
|
Type |
getPropertyType() |
Extracts type from first not null element:
Field, Getter, Setter.
|
Method |
getSetter() |
Method representing setter of a property if any. |
JsonbAnnotatedElement<Method> |
getSetterElement() |
Element with setter and its annotations.
|
Type |
getSetterType() |
|
void |
setField(Field field) |
|
void |
setGetter(Method getter) |
|
void |
setSetter(Method setter) |
public Property(String name, JsonbAnnotatedElement<Class<?>> declaringClassModel)
name - not nulldeclaringClassModel - Class model for a class declaring property.public String getName()
public void setField(Field field)
field - field not nullpublic Method getGetter()
Method representing getter of a property if any.public void setGetter(Method getter)
getter - not nullpublic Method getSetter()
Method representing setter of a property if any.public void setSetter(Method setter)
setter - setter not nullpublic JsonbAnnotatedElement<Class<?>> getDeclaringClassElement()
public Type getPropertyType()
public Type getGetterType()
public Type getSetterType()
public JsonbAnnotatedElement<Field> getFieldElement()
public JsonbAnnotatedElement<Method> getGetterElement()
public JsonbAnnotatedElement<Method> getSetterElement()
Copyright © 2018 Oracle Corporation. All rights reserved.