public enum OrderlessPresentationMode extends java.lang.Enum<OrderlessPresentationMode>
Specifies how the child elements of 'orderless' elements should be output.
When the value is OrderlessPresentationMode.A_MATCHES_DELETES_ADDS
the output for any orderless comparison is presented in a defined order as
follows:
The 'adds' and then the 'deletes' appear in the same order as they appear in their respective inputs.
When the value is OrderlessPresentationMode.A_ADDS
all of the elements from the A input appear in the result in the same order as they appear in
that input. Their deltaxml:deltaV2 values ('A=B', 'A!=B' and 'A') will indicate if a similar (as defined by exact subtree or
key matching) element appears in the B input and if so how they correspond. Finally the 'adds' - elements from B, with no
matches to those in the A input, are listed in the order in which they appear in B.
When the value is OrderlessPresentationMode.B_MATCHES_ADDS_DELETES
the output is presented as follows:
The 'deletes' and then the 'adds' appear in the same order as they appear in their respective inputs.
When the value is OrderlessPresentationMode.B_DELETES
all of the elements from the B input appear in the result in the same order as they appear
in that input. Their deltaxml:deltaV2 values ('A=B', 'A!=B' and 'B') will indicate if a similar (as defined by exact subtree or
key matching) element appears in the A input and if so how they correspond. Finally the 'deletes' - elements from A, with no
matches to those in the B input, are listed in the order in which they appear in A.
The default value for this parameter setting is: OrderlessPresentationMode.B_DELETES
Enum Constant and Description |
---|
A_ADDS
Outputs elements from the A input, in order, followed by elements only in the B input, in order.
|
A_MATCHES_DELETES_ADDS
Outputs elements from both inputs in their A order, followed by elements only in A and then elements only in B.
|
B_DELETES
Outputs elements from the B input, in order, followed by elements only in the A input, in order.
|
B_MATCHES_ADDS_DELETES
Outputs elements from both inputs in their B order, followed by elements only in B and then elements only in A.
|
Modifier and Type | Method and Description |
---|---|
static OrderlessPresentationMode |
getOrderlessPresentationMode(java.lang.String value)
Returns a OrderlessPresentationMode object from the supplied String value if appropriate.
|
java.lang.String |
toString()
Returns a String representation of OrderlessPresentationMode.
|
static OrderlessPresentationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrderlessPresentationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderlessPresentationMode A_ADDS
Outputs elements from the A input, in order, followed by elements only in the B input, in order.
public static final OrderlessPresentationMode A_MATCHES_DELETES_ADDS
Outputs elements from both inputs in their A order, followed by elements only in A and then elements only in B.
public static final OrderlessPresentationMode B_DELETES
Outputs elements from the B input, in order, followed by elements only in the A input, in order.
public static final OrderlessPresentationMode B_MATCHES_ADDS_DELETES
Outputs elements from both inputs in their B order, followed by elements only in B and then elements only in A.
public static OrderlessPresentationMode[] values()
for (OrderlessPresentationMode c : OrderlessPresentationMode.values()) System.out.println(c);
public static OrderlessPresentationMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
Returns a String representation of OrderlessPresentationMode.
toString
in class java.lang.Enum<OrderlessPresentationMode>
public static OrderlessPresentationMode getOrderlessPresentationMode(java.lang.String value)
Returns a OrderlessPresentationMode object from the supplied String value if appropriate.
This method should not be used under normal circumstances, enum instance values should be used instead.
value
- a String representation of a OrderlessPresentationMode value