public class ClassModel extends Object
Constructor | Description |
---|---|
ClassModel(Class<?> clazz,
ClassCustomization customization,
ClassModel parentClassModel,
javax.json.bind.config.PropertyNamingStrategy propertyNamingStrategy) |
Create instance of class model.
|
Modifier and Type | Method | Description |
---|---|---|
PropertyModel |
findPropertyModelByJsonReadName(String jsonReadName) |
Search for field in this class model and superclasses of its class.
|
ClassCustomization |
getClassCustomization() |
Introspected customization for a class.
|
ClassCustomization |
getCustomization() |
Gets customization.
|
ClassModel |
getParentClassModel() |
Class model of parent class if present.
|
Map<String,PropertyModel> |
getProperties() |
Get class properties copy, combination of field and its getter / setter, javabeans alike.
|
PropertyModel |
getPropertyModel(String name) |
Gets a property model by default (non customized) name.
|
PropertyModel[] |
getSortedProperties() |
Get sorted class properties copy, combination of field and its getter / setter, javabeans alike.
|
Class<?> |
getType() |
Gets type.
|
void |
setProperties(List<PropertyModel> parsedProperties) |
Sets parsed properties of the class.
|
public ClassModel(Class<?> clazz, ClassCustomization customization, ClassModel parentClassModel, javax.json.bind.config.PropertyNamingStrategy propertyNamingStrategy)
clazz
- Class to model.customization
- Customization of the class parsed from annotations.parentClassModel
- Class model of parent class.propertyNamingStrategy
- Property naming strategy.public PropertyModel getPropertyModel(String name)
name
- A name as parsed from field / getter / setter without annotation customizing.public PropertyModel findPropertyModelByJsonReadName(String jsonReadName)
jsonReadName
- name as it appears in JSON during reading.public ClassCustomization getCustomization()
public Class<?> getType()
public ClassCustomization getClassCustomization()
public ClassModel getParentClassModel()
public PropertyModel[] getSortedProperties()
public void setProperties(List<PropertyModel> parsedProperties)
parsedProperties
- class propertiespublic Map<String,PropertyModel> getProperties()
Copyright © 2017 Oracle Corporation. All rights reserved.