public abstract class XmlConfigurableBase extends Object implements XmlConfigurable
| Constructor and Description |
|---|
XmlConfigurableBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertRequiredFieldPresent(XmlElement element,
String property) |
protected void |
assertRequiredFieldPresent(XmlElement element,
String attribute,
String property) |
protected Method |
findGetter(String property) |
protected Method |
findSetter(String property) |
protected Location |
getLocation() |
protected <T extends XmlConfigurable> |
load(List<XmlElement> elements,
Class<T> clazz) |
protected <T> T |
loadClass(XmlElement element,
String attribute,
Class<T> spec) |
protected void |
setLocation(Location location) |
protected void |
setLocation(XmlElement element)
Called by elements wishing to report their location in XML.
|
protected void |
setPatternProperty(XmlElement element,
String property) |
protected void |
setPatternProperty(XmlElement element,
String attribute,
String property)
Sets
Pattern property on this object using attribute value. |
protected void |
setProperty(XmlElement element,
String attribute) |
protected void |
setProperty(XmlElement element,
String attribute,
String property)
Sets property on this object using attribute value.
|
protected void |
setRequiredProperty(XmlElement element,
String attribute) |
protected void |
setRequiredProperty(XmlElement element,
String attribute,
String property) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigureprotected void setRequiredProperty(XmlElement element, String attribute, String property)
protected void setProperty(XmlElement element, String attribute)
protected void setProperty(XmlElement element, String attribute, String property)
element - element to get attribute.attribute - attribute nameproperty - property name.protected void setPatternProperty(XmlElement element, String property)
protected void setPatternProperty(XmlElement element, String attribute, String property)
Pattern property on this object using attribute value.element - element to get attribute.attribute - attribute nameproperty - property name.protected Method findSetter(String property) throws NoSuchMethodException
NoSuchMethodExceptionprotected Method findGetter(String property) throws NoSuchMethodException
NoSuchMethodExceptionprotected void setRequiredProperty(XmlElement element, String attribute)
protected <T> T loadClass(XmlElement element, String attribute, Class<T> spec)
protected <T extends XmlConfigurable> List<T> load(List<XmlElement> elements, Class<T> clazz)
protected void assertRequiredFieldPresent(XmlElement element, String attribute, String property)
protected void assertRequiredFieldPresent(XmlElement element, String property)
protected void setLocation(XmlElement element)
element - element to calculate locationprotected void setLocation(Location location)
protected Location getLocation()
Copyright © 2006-2012. All Rights Reserved.