org.hibernate.cfg.reveng
Class MetaAttributeBinder

java.lang.Object
  extended by org.hibernate.cfg.reveng.MetaAttributeBinder

public class MetaAttributeBinder
extends Object


Constructor Summary
MetaAttributeBinder()
           
 
Method Summary
static org.apache.commons.collections.MultiMap loadAndMergeMetaMap(org.dom4j.Element classElement, org.apache.commons.collections.MultiMap inheritedMeta)
          Method loadAndMergeMetaMap.
protected static org.apache.commons.collections.MultiMap loadMetaMap(org.dom4j.Element element)
          Load meta attributes from jdom element into a MultiMap.
static org.apache.commons.collections.MultiMap mergeMetaMaps(Map specific, Map general)
          Merges a Multimap with inherited maps.
static org.hibernate.mapping.MetaAttribute toRealMetaAttribute(String name, List values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaAttributeBinder

public MetaAttributeBinder()
Method Detail

mergeMetaMaps

public static org.apache.commons.collections.MultiMap mergeMetaMaps(Map specific,
                                                                    Map general)
Merges a Multimap with inherited maps. Values specified always overrules/replaces the inherited values.

Parameters:
specific -
general -
Returns:
a MultiMap with all values from local and extra values from inherited

toRealMetaAttribute

public static org.hibernate.mapping.MetaAttribute toRealMetaAttribute(String name,
                                                                      List values)

loadAndMergeMetaMap

public static org.apache.commons.collections.MultiMap loadAndMergeMetaMap(org.dom4j.Element classElement,
                                                                          org.apache.commons.collections.MultiMap inheritedMeta)
Method loadAndMergeMetaMap.

Parameters:
classElement -
inheritedMeta -
Returns:
MultiMap

loadMetaMap

protected static org.apache.commons.collections.MultiMap loadMetaMap(org.dom4j.Element element)
Load meta attributes from jdom element into a MultiMap.

Parameters:
element -
Returns:
MultiMap