public class XmlReflection
extends java.lang.Object
Constructor and Description |
---|
XmlReflection()
Initialize the new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
convertToType(java.lang.String text,
java.lang.Class<?> type) |
java.lang.Object |
createInitializedInstance(org.w3c.dom.Element xmlElement) |
<T> T |
createInitializedInstance(org.w3c.dom.Element xmlElement,
java.lang.Class<T> expectedType) |
<T> java.util.List<T> |
createInitializedInstances(java.util.List<org.w3c.dom.Element> xmlElements,
java.lang.Class<T> expectedType) |
java.lang.Object |
createInstance(org.w3c.dom.Element xmlElement) |
<T> T |
createInstance(org.w3c.dom.Element xmlElement,
java.lang.Class<T> expectedType) |
java.lang.String |
getAttrNameForClass() |
java.lang.String |
getAttrNameForFieldName() |
java.lang.String |
getAttrNameForFieldValue() |
java.lang.String |
getTagNameForField() |
protected boolean |
hasValueAttrName() |
protected void |
initProperties(org.w3c.dom.Element xmlElement,
java.lang.Object object) |
void |
setAttrNameForClass(java.lang.String newValue) |
void |
setAttrNameForFieldName(java.lang.String newValue) |
void |
setAttrNameForFieldValue(java.lang.String newValue) |
void |
setTagNameForField(java.lang.String newValue) |
public XmlReflection()
public java.lang.Object createInstance(org.w3c.dom.Element xmlElement)
public <T> T createInstance(org.w3c.dom.Element xmlElement, java.lang.Class<T> expectedType)
public java.lang.Object createInitializedInstance(org.w3c.dom.Element xmlElement) throws UnknownFieldException
UnknownFieldException
public <T> T createInitializedInstance(org.w3c.dom.Element xmlElement, java.lang.Class<T> expectedType) throws UnknownFieldException
UnknownFieldException
public <T> java.util.List<T> createInitializedInstances(java.util.List<org.w3c.dom.Element> xmlElements, java.lang.Class<T> expectedType) throws UnknownFieldException
UnknownFieldException
public java.lang.String getAttrNameForClass()
public void setAttrNameForClass(java.lang.String newValue)
public java.lang.String getTagNameForField()
public void setTagNameForField(java.lang.String newValue)
public java.lang.String getAttrNameForFieldName()
public void setAttrNameForFieldName(java.lang.String newValue)
public java.lang.String getAttrNameForFieldValue()
public void setAttrNameForFieldValue(java.lang.String newValue)
protected void initProperties(org.w3c.dom.Element xmlElement, java.lang.Object object) throws UnknownFieldException
UnknownFieldException
protected java.lang.Object convertToType(java.lang.String text, java.lang.Class<?> type)
protected boolean hasValueAttrName()