net.sf.hibernate.tool.hbm2java
Class MappingElement

java.lang.Object
  extended by net.sf.hibernate.tool.hbm2java.MappingElement
Direct Known Subclasses:
ClassMapping, FieldProperty

public class MappingElement
extends Object

Author:
MAX To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Constructor Summary
MappingElement(org.jdom.Element element, MappingElement parentElement)
           
 
Method Summary
 List getMeta(String attribute)
           
 boolean getMetaAsBool(String attribute)
           
 boolean getMetaAsBool(String attribute, boolean defaultValue)
           
 String getMetaAsString(String attribute)
          Returns all meta items as one large string.
 String getMetaAsString(String attribute, String seperator)
           
protected  org.apache.commons.collections.MultiMap getMetaAttribs()
           
 MappingElement getParentElement()
           
 org.jdom.Element getXMLElement()
           
 boolean hasMeta(String attribute)
          Returns true if this element has the meta attribute
 void setElement(org.jdom.Element element)
           
protected  void setMetaAttribs(org.apache.commons.collections.MultiMap metaAttribs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingElement

public MappingElement(org.jdom.Element element,
                      MappingElement parentElement)
Method Detail

getParentElement

public MappingElement getParentElement()

getXMLElement

public org.jdom.Element getXMLElement()

setElement

public void setElement(org.jdom.Element element)

hasMeta

public boolean hasMeta(String attribute)
Returns true if this element has the meta attribute


getMeta

public List getMeta(String attribute)

getMetaAsString

public String getMetaAsString(String attribute)
Returns all meta items as one large string.

Parameters:
string -
Returns:
String

getMetaAsString

public String getMetaAsString(String attribute,
                              String seperator)

getMetaAsBool

public boolean getMetaAsBool(String attribute)

getMetaAsBool

public boolean getMetaAsBool(String attribute,
                             boolean defaultValue)

setMetaAttribs

protected void setMetaAttribs(org.apache.commons.collections.MultiMap metaAttribs)

getMetaAttribs

protected org.apache.commons.collections.MultiMap getMetaAttribs()