Package org.cip4.lib.xjdf.type
Class AbstractList<T>
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
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 TypeMethodDescriptionprotected 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. -
AbstractList
Custom constructor, accepting a list object for initializing. -
AbstractList
Custom constructor, accepting a String object for initializing.
-
-
Method Details
-
get
Returns the element on position i.- Parameters:
i- Position.- Returns:
- Element on position i.
-
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 classjavax.xml.bind.annotation.adapters.XmlAdapter<String,AbstractList<T>> - See Also:
-
XmlAdapter.marshal(java.lang.Object)
-
unmarshal
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<String,AbstractList<T>> - Throws:
Exception- See Also:
-
XmlAdapter.unmarshal(java.lang.Object)
-