org.opensaml.xml.util
Class XMLObjectHelper

java.lang.Object
  extended by org.opensaml.xml.util.XMLObjectHelper

public final class XMLObjectHelper
extends Object

A helper class for working with XMLObjects.


Method Summary
static
<T extends XMLObject>
T
cloneXMLObject(T originalXMLObject)
          Clone an XMLObject by brute force: 1) Marshall the original object if necessary 2) Clone the resulting DOM Element 3) Unmarshall a new XMLObject tree around it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cloneXMLObject

public static <T extends XMLObject> T cloneXMLObject(T originalXMLObject)
                                          throws MarshallingException,
                                                 UnmarshallingException
Clone an XMLObject by brute force: 1) Marshall the original object if necessary 2) Clone the resulting DOM Element 3) Unmarshall a new XMLObject tree around it.

Type Parameters:
T - the type of object being cloned
Parameters:
originalXMLObject - the object to be cloned
Returns:
a clone of the original object
Throws:
MarshallingException - if original object can not be marshalled
UnmarshallingException - if cloned object tree can not be unmarshalled


Copyright © 2006-2010 Internet2. All Rights Reserved.