FileDocCategorySizeDatePackage
ElementWrapper.javaAPI DocHibernate 3.2.511699Thu Apr 28 22:06:38 BST 2005org.hibernate.tuple

ElementWrapper

public class ElementWrapper extends Object implements Serializable, org.dom4j.Element
Wraps dom4j elements, allowing them to exist in a non-hierarchical structure.
author
Gavin King

Fields Summary
private org.dom4j.Element
element
private org.dom4j.Element
parent
Constructors Summary
public ElementWrapper(org.dom4j.Element element)

		this.element = element;
	
Methods Summary
public voidaccept(org.dom4j.Visitor visitor)

		element.accept( visitor );
	
public voidadd(org.dom4j.Node node)

		element.add( node );
	
public voidadd(org.dom4j.Comment comment)

		element.add( comment );
	
public voidadd(org.dom4j.Element element)

		element.add( element );
	
public voidadd(org.dom4j.ProcessingInstruction processingInstruction)

		element.add( processingInstruction );
	
public voidadd(org.dom4j.Attribute attribute)

		element.add( attribute );
	
public voidadd(org.dom4j.CDATA cdata)

		element.add( cdata );
	
public voidadd(org.dom4j.Entity entity)

		element.add( entity );
	
public voidadd(org.dom4j.Text text)

		element.add( text );
	
public voidadd(org.dom4j.Namespace namespace)

		element.add( namespace );
	
public org.dom4j.ElementaddAttribute(java.lang.String attrName, java.lang.String text)

		return element.addAttribute( attrName, text );
	
public org.dom4j.ElementaddAttribute(org.dom4j.QName attrName, java.lang.String text)

		return element.addAttribute( attrName, text );
	
public org.dom4j.ElementaddCDATA(java.lang.String text)

		return element.addCDATA( text );
	
public org.dom4j.ElementaddComment(java.lang.String text)

		return element.addComment( text );
	
public org.dom4j.ElementaddElement(java.lang.String name)

		return element.addElement( name );
	
public org.dom4j.ElementaddElement(org.dom4j.QName qName)

		return element.addElement( qName );
	
public org.dom4j.ElementaddElement(java.lang.String name, java.lang.String text)

		return element.addElement( name, text );

	
public org.dom4j.ElementaddEntity(java.lang.String name, java.lang.String text)

		return element.addEntity( name, text );
	
public org.dom4j.ElementaddNamespace(java.lang.String prefix, java.lang.String uri)

		return element.addNamespace( prefix, uri );
	
public org.dom4j.ElementaddProcessingInstruction(java.lang.String target, java.lang.String text)

		return element.addProcessingInstruction( target, text );
	
public org.dom4j.ElementaddProcessingInstruction(java.lang.String target, java.util.Map data)

		return element.addProcessingInstruction( target, data );
	
public org.dom4j.ElementaddText(java.lang.String text)

		return element.addText( text );
	
public java.util.ListadditionalNamespaces()

		return element.additionalNamespaces();
	
public voidappendAttributes(org.dom4j.Element element)

		element.appendAttributes( element );
	
public voidappendContent(org.dom4j.Branch branch)

		element.appendContent( branch );
	
public java.lang.StringasXML()

		return element.asXML();
	
public org.dom4j.NodeasXPathResult(org.dom4j.Element element)

		return element.asXPathResult( element );
	
public org.dom4j.Attributeattribute(int i)

		return element.attribute( i );
	
public org.dom4j.Attributeattribute(java.lang.String name)

		return element.attribute( name );
	
public org.dom4j.Attributeattribute(org.dom4j.QName qName)

		return element.attribute( qName );
	
public intattributeCount()

		return element.attributeCount();
	
public java.util.IteratorattributeIterator()

		return element.attributeIterator();
	
public java.lang.StringattributeValue(java.lang.String name)

		return element.attributeValue( name );
	
public java.lang.StringattributeValue(java.lang.String name, java.lang.String defaultValue)

		return element.attributeValue( name, defaultValue );
	
public java.lang.StringattributeValue(org.dom4j.QName qName)

		return element.attributeValue( qName );
	
public java.lang.StringattributeValue(org.dom4j.QName qName, java.lang.String defaultValue)

		return element.attributeValue( qName, defaultValue );
	
public java.util.Listattributes()

		return element.attributes();
	
public voidclearContent()

		element.clearContent();
	
public java.lang.Objectclone()

		return element.clone();
	
public java.util.Listcontent()

		return element.content();
	
public org.dom4j.ElementcreateCopy()

		return element.createCopy();
	
public org.dom4j.ElementcreateCopy(java.lang.String name)

		return element.createCopy( name );
	
public org.dom4j.ElementcreateCopy(org.dom4j.QName qName)

		return element.createCopy( qName );
	
public org.dom4j.XPathcreateXPath(java.lang.String xpath)

		return element.createXPath( xpath );
	
public java.util.ListdeclaredNamespaces()

		return element.declaredNamespaces();
	
public org.dom4j.Nodedetach()

		if (parent!=null) {
			parent.remove(this);
			parent = null;
		}
		return element.detach();
	
public org.dom4j.Elementelement(java.lang.String name)

		return element.element( name );
	
public org.dom4j.Elementelement(org.dom4j.QName qName)

		return element.element( qName );
	
public org.dom4j.ElementelementByID(java.lang.String id)

		return element.elementByID( id );
	
public java.util.IteratorelementIterator()

		return element.elementIterator();
	
public java.util.IteratorelementIterator(java.lang.String name)

		return element.elementIterator( name );

	
public java.util.IteratorelementIterator(org.dom4j.QName qName)

		return element.elementIterator( qName );
	
public java.lang.StringelementText(java.lang.String name)

		return element.elementText( name );
	
public java.lang.StringelementText(org.dom4j.QName qName)

		return element.elementText( qName );
	
public java.lang.StringelementTextTrim(java.lang.String name)

		return element.elementTextTrim( name );
	
public java.lang.StringelementTextTrim(org.dom4j.QName qName)

		return element.elementTextTrim( qName );
	
public java.util.Listelements()

		return element.elements();
	
public java.util.Listelements(java.lang.String name)

		return element.elements( name );
	
public java.util.Listelements(org.dom4j.QName qName)

		return element.elements( qName );
	
public booleanequals(java.lang.Object other)

		return element.equals(other);
	
public java.lang.ObjectgetData()

		return element.getData();
	
public org.dom4j.DocumentgetDocument()

		return element.getDocument();
	
public org.dom4j.ElementgetElement()

		return element;
	
public java.lang.StringgetName()

		return element.getName();
	
public org.dom4j.NamespacegetNamespace()

		return element.getNamespace();
	
public org.dom4j.NamespacegetNamespaceForPrefix(java.lang.String s)

		return element.getNamespaceForPrefix( s );
	
public org.dom4j.NamespacegetNamespaceForURI(java.lang.String s)

		return element.getNamespaceForURI( s );
	
public java.lang.StringgetNamespacePrefix()

		return element.getNamespacePrefix();
	
public java.lang.StringgetNamespaceURI()

		return element.getNamespaceURI();
	
public java.util.ListgetNamespacesForURI(java.lang.String s)

		return element.getNamespacesForURI( s );
	
public shortgetNodeType()

		return element.getNodeType();
	
public java.lang.StringgetNodeTypeName()

		return element.getNodeTypeName();
	
public org.dom4j.ElementgetParent()

		return parent==null ? element.getParent() : parent;
	
public java.lang.StringgetPath()

		return element.getPath();
	
public java.lang.StringgetPath(org.dom4j.Element element)

		return element.getPath( element );
	
public org.dom4j.QNamegetQName()

		return element.getQName();
	
public org.dom4j.QNamegetQName(java.lang.String s)

		return element.getQName( s );
	
public java.lang.StringgetQualifiedName()

		return element.getQualifiedName();
	
public java.lang.StringgetStringValue()

		return element.getStringValue();
	
public java.lang.StringgetText()

		return element.getText();
	
public java.lang.StringgetTextTrim()

		return element.getTextTrim();
	
public java.lang.StringgetUniquePath()

		return element.getUniquePath();
	
public java.lang.StringgetUniquePath(org.dom4j.Element element)

		return element.getUniquePath( element );
	
public org.dom4j.NodegetXPathResult(int i)

		return element.getXPathResult( i );
	
public booleanhasContent()

		return element.hasContent();
	
public booleanhasMixedContent()

		return element.hasMixedContent();
	
public inthashCode()

		return element.hashCode();
	
public intindexOf(org.dom4j.Node node)

		return element.indexOf( node );
	
public booleanisReadOnly()

		return element.isReadOnly();
	
public booleanisRootElement()

		return element.isRootElement();
	
public booleanisTextOnly()

		return element.isTextOnly();
	
public booleanmatches(java.lang.String xpath)

		return element.matches( xpath );
	
public org.dom4j.Nodenode(int i)

		return element.node( i );
	
public intnodeCount()

		return element.nodeCount();
	
public java.util.IteratornodeIterator()

		return element.nodeIterator();
	
public voidnormalize()

		element.normalize();
	
public java.lang.NumbernumberValueOf(java.lang.String xpath)

		return element.numberValueOf( xpath );
	
public org.dom4j.ProcessingInstructionprocessingInstruction(java.lang.String name)

		return element.processingInstruction( name );
	
public java.util.ListprocessingInstructions()

		return element.processingInstructions();
	
public java.util.ListprocessingInstructions(java.lang.String name)

		return element.processingInstructions( name );
	
public booleanremove(org.dom4j.Node node)

		return element.remove( node );
	
public booleanremove(org.dom4j.Comment comment)

		return element.remove( comment );
	
public booleanremove(org.dom4j.Element element)

		return element.remove( element );
	
public booleanremove(org.dom4j.ProcessingInstruction processingInstruction)

		return element.remove( processingInstruction );
	
public booleanremove(org.dom4j.Attribute attribute)

		return element.remove( attribute );
	
public booleanremove(org.dom4j.CDATA cdata)

		return element.remove( cdata );
	
public booleanremove(org.dom4j.Entity entity)

		return element.remove( entity );
	
public booleanremove(org.dom4j.Namespace namespace)

		return element.remove( namespace );
	
public booleanremove(org.dom4j.Text text)

		return element.remove( text );
	
public booleanremoveProcessingInstruction(java.lang.String name)

		return element.removeProcessingInstruction( name );
	
public java.util.ListselectNodes(java.lang.String xpath)

		return element.selectNodes( xpath );
	
public java.util.ListselectNodes(java.lang.String xpath, java.lang.String comparison)

		return element.selectNodes( xpath, comparison );
	
public java.util.ListselectNodes(java.lang.String xpath, java.lang.String comparison, boolean removeDups)

		return element.selectNodes( xpath, comparison, removeDups );
	
public java.lang.ObjectselectObject(java.lang.String xpath)

		return element.selectObject( xpath );
	
public org.dom4j.NodeselectSingleNode(java.lang.String xpath)

        return element.selectSingleNode( xpath );
	
public voidsetAttributeValue(java.lang.String name, java.lang.String value)

deprecated

		element.setAttributeValue( name, value );
	
public voidsetAttributeValue(org.dom4j.QName qName, java.lang.String value)

deprecated

		element.setAttributeValue( qName, value );
	
public voidsetAttributes(java.util.List list)

		element.setAttributes( list );
	
public voidsetContent(java.util.List list)

		element.setContent( list );
	
public voidsetData(java.lang.Object data)

		element.setData( data );
	
public voidsetDocument(org.dom4j.Document document)

		element.setDocument( document );
	
public voidsetName(java.lang.String name)

		element.setName( name );
	
public voidsetParent(org.dom4j.Element parent)

		element.setParent( parent );
		this.parent = parent;
	
public voidsetProcessingInstructions(java.util.List list)

		element.setProcessingInstructions( list );
	
public voidsetQName(org.dom4j.QName qName)

		element.setQName( qName );
	
public voidsetText(java.lang.String text)

		element.setText( text );
	
public booleansupportsParent()

		return element.supportsParent();
	
public java.lang.StringtoString()

		return element.toString();
	
public java.lang.StringvalueOf(java.lang.String xpath)

		return element.valueOf( xpath );
	
public voidwrite(java.io.Writer writer)

		element.write( writer );