|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
ch.elca.el4j.env.xml.handlers.AbstractInheritablePropertyHandler
public abstract class AbstractInheritablePropertyHandler
An EnvGroupHandler
that handles inheritable properties (which can also be abstract or final).
Field Summary | |
---|---|
protected Map<String,Resource> |
m_abstractProperties
The abstract property names and the resource they are declared. |
protected Resource |
m_currentResource
The resource currently being propcessed. |
protected Map<String,Resource> |
m_finalProperties
The final property names and the resource they are declared. |
protected Properties |
m_properties
The ordinary properties. |
Constructor Summary | |
---|---|
AbstractInheritablePropertyHandler()
|
Method Summary | |
---|---|
protected void |
addProperty(Attributes attributes)
Add a property given by an xml tag having the attributes 'name' (required), 'value' and 'type'. |
void |
filterData(Properties properties)
|
Object |
getData()
|
protected void |
removeProperty(Attributes attributes)
Remove a property given by an xml tag having the attribute 'name' (required). |
void |
startResource(Resource resource)
Notify which resource will be parsed next. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Field Detail |
---|
protected Properties m_properties
protected Map<String,Resource> m_abstractProperties
protected Map<String,Resource> m_finalProperties
protected Resource m_currentResource
Constructor Detail |
---|
public AbstractInheritablePropertyHandler()
Method Detail |
---|
public void startResource(Resource resource)
startResource
in interface EnvGroupHandler
resource
- the resource that will be parsed nextprotected void addProperty(Attributes attributes)
attributes
- the tag attributesprotected void removeProperty(Attributes attributes)
attributes
- the tag attributespublic void filterData(Properties properties)
filterData
in interface EnvGroupHandler
properties
- the evaluated variables (${variable} -> value)public Object getData()
getData
in interface EnvGroupHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |