org.objectweb.jonathan.libs.kernel.decoders

Class XMLPropertyDecoder

Implemented Interfaces:
XMLElementDecoder

public class XMLPropertyDecoder
extends java.lang.Object
implements XMLElementDecoder

Property specific XML to runtime component decoder. Used by the OpenXMLDecoder as one of the built-in component decoders provided it provides to its decoding dispatcher.

Method Summary

Component
decode(XMLElement _xml_element, String _element_name, Context _configuration, XMLElementDecoderDispatcher _dispatcher)
Converts a XML PROPERTY element to its corresponding property runtime component.

Method Details

decode

public Component decode(XMLElement _xml_element,
                        String _element_name,
                        Context _configuration,
                        XMLElementDecoderDispatcher _dispatcher)
            throws JonathanException
Converts a XML PROPERTY element to its corresponding property runtime component.

Supported property types are:

  • String
  • char
  • boolean
  • byte
  • short
  • int
  • long
  • float
  • double
Specified by:
decode in interface XMLElementDecoder

Parameters:
_xml_element - PROPERTY tag to be decoded
_element_name - the property's element name
_configuration - where the property will be created