public class ValueSet extends Object
PropertyDescriptor
.Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object value) |
Object[] |
getItems() |
static ValueSet |
parseValueSet(String[] valueStrings,
Converter itemConverter)
Converts a string array into a value set.
|
static ValueSet |
parseValueSet(String text,
Class<?> itemType)
Converts a comma-separated text string into a value set.
|
public ValueSet(Object[] items)
public Object[] getItems()
public boolean contains(Object value)
public static ValueSet parseValueSet(String text, Class<?> itemType) throws IllegalArgumentException
text
- The textual representation of the value set. Commas in values must be escaped using UNICODE character encoding.itemType
- The type of the value set's items.IllegalArgumentException
- If the text has an invalid format.public static ValueSet parseValueSet(String[] valueStrings, Converter itemConverter) throws ConversionException
valueStrings
- The textual representation of the items of the value set.itemConverter
- The converter to be used for the item conversion.ConversionException
- If the conversion of one of the items fails.Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.