Enum Durability

    • 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​(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