net.fortuna.mstor.data.xml
Class ElementBinding

java.lang.Object
  extended by net.fortuna.mstor.data.xml.XmlBinding
      extended by net.fortuna.mstor.data.xml.ElementBinding

public class ElementBinding
extends XmlBinding

Author:
Ben Fortuna
 $Id$

 Created on 6/05/2006
 

Field Summary
protected  org.jdom.Element element
           
 
Fields inherited from class net.fortuna.mstor.data.xml.XmlBinding
namespace
 
Constructor Summary
ElementBinding(org.jdom.Element element)
          Default constructor.
ElementBinding(org.jdom.Element element, org.jdom.Namespace namespace)
           
 
Method Summary
 org.jdom.Element getElement()
           
 org.jdom.Element getElement(java.lang.String name)
          Returns the specified child element of the element associated with this meta message.
 
Methods inherited from class net.fortuna.mstor.data.xml.XmlBinding
getNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

element

protected org.jdom.Element element
Constructor Detail

ElementBinding

public ElementBinding(org.jdom.Element element)
Default constructor.


ElementBinding

public ElementBinding(org.jdom.Element element,
                      org.jdom.Namespace namespace)
Parameters:
namespace -
Method Detail

getElement

public final org.jdom.Element getElement(java.lang.String name)
Returns the specified child element of the element associated with this meta message. If the child does not exist it is created and added to the message element.

Parameters:
name - name of the child element
Returns:
a JDOM element

getElement

public final org.jdom.Element getElement()
Returns:
the element


Copyright © 2004-2011 Micronode. All Rights Reserved.