Package net.sf.saxon.om
Enum Durability
- java.lang.Object
-
- java.lang.Enum<Durability>
-
- net.sf.saxon.om.Durability
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Durability>
public enum Durability extends java.lang.Enum<Durability>
The Durability of a node affects how it is handled for the purposes of caching by memo functions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLEETING
A node is fleeting if it is part of a streamed document, meaning that it disappears as soon as it has been processedLASTING
A node is lasting if it is expected to remain accessible throughout the duration of a transformationMUTABLE
A mutable node is one that can be modified during the course of a query or transformation.TEMPORARY
A node is temporary if it is constructed during the course of a transformation, and is likely to be garbage-collected when it goes out of scopeUNDEFINED
Durability undefined means we don't know
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Durability
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Durability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LASTING
public static final Durability LASTING
A node is lasting if it is expected to remain accessible throughout the duration of a transformation
-
TEMPORARY
public static final Durability TEMPORARY
A node is temporary if it is constructed during the course of a transformation, and is likely to be garbage-collected when it goes out of scope
-
FLEETING
public static final Durability FLEETING
A node is fleeting if it is part of a streamed document, meaning that it disappears as soon as it has been processed
-
MUTABLE
public static final Durability MUTABLE
A mutable node is one that can be modified during the course of a query or transformation. Note that wrapped external nodes (such as DOM nodes) are not considered mutable, because Saxon has no control over any modification, and external changes are not allowed even though Saxon cannot prevent them happening.
-
UNDEFINED
public static final Durability UNDEFINED
Durability undefined means we don't know
-
-
Method Detail
-
values
public static Durability[] 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 (Durability c : Durability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Durability valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-