Package org.opensaml.core.xml.util
Enum XMLObjectSupport.CloneOutputOption
java.lang.Object
java.lang.Enum<XMLObjectSupport.CloneOutputOption>
org.opensaml.core.xml.util.XMLObjectSupport.CloneOutputOption
- All Implemented Interfaces:
Serializable,Comparable<XMLObjectSupport.CloneOutputOption>
- Enclosing class:
- XMLObjectSupport
public static enum XMLObjectSupport.CloneOutputOption
extends Enum<XMLObjectSupport.CloneOutputOption>
Options for handling output of XMLObject cloning.
-
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 type with the specified name.static XMLObjectSupport.CloneOutputOption[]values()Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-