public class XmlArrayStringAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,String[]>
Converts a string to a string array and vice versa. The string is divided by
a comma.
- Since:
- 2.0.0
-
Constructor Summary
Constructors
-
Method Summary
Converts the array to a single string divided by commas.
Splits the string to a array of strings.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
XmlArrayStringAdapter
public XmlArrayStringAdapter()
-
Method Details
-
marshal
Converts the array to a single string divided by commas.
- Specified by:
marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,String[]>
- Parameters:
array - string array
- Returns:
- joined string
-
unmarshal
Splits the string to a array of strings.
- Specified by:
unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,String[]>
- Parameters:
rawString - raw string
- Returns:
- string array