Package net.sf.saxon.om
Enum Class AllElementsSpaceStrippingRule
- All Implemented Interfaces:
Serializable,Comparable<AllElementsSpaceStrippingRule>,Constable,SpaceStrippingRule
public enum AllElementsSpaceStrippingRule
extends Enum<AllElementsSpaceStrippingRule>
implements SpaceStrippingRule
A whitespace stripping rule that strips all elements unless xml:space indicates that whitespace
should be preserved.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidexport(ExpressionPresenter presenter) Export this rule as part of an exported stylesheetintisSpacePreserving(NodeName fingerprint, SchemaType schemaType) Decide whether an element is in the set of white-space preserving element typesmakeStripper(Receiver next) Make a filter to implement these space-stripping rules, or null if no filtering is necessaryReturns the enum constant of this class with the specified name.static AllElementsSpaceStrippingRule[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getInstance
-
isSpacePreserving
Decide whether an element is in the set of white-space preserving element types- Specified by:
isSpacePreservingin interfaceSpaceStrippingRule- Parameters:
fingerprint- identifies the element being testedschemaType- the type annotation of the element- Returns:
- STRIP_DEFAULT: strip spaces unless xml:space tells you not to.
-
makeStripper
Make a filter to implement these space-stripping rules, or null if no filtering is necessary- Specified by:
makeStripperin interfaceSpaceStrippingRule- Parameters:
next- the Receiver that is to receive the filtered event stream- Returns:
- a filter in the form of a ProxyReceiver, or null
-
export
Export this rule as part of an exported stylesheet- Specified by:
exportin interfaceSpaceStrippingRule- Parameters:
presenter- the output handler
-