org.hibernate.tool.hbm2x
Class MetaAttributeHelper

java.lang.Object
  extended by org.hibernate.tool.hbm2x.MetaAttributeHelper

public final class MetaAttributeHelper
extends Object

Helper for loading, merging and accessing tags.

Author:
max

Method Summary
static void copyMultiMap(org.apache.commons.collections.MultiMap destination, Map specific)
          Copies all the values from one MultiMap to another.
static boolean getMetaAsBool(org.hibernate.mapping.MetaAttribute metaAttribute, boolean defaultValue)
           
static String getMetaAsString(Collection meta, String seperator)
           
static String getMetaAsString(org.hibernate.mapping.MetaAttribute c)
           
static String getMetaAsString(org.hibernate.mapping.MetaAttribute meta, String seperator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMetaAsString

public static String getMetaAsString(Collection meta,
                                     String seperator)
Parameters:
collection -
string -

getMetaAsString

public static String getMetaAsString(org.hibernate.mapping.MetaAttribute meta,
                                     String seperator)

getMetaAsString

public static String getMetaAsString(org.hibernate.mapping.MetaAttribute c)

copyMultiMap

public static void copyMultiMap(org.apache.commons.collections.MultiMap destination,
                                Map specific)
Copies all the values from one MultiMap to another. This method is needed because the (undocumented) behaviour of MultiHashMap.putAll in versions of Commons Collections prior to 3.0 was to replace the collection in the destination, whereas in 3.0 it adds the collection from the source as an _element_ of the collection in the destination. This method makes no assumptions about the implementation of the MultiMap, and should work with all versions.

Parameters:
destination -
specific -

getMetaAsBool

public static boolean getMetaAsBool(org.hibernate.mapping.MetaAttribute metaAttribute,
                                    boolean defaultValue)