com.epam.xml.utils
Class ReflectDataStorage

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

public class ReflectDataStorage
extends Object


Constructor Summary
ReflectDataStorage(int gamut)
           
 
Method Summary
 Field getFeild(String name)
          Gets field by name.
 Field getFieldByAnnotation(String name)
          Gets field by annotation
 Method getMethod(String method)
          Gets the method
 Method getMethod(String field, boolean set)
          Gets the method
 Method getMethodByAnnotation(String methodAnnotation)
          Gets method by annotation
 XmlRootElement getRootElement()
          Gets the root element.
 Class getType()
          get type field
 Class<?> getTypeForName(String name)
          Is class exists
 XmlType getXmlType()
          Gets the xml type.
 boolean isTypeExistForName(String name)
          is type class exist
 void parseClass(Class<?> _class)
          Parses the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectDataStorage

public ReflectDataStorage(int gamut)
Method Detail

parseClass

public void parseClass(Class<?> _class)
Parses the class.

Parameters:
_class - 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 XmlRootElement getRootElement()
Gets the root element.

Returns:
XmlRootElement

getXmlType

public 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


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.