Package org.cip4.lib.xjdf.type
Class AbstractList<T>
java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,AbstractList<T>>
org.cip4.lib.xjdf.type.AbstractXJdfType<String,AbstractList<T>>
org.cip4.lib.xjdf.type.AbstractList<T>
- Direct Known Subclasses:
IntegerList,NMTokens
A list is an enumerated set of values, which is expressed as a list of space separated values.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AbstractList(String value) Custom constructor, accepting a String object for initializing.AbstractList(List<T> list) Custom constructor, accepting a list object for initializing.AbstractList(T... values) Custom constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true in case obj is conatined in the list.protected abstract TconvertFromString(String value) Converts the data type from a String value.get(int i) Returns the element on position i.getList()Getter for list attribute.marshal(AbstractList<T> obj) voidSetter for list attribute.Methods inherited from class org.cip4.lib.xjdf.type.AbstractXJdfType
equals, hashCode, toString
-
Constructor Details
-
AbstractList
public AbstractList()Default constructor. -
AbstractList
Custom constructor. Accepting a variable number of integers.- Parameters:
values- List of values.
-
AbstractList
Custom constructor, accepting a list object for initializing.- Parameters:
list- List of elements.
-
AbstractList
Custom constructor, accepting a String object for initializing.- Parameters:
value- A single String value.
-
-
Method Details
-
get
Returns the element on position i.- Parameters:
i- Position.- Returns:
- Element on position i.
-
contains
Returns true in case obj is conatined in the list.- Parameters:
obj- The object to be checked.- Returns:
- True in case the obj is contained. Otherwise false.
-
getList
Getter for list attribute.- Returns:
- the list
-
setList
Setter for list attribute.- Parameters:
list- the list to set
-
convertFromString
Converts the data type from a String value.- Parameters:
value- String expression.- Returns:
- String as target data type.
-
marshal
- Specified by:
marshalin classjakarta.xml.bind.annotation.adapters.XmlAdapter<String,AbstractList<T>> - See Also:
-
unmarshal
- Specified by:
unmarshalin classjakarta.xml.bind.annotation.adapters.XmlAdapter<String,AbstractList<T>> - Throws:
Exception- See Also:
-