ch.elca.el4j.env.xml.handlers
Class AbstractInheritablePropertyHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by ch.elca.el4j.env.xml.handlers.AbstractInheritablePropertyHandler
All Implemented Interfaces:
EnvGroupHandler, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
BeanOverridesHandler, PlaceholdersHandler

public abstract class AbstractInheritablePropertyHandler
extends DefaultHandler
implements EnvGroupHandler

An EnvGroupHandler that handles inheritable properties (which can also be abstract or final).

Author:
Stefan Wismer (SWI)
File-location:
AbstractInheritablePropertyHandler
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

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

m_properties

protected Properties m_properties
The ordinary properties.


m_abstractProperties

protected Map<String,Resource> m_abstractProperties
The abstract property names and the resource they are declared.


m_finalProperties

protected Map<String,Resource> m_finalProperties
The final property names and the resource they are declared.


m_currentResource

protected Resource m_currentResource
The resource currently being propcessed.

Constructor Detail

AbstractInheritablePropertyHandler

public AbstractInheritablePropertyHandler()
Method Detail

startResource

public void startResource(Resource resource)
Notify which resource will be parsed next.

Specified by:
startResource in interface EnvGroupHandler
Parameters:
resource - the resource that will be parsed next

addProperty

protected void addProperty(Attributes attributes)
Add a property given by an xml tag having the attributes 'name' (required), 'value' and 'type'.

Parameters:
attributes - the tag attributes

removeProperty

protected void removeProperty(Attributes attributes)
Remove a property given by an xml tag having the attribute 'name' (required).

Parameters:
attributes - the tag attributes

filterData

public void filterData(Properties properties)

Specified by:
filterData in interface EnvGroupHandler
Parameters:
properties - the evaluated variables (${variable} -> value)

getData

public Object getData()

Specified by:
getData in interface EnvGroupHandler
Returns:
the gathered data


Copyright © 2005-2011 ELCA. All Rights Reserved.