Package com.epam.xml.utils
Class ReflectDataStorage
java.lang.Object
com.epam.xml.utils.ReflectDataStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Field
Gets field by name.final Field
getFieldByAnnotation
(String name) Gets field by annotationfinal Method
Gets the methodfinal Method
Gets the methodfinal Method
getMethodByAnnotation
(String methodAnnotation) Gets method by annotationjakarta.xml.bind.annotation.XmlRootElement
Gets the root element.getType()
get type fieldClass<?>
getTypeForName
(String name) Is class existsjakarta.xml.bind.annotation.XmlType
Gets the xml type.boolean
isTypeExistForName
(String name) is type class existvoid
parseClass
(Class<?> clazz) Parses the class.
-
Constructor Details
-
ReflectDataStorage
public ReflectDataStorage(int gamut)
-
-
Method Details
-
parseClass
Parses the class.- Parameters:
clazz
- the class
-
isTypeExistForName
is type class exist- Parameters:
name
- - annotation- Returns:
- boolean
-
getTypeForName
Is class exists- Parameters:
name
- the annotation name- Returns:
- Class<?>
-
getRootElement
public jakarta.xml.bind.annotation.XmlRootElement getRootElement()Gets the root element.- Returns:
- XmlRootElement
-
getXmlType
public jakarta.xml.bind.annotation.XmlType getXmlType()Gets the xml type.- Returns:
- XmlType
-
getType
get type field- Returns:
- Class type
-
getFeild
Gets field by name.- Parameters:
name
- the field name
-
getFieldByAnnotation
Gets field by annotation- Parameters:
name
- the annotation name- Returns:
- Field
-
getMethodByAnnotation
Gets method by annotation- Parameters:
methodAnnotation
- annotation name- Returns:
- Method
-
getMethod
Gets the method- Parameters:
method
- the method name- Returns:
- Method
-
getMethod
Gets the method- Parameters:
field
- the field nameset
- the set or get method- Returns:
- Method
-