scriptella.configuration
Class XmlConfigurableBase
java.lang.Object
scriptella.configuration.XmlConfigurableBase
- All Implemented Interfaces:
- XmlConfigurable
- Direct Known Subclasses:
- ConfigurationEl, ConnectionEl, ContentEl, DialectBasedContentEl, IncludeEl, OnErrorEl, PropertiesEl, ScriptingElement
public abstract class XmlConfigurableBase
- extends java.lang.Object
- implements XmlConfigurable
Base class for configuration elements.
|
Method Summary |
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
|
load(java.util.List<XmlElement> elements,
java.lang.Class<T> clazz)
|
protected
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlConfigurableBase
public XmlConfigurableBase()
setRequiredProperty
protected void setRequiredProperty(XmlElement element,
java.lang.String attribute,
java.lang.String property)
setProperty
protected void setProperty(XmlElement element,
java.lang.String attribute)
- See Also:
setProperty(XmlElement, String, String)
setProperty
protected void setProperty(XmlElement element,
java.lang.String attribute,
java.lang.String property)
- Sets property on this object using attribute value.
- Parameters:
element - element to get attribute.attribute - attribute nameproperty - property name.
setPatternProperty
protected void setPatternProperty(XmlElement element,
java.lang.String property)
- See Also:
setPatternProperty(XmlElement, String, String)
setPatternProperty
protected void setPatternProperty(XmlElement element,
java.lang.String attribute,
java.lang.String property)
- Sets
Pattern property on this object using attribute value.
- Parameters:
element - element to get attribute.attribute - attribute nameproperty - property name.
findSetter
protected java.lang.reflect.Method findSetter(java.lang.String property)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
findGetter
protected java.lang.reflect.Method findGetter(java.lang.String property)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
setRequiredProperty
protected void setRequiredProperty(XmlElement element,
java.lang.String attribute)
loadClass
protected <T> T loadClass(XmlElement element,
java.lang.String attribute,
java.lang.Class<T> spec)
load
protected <T extends XmlConfigurable> java.util.List<T> load(java.util.List<XmlElement> elements,
java.lang.Class<T> clazz)
assertRequiredFieldPresent
protected void assertRequiredFieldPresent(XmlElement element,
java.lang.String attribute,
java.lang.String property)
assertRequiredFieldPresent
protected void assertRequiredFieldPresent(XmlElement element,
java.lang.String property)
setLocation
protected void setLocation(XmlElement element)
- Called by elements wishing to report their location in XML.
- Parameters:
element - element to calculate location
setLocation
protected void setLocation(Location location)
getLocation
protected Location getLocation()
Copyright © Copyright 2006-2009 The Scriptella Project Team.