package de.factoryfx.data.attribute.types;

import com.fasterxml.jackson.annotation.JsonCreator;
import de.factoryfx.data.attribute.AttributeMetadata;
import de.factoryfx.data.attribute.ValueListAttribute;
import de.factoryfx.data.jackson.ObservableListJacksonAbleWrapper;

public class StringListAttribute extends ValueListAttribute<String> {

    public StringListAttribute(AttributeMetadata attributeMetadata) {
        super(String.class,attributeMetadata,"empty");
    }

    @JsonCreator
    StringListAttribute(ObservableListJacksonAbleWrapper<String> list) {
        super(null,null,null);
        set(list.unwrap());
    }
}

@@ -274,16 +274,110 @@
 per;%0D%0A%0D%0A
+import java.util.Collections;%0D%0Aimport java.util.List;%0D%0Aimport java.util.stream.Collectors;%0D%0A%0D%0A
 public c
@@ -737,11 +737,161 @@
 %0A    %7D%0D%0A
+%0D%0A    public List%3CString%3E asUnmodifiableList() %7B%0D%0A        return Collections.unmodifiableList(get().stream().collect(Collectors.toList()));%0D%0A    %7D%0D%0A%0D%0A
 %7D%0D%0A

add helper method to convert to final list