Class ReflectDataStorage

java.lang.Object
com.epam.xml.utils.ReflectDataStorage

public class ReflectDataStorage extends Object
  • Constructor Details

    • ReflectDataStorage

      public ReflectDataStorage(int gamut)
  • Method Details

    • parseClass

      public void parseClass(Class<?> clazz)
      Parses the class.
      Parameters:
      clazz - the class
    • isTypeExistForName

      public boolean isTypeExistForName(String name)
      is type class exist
      Parameters:
      name - - annotation
      Returns:
      boolean
    • getTypeForName

      public Class<?> getTypeForName(String name)
      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

      public Class getType()
      get type field
      Returns:
      Class type
    • getFeild

      public final Field getFeild(String name)
      Gets field by name.
      Parameters:
      name - the field name
    • getFieldByAnnotation

      public final Field getFieldByAnnotation(String name)
      Gets field by annotation
      Parameters:
      name - the annotation name
      Returns:
      Field
    • getMethodByAnnotation

      public final Method getMethodByAnnotation(String methodAnnotation)
      Gets method by annotation
      Parameters:
      methodAnnotation - annotation name
      Returns:
      Method
    • getMethod

      public final Method getMethod(String method)
      Gets the method
      Parameters:
      method - the method name
      Returns:
      Method
    • getMethod

      public final Method getMethod(String field, boolean set)
      Gets the method
      Parameters:
      field - the field name
      set - the set or get method
      Returns:
      Method