JAXB Update List of strings
===

I have to work with a JAXB type (named "runtime") that contains the following XSD element:

    <xsd:element name="scripts" minOccurs="1" maxOccurs="1">
    <xsd:simpleType>
    <xsd:list itemType="xsd:string" />
    </xsd:simpleType>
    </xsd:element>

Thus I have code like:

    runtime.getScripts()

Is there as way I can update the script value? The following does not work:

    for (String aScript : runtime.getScripts()) {
    final String updatedScript = "dummy";
                    aScript = updatedScript; // ?
    } 

Thanks.


