Package org.opensaml.core.xml.util
Enum Class XMLObjectSupport.CloneOutputOption
java.lang.Object
java.lang.Enum<XMLObjectSupport.CloneOutputOption>
org.opensaml.core.xml.util.XMLObjectSupport.CloneOutputOption
- All Implemented Interfaces:
Serializable,Comparable<XMLObjectSupport.CloneOutputOption>,Constable
- Enclosing class:
- XMLObjectSupport
public static enum XMLObjectSupport.CloneOutputOption
extends Enum<XMLObjectSupport.CloneOutputOption>
Options for handling output of XMLObject cloning.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompletely and recursively drop the DOM from the cloned object and its children.The cloned XMLObject's DOM will be the root document element of a newDocument, that is it will be theElementreturned byDocument.getDocumentElement().The cloned XMLObject's DOM will be owned by the sameDocumentas the input object (the latter possibly newly created by marshalling internally), but will not be connected to the node tree associated with theDocument.getDocumentElement(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static XMLObjectSupport.CloneOutputOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DropDOM
Completely and recursively drop the DOM from the cloned object and its children. -
RootDOMInNewDocument
The cloned XMLObject's DOM will be the root document element of a newDocument, that is it will be theElementreturned byDocument.getDocumentElement(). -
UnrootedDOM
The cloned XMLObject's DOM will be owned by the sameDocumentas the input object (the latter possibly newly created by marshalling internally), but will not be connected to the node tree associated with theDocument.getDocumentElement().
-
-
Constructor Details
-
CloneOutputOption
private CloneOutputOption()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-