Enum Durability

java.lang.Object
java.lang.Enum<Durability>
net.sf.saxon.om.Durability
All Implemented Interfaces:
Serializable, Comparable<Durability>, java.lang.constant.Constable

public enum Durability extends Enum<Durability>
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 Constants
    Enum Constant
    Description
    A node is fleeting if it is part of a streamed document, meaning that it disappears as soon as it has been processed
    A node is lasting if it is expected to remain accessible throughout the duration of a transformation
    A 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 scope
    Durability undefined means we don't know
  • Method Summary

    Modifier and Type
    Method
    Description
    static Durability
    Returns the enum constant of this type with the specified name.
    static Durability[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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 Details

    • values

      public static Durability[] 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

      public static Durability 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 name
      NullPointerException - if the argument is null