|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.internal.MultiValueXmlHelper
public final class MultiValueXmlHelper
A helper class to load and save XML elements representing multi values as they are used in attribute values.
This class should only contains static utility method mainly called by generated runtime code.
| Field Summary | |
|---|---|
static String |
XML_TAG_MULTIVALUE
|
static String |
XML_TAG_VALUE
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XML_TAG_MULTIVALUE
public static final String XML_TAG_VALUE
| Method Detail |
|---|
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 from
NullPointerException - 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 from
NullPointerException - if the outer value-tag or the MultiValue-Tag cannot be found
public 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>
public static void addInternationalStringsToElement(Element element,
List<org.faktorips.values.DefaultInternationalString> internationalStringList)
international strings in the given list as a
"multi-value" child element to the given element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||