Package net.sf.saxon.om
Enum Durability
- All Implemented Interfaces:
Serializable
,Comparable<Durability>
,java.lang.constant.Constable
The Durability of a node affects how it is handled for the purposes of caching by memo functions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA node is fleeting if it is part of a streamed document, meaning that it disappears as soon as it has been processedA node is lasting if it is expected to remain accessible throughout the duration of a transformationA mutable node is one that can be modified during the course of a query or transformation.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 scopeDurability undefined means we don't know -
Method Summary
Modifier and TypeMethodDescriptionstatic Durability
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 Details
-
LASTING
A node is lasting if it is expected to remain accessible throughout the duration of a 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 scope -
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
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
Durability undefined means we don't know
-
-
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
-