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 Constants Enum Constant Description DropDOMCompletely and recursively drop the DOM from the cloned object and its children.RootDOMInNewDocumentThe cloned XMLObject's DOM will be the root document element of a newDocument, that is it will be theElementreturned byDocument.getDocumentElement().UnrootedDOMThe 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 Modifier Constructor Description privateCloneOutputOption()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XMLObjectSupport.CloneOutputOptionvalueOf(String name)Returns 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 Detail
-
DropDOM
public static final XMLObjectSupport.CloneOutputOption DropDOM
Completely and recursively drop the DOM from the cloned object and its children.
-
RootDOMInNewDocument
public static final XMLObjectSupport.CloneOutputOption RootDOMInNewDocument
The cloned XMLObject's DOM will be the root document element of a newDocument, that is it will be theElementreturned byDocument.getDocumentElement().
-
UnrootedDOM
public static final XMLObjectSupport.CloneOutputOption 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().
-
-
Method Detail
-
values
public static XMLObjectSupport.CloneOutputOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XMLObjectSupport.CloneOutputOption c : XMLObjectSupport.CloneOutputOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XMLObjectSupport.CloneOutputOption valueOf(String name)
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
-
-