public class XMLReflect extends Object implements XMLReflectConstants
Modifier and Type | Field and Description |
---|---|
static String |
NO_MATCHING_CONSTRUCTOR
An error happened while trying to construct a test.
|
XR_ARG_TAG, XR_CLASS_ATTRIBUTE, XR_NAME_ATTRIBUTE, XR_PROPERTY_TAG, XR_VALUE_ATTRIBUTE
Constructor and Description |
---|
XMLReflect() |
Modifier and Type | Method and Description |
---|---|
static Object |
buildArgument(Element element)
Limitation: Arguments *must* have a String based
constructor.
|
static Object |
buildObject(Element element)
Implementation helper: builds a generic object
|
static Object |
configureObject(Object obj,
Element element,
Element classDefiningElement)
Implementation helper: configures a generic object
|
static Element |
getClassDefiningElement(Element element)
Gets the defining class element
|
static Constructor |
getDeclaredConstructor(Class cl,
Class[] argClasses)
Returns a constructor that has can be used for the input class
types.
|
static void |
setObjectProperty(Object obj,
String propertyName,
Object propertyValue)
Sets the property with given name on object to the input value
|
public static final String NO_MATCHING_CONSTRUCTOR
public static Object buildObject(Element element) throws Exception
Exception
public static Object configureObject(Object obj, Element element, Element classDefiningElement) throws Exception
Exception
public static void setObjectProperty(Object obj, String propertyName, Object propertyValue) throws Exception
Exception
public static Constructor getDeclaredConstructor(Class cl, Class[] argClasses)
public static Object buildArgument(Element element) throws Exception
Exception
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.