net.sf.hibernate.tool.hbm2java
Class MappingElement
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingElement
public MappingElement(org.jdom.Element element,
MappingElement parentElement)
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()