public final class ValuesConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
VALUE |
static String |
VALUES |
| Modifier and Type | Method and Description |
|---|---|
static <VALUE_TYPE> |
convertTo_v2(QualifiedValues<VALUE_TYPE> values_v3)
Converts XMCDA v3 values to XMCDA v2 values or value.
|
static boolean |
embedMultipleXMCDAv2ValueInValues()
Indicates whether the method
convertTo_v2(org.xmcda.QualifiedValues) should return
Value when possible. |
static void |
setEmbedMultipleXMCDAv2ValueInValues(boolean bool)
Configures the behaviour of
convertTo_v2(org.xmcda.QualifiedValues). |
static <T> LabelledQValues<T> |
valueOrValues_convertTo_v3(List valueOrValues,
XMCDA xmcda_v3,
Warnings warnings)
Converts value or values in XMCDA v2 into LabelledQValues in XMCDA v3
|
public static final String VALUES
public static final String VALUE
public static void setEmbedMultipleXMCDAv2ValueInValues(boolean bool)
convertTo_v2(org.xmcda.QualifiedValues).bool - whether convertTo_v2(org.xmcda.QualifiedValues)public static boolean embedMultipleXMCDAv2ValueInValues()
convertTo_v2(org.xmcda.QualifiedValues) should return
Value when possible.public static <T> LabelledQValues<T> valueOrValues_convertTo_v3(List valueOrValues, XMCDA xmcda_v3, Warnings warnings)
valueOrValues - xmcda_v3 - warnings - public static <VALUE_TYPE> Object convertTo_v2(QualifiedValues<VALUE_TYPE> values_v3)
values_v3 is null, returns null;
values_v3 is empty, returns null: an empty <values/> is invalid in XMCDA
v2;
embedMultipleXMCDAv2ValueInValues() is true, returns a xmcda v2 value
values when values_v3 has one element;
xmcda v2 values.
values_v3 - the XMCDA v3 values to be converted.null (see above for details).Copyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.