public abstract class XmlConfigurableBase extends java.lang.Object implements XmlConfigurable
Constructor and Description |
---|
XmlConfigurableBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertRequiredFieldPresent(XmlElement element,
java.lang.String property) |
protected void |
assertRequiredFieldPresent(XmlElement element,
java.lang.String attribute,
java.lang.String property) |
protected java.lang.reflect.Method |
findGetter(java.lang.String property) |
protected java.lang.reflect.Method |
findSetter(java.lang.String property) |
protected Location |
getLocation() |
protected <T extends XmlConfigurable> |
load(java.util.List<XmlElement> elements,
java.lang.Class<T> clazz) |
protected <T> T |
loadClass(XmlElement element,
java.lang.String attribute,
java.lang.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,
java.lang.String property) |
protected void |
setPatternProperty(XmlElement element,
java.lang.String attribute,
java.lang.String property)
Sets
Pattern property on this object using attribute value. |
protected void |
setProperty(XmlElement element,
java.lang.String attribute) |
protected void |
setProperty(XmlElement element,
java.lang.String attribute,
java.lang.String property)
Sets property on this object using attribute value.
|
protected void |
setRequiredProperty(XmlElement element,
java.lang.String attribute) |
protected void |
setRequiredProperty(XmlElement element,
java.lang.String attribute,
java.lang.String property) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure
protected void setRequiredProperty(XmlElement element, java.lang.String attribute, java.lang.String property)
protected void setProperty(XmlElement element, java.lang.String attribute)
setProperty(XmlElement, String, String)
protected void setProperty(XmlElement element, java.lang.String attribute, java.lang.String property)
element
- element to get attribute.attribute
- attribute nameproperty
- property name.protected void setPatternProperty(XmlElement element, java.lang.String property)
protected void setPatternProperty(XmlElement element, java.lang.String attribute, java.lang.String property)
Pattern
property on this object using attribute value.element
- element to get attribute.attribute
- attribute nameproperty
- property name.protected java.lang.reflect.Method findSetter(java.lang.String property) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
protected java.lang.reflect.Method findGetter(java.lang.String property) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
protected void setRequiredProperty(XmlElement element, java.lang.String attribute)
protected <T> T loadClass(XmlElement element, java.lang.String attribute, java.lang.Class<T> spec)
protected <T extends XmlConfigurable> java.util.List<T> load(java.util.List<XmlElement> elements, java.lang.Class<T> clazz)
protected void assertRequiredFieldPresent(XmlElement element, java.lang.String attribute, java.lang.String property)
protected void assertRequiredFieldPresent(XmlElement element, java.lang.String property)
protected void setLocation(XmlElement element)
element
- element to calculate locationprotected void setLocation(Location location)
protected Location getLocation()
Copyright © Copyright 2006-2019 The Scriptella Project Team.