Package 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
Base class for configuration elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertRequiredFieldPresent(XmlElement element, String property) protected voidassertRequiredFieldPresent(XmlElement element, String attribute, String property) protected MethodfindGetter(String property) protected MethodfindSetter(String property) protected Locationprotected <T extends XmlConfigurable>
List<T>load(List<XmlElement> elements, Class<T> clazz) protected <T> TloadClass(XmlElement element, String attribute, Class<T> spec) protected voidsetLocation(Location location) protected voidsetLocation(XmlElement element) Called by elements wishing to report their location in XML.protected voidsetPatternProperty(XmlElement element, String property) protected voidsetPatternProperty(XmlElement element, String attribute, String property) SetsPatternproperty on this object using attribute value.protected voidsetProperty(XmlElement element, String attribute) protected voidsetProperty(XmlElement element, String attribute, String property) Sets property on this object using attribute value.protected voidsetRequiredProperty(XmlElement element, String attribute) protected voidsetRequiredProperty(XmlElement element, String attribute, String property) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scriptella.configuration.XmlConfigurable
configure
-
Constructor Details
-
XmlConfigurableBase
public XmlConfigurableBase()
-
-
Method Details
-
setRequiredProperty
-
setProperty
- See Also:
-
setProperty
Sets property on this object using attribute value.- Parameters:
element- element to get attribute.attribute- attribute nameproperty- property name.
-
setPatternProperty
-
setPatternProperty
SetsPatternproperty on this object using attribute value.- Parameters:
element- element to get attribute.attribute- attribute nameproperty- property name.
-
findSetter
- Throws:
NoSuchMethodException
-
findGetter
- Throws:
NoSuchMethodException
-
setRequiredProperty
-
loadClass
-
load
-
assertRequiredFieldPresent
-
assertRequiredFieldPresent
-
setLocation
Called by elements wishing to report their location in XML.- Parameters:
element- element to calculate location
-
setLocation
-
getLocation
-