Package com.epam.xml.utils
Class ReflectDataStorage
java.lang.Object
com.epam.xml.utils.ReflectDataStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal FieldGets field by name.final FieldgetFieldByAnnotation(String name) Gets field by annotationfinal MethodGets the methodfinal MethodGets the methodfinal MethodgetMethodByAnnotation(String methodAnnotation) Gets method by annotationjakarta.xml.bind.annotation.XmlRootElementGets the root element.getType()get type fieldClass<?>getTypeForName(String name) Is class existsjakarta.xml.bind.annotation.XmlTypeGets the xml type.booleanisTypeExistForName(String name) is type class existvoidparseClass(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
-