org.objectweb.jorm.mi2xml.api
Interface MappingDomtreeBuilder

All Known Implementing Classes:
BasicMappingDomtreeBuilder

public interface MappingDomtreeBuilder

MappingDomtreeBuilder builds a DOMTree representation of a class mapping specification or a generic class mapping specification.


Method Summary
 void processClassMapping(org.w3c.dom.Document document, org.w3c.dom.Element mappingElement, ClassMapping classMapping)
          Adds a class mapping element to a mapping element.
 void processGenClassMapping(org.w3c.dom.Document document, org.w3c.dom.Element mappingElement, GenClassMapping genClassMapping)
          Adds a generic class mapping element to a mapping element.
 void setCurrentClass(Class currentClass)
          Assigns the current Class object to the MappingDomtreeBuilder object.
 void setmetaobject2idvalue(java.util.Map metaobject2idvalue)
          Assigns the current Class object to the MappingDomtreeBuilder object.
 

Method Detail

setCurrentClass

public void setCurrentClass(Class currentClass)
Assigns the current Class object to the MappingDomtreeBuilder object.

Parameters:
currentClass - the Jorm meta-object associated to the parsed class.

setmetaobject2idvalue

public void setmetaobject2idvalue(java.util.Map metaobject2idvalue)
Assigns the current Class object to the MappingDomtreeBuilder object.

Parameters:
metaobject2idvalue - an HashTable that associates a MetaObject with an id value.

processClassMapping

public void processClassMapping(org.w3c.dom.Document document,
                                org.w3c.dom.Element mappingElement,
                                ClassMapping classMapping)
                         throws PException
Adds a class mapping element to a mapping element.

Parameters:
document - an org.w3c.dom.Document object, mappingElement a mapping element, classMapping a ClassMapping object.
Throws:
PException

processGenClassMapping

public void processGenClassMapping(org.w3c.dom.Document document,
                                   org.w3c.dom.Element mappingElement,
                                   GenClassMapping genClassMapping)
                            throws PException
Adds a generic class mapping element to a mapping element.

Parameters:
document - an org.w3c.dom.Document object, mappingElement a mapping element, genClassMapping a GenClassMapping object.
Throws:
PException