Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Simplify Xml handling #110

Open
wants to merge 8 commits into
base: next
Choose a base branch
from
Open

Commits on Jun 18, 2015

  1. Remove SubsystemInclude xml tag

    SubsystemInclude is correspond to an XInclude.
    This patch removes this tag handling and replaces it by the standard
    xml inclusion tag.
    
    Signed-off-by: Jules Clero <julesx.clero@intel.com>
    clero committed Jun 18, 2015
    Configuration menu
    Copy the full SHA
    3c4ccf8 View commit details
    Browse the repository at this point in the history
  2. Remove dead code concerning xml folder retrieving

    Latest patch removes SubsystemInclude tag support. It leads to some
    dead code.
    This patch removes code which was providing the Folder of the xml file
    to include which is now dead.
    
    Signed-off-by: Jules Clero <julesx.clero@intel.com>
    clero committed Jun 18, 2015
    Configuration menu
    Copy the full SHA
    3885b6c View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2015

  1. xmlserializer: Enhance error message when parsing a file

    Signed-off-by: Jules Clero <julesx.clero@intel.com>
    clero committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    a1062c9 View commit details
    Browse the repository at this point in the history
  2. xmlserializer: Rework getAttribute API

    getAttribute API forces the user to call a specific
    API for each call getAttributeString etc..
    This patch replaces this API by a template one.
    The success of of the action can now be checked.
    It can be useful one to check that a conversion succeed.
    
    Signed-off-by: Jules Clero <julesx.clero@intel.com>
    clero committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    fba813f View commit details
    Browse the repository at this point in the history
  3. xmlserializer: validate an exported XML file

    XML exportation does not validate generated file even if
    a schema is provided.
    This patch enables the validation of the file at the end
    of the export. Moreover, the generated XML is checked against
    its schema if one is provided.
    
    Signed-off-by: Jules Clero <julesx.clero@intel.com>
    clero committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    eae1bd9 View commit details
    Browse the repository at this point in the history
  4. xmlserializer: Introduce Xml binding powered serializer

    Current serialization implementation require to map the design to
    the desired xml files. Thus, xml can't be easily removed and the code is
    hard to test.
    This patch introduces a serializer, based on the current xmlSerializer
    library. This serializer uses an Xml bindings structure which describe
    the mapping of the data holder to the desired xml files.
    
    Signed-off-by: Jules Clero <julesx.clero@intel.com>
    clero committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    bd950bb View commit details
    Browse the repository at this point in the history
  5. Rework configuration class to avoid complicate behavior

    Current configuration design is mapping classes on xml node.
    It leads to some empty classes which contains a node information.
    It also leads to inconsistent information retrieval method. Some
    can be retrieved through simple getters and some others are retrieved
    through child mechanism inherited from Element.
    This patch introduces a real configuration object which is a simple
    struct. Information retrieval is handled through xml bindings.
    
    Signed-off-by: Jules Clero <julesx.clero@intel.com>
    clero committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    3a39ef3 View commit details
    Browse the repository at this point in the history
  6. xmlserializer: Remove isParsable dead method

    isParsable is never used and the check made through it
    can easily be replaced by testing the return value of
    getDoc against NULL.
    
    Signed-off-by: Jules Clero <julesx.clero@intel.com>
    clero committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    5390087 View commit details
    Browse the repository at this point in the history