public final class MultiValueXmlHelper extends Object
This class should only contains static utility method mainly called by generated runtime code.
| Modifier and Type | Field and Description |
|---|---|
static String |
XML_TAG_MULTIVALUE |
static String |
XML_TAG_VALUE |
| Modifier and Type | Method and Description |
|---|---|
static void |
addInternationalStringsToElement(Element element,
List<org.faktorips.values.DefaultInternationalString> internationalStringList)
Adds all
international strings in the given list as a
"multi-value" child element to the given element. |
static void |
addValuesToElement(Element element,
List<String> stringList)
Adds all values in the given list as a "multi-value" child element to the given element.
|
static List<org.faktorips.values.DefaultInternationalString> |
getInternationalStringsFromXML(Element attrValueElement)
Reads
DefaultInternationalString values from the XML structure. |
static List<String> |
getValuesFromXML(Element attrValueElement)
Reads String values from the a XML structure.
|
public static final String XML_TAG_MULTIVALUE
public static final String XML_TAG_VALUE
public static List<String> getValuesFromXML(Element attrValueElement)
<AttributeValue>
<Value>
<MultiValue>
<Value isNull="true"/>
<Value isNull="false"/> foo </Value>
<Value isNull="false"/> bar </Value>
</MultiValue>
</Value>
</AttributeValue>
attrValueElement - the element to extract multiple values fromNullPointerException - if the outer value-tag or the MultiValue-Tag can not be foundpublic static List<org.faktorips.values.DefaultInternationalString> getInternationalStringsFromXML(Element attrValueElement)
DefaultInternationalString values from the XML structure.attrValueElement - the element to extract multiple values fromNullPointerException - if the outer value-tag or the MultiValue-Tag cannot be foundpublic static void addValuesToElement(Element element, List<String> stringList)
<Value>
<MultiValue>
<Value isNull="false"/> foo </Value>
<Value isNull="true"/>
<Value isNull="false"/> bar </Value>
</MultiValue>
</Value>
Copyright © 2014. All rights reserved.