|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AnySeq
Interface for a sequence of Any objects.
AnySeq does not allow null values!
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.smila.datamodel.Any |
|---|
Any.ValueType |
| Method Summary | |
|---|---|
void |
add(int index,
Any element)
|
boolean |
add(java.lang.Number number)
Long, Integer, Short and Byte values will be converted to Value object of type LONG, all others to Value object of type DOUBLE. |
boolean |
add(java.lang.String element)
|
java.util.List<java.lang.Long> |
asLongs()
returns all values as a List of Long. |
java.util.List<java.lang.String> |
asStrings()
returns all values as a List of Strings. |
java.lang.Boolean |
getBooleanValue(int index)
|
java.util.Date |
getDateTimeValue(int index)
|
java.util.Date |
getDateValue(int index)
|
java.lang.Double |
getDoubleValue(int index)
|
java.lang.Long |
getLongValue(int index)
|
AnyMap |
getMap(int index)
|
AnySeq |
getSeq(int index)
|
java.lang.String |
getStringValue(int index)
|
Value |
getValue(int index)
|
| Methods inherited from interface java.util.List |
|---|
add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Methods inherited from interface org.eclipse.smila.datamodel.Any |
|---|
asMap, asSeq, asValue, getFactory, getValueType, isBoolean, isDate, isDateTime, isDouble, isEmpty, isLong, isMap, isNumber, isSeq, isString, isValue, iterator, size |
| Method Detail |
|---|
boolean add(java.lang.String element)
element - The string object to add
boolean add(java.lang.Number number)
number - The number object to add
void add(int index,
Any element)
add in interface java.util.List<Any>index - The index where to add the any objectelement - The any object to addAnyMap getMap(int index)
index - The index of the object to return
AnySeq getSeq(int index)
index - The index of the object to return
Value getValue(int index)
index - The index of the object to return
java.lang.String getStringValue(int index)
index - The index of the object to return
java.lang.Double getDoubleValue(int index)
index - The index of the object to return
java.lang.Long getLongValue(int index)
index - The index of the object to return
java.lang.Boolean getBooleanValue(int index)
index - The index of the object to return
java.util.Date getDateValue(int index)
index - The index of the object to return
java.util.Date getDateTimeValue(int index)
index - The index of the object to return
java.util.List<java.lang.String> asStrings()
InvalidValueTypeException - if not all contained values are strings.java.util.List<java.lang.Long> asLongs()
InvalidValueTypeException - if not all contained values are Longs.
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||