public class ListUtils extends Object
| Constructor and Description |
|---|
ListUtils(CASImpl aCASImpl,
Logger aLogger,
ErrorHandler aErrorHandler)
Creates a new ListUtils object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
createFloatList(List<String> stringValues) |
int |
createFsList(List<String> stringValues,
IntVector fsAddresses) |
int |
createIntList(List<String> stringValues) |
int |
createStringList(List<String> stringValues) |
String[] |
floatListToStringArray(int addr) |
int[] |
fsListToAddressArray(int addr) |
String[] |
fsListToXmiIdStringArray(int addr,
XmiSerializationSharedData sharedData) |
int |
getLength(int type,
int addr) |
String[] |
intListToStringArray(int addr) |
boolean |
isFloatListType(int type) |
boolean |
isFsListType(int type) |
boolean |
isIntListType(int type) |
boolean |
isListType(int type) |
boolean |
isStringListType(int type) |
String[] |
stringListToStringArray(int addr) |
int |
updateFloatList(int addr,
List<String> stringValues) |
int |
updateFsList(int addr,
List<String> stringValues,
IntVector fsAddresses) |
int |
updateIntList(int addr,
List<String> stringValues) |
int |
updateStringList(int addr,
List<String> stringValues) |
public ListUtils(CASImpl aCASImpl, Logger aLogger, ErrorHandler aErrorHandler)
aCASImpl - the CAS that this ListUtils will operate onaLogger - optional logger, to receive warning messagesaErrorHandler - optional SAX ErrorHandler, to receive warning messagespublic boolean isIntListType(int type)
public boolean isFloatListType(int type)
public boolean isStringListType(int type)
public boolean isFsListType(int type)
public boolean isListType(int type)
public int getLength(int type,
int addr)
public String[] intListToStringArray(int addr) throws SAXException
SAXExceptionpublic String[] floatListToStringArray(int addr) throws SAXException
SAXExceptionpublic String[] stringListToStringArray(int addr) throws SAXException
SAXExceptionpublic String[] fsListToXmiIdStringArray(int addr, XmiSerializationSharedData sharedData) throws SAXException
SAXExceptionpublic int[] fsListToAddressArray(int addr)
throws SAXException
SAXExceptionpublic int updateIntList(int addr,
List<String> stringValues)
throws SAXException
SAXExceptionpublic int updateFloatList(int addr,
List<String> stringValues)
throws SAXException
SAXExceptionpublic int updateFsList(int addr,
List<String> stringValues,
IntVector fsAddresses)
throws SAXException
SAXExceptionpublic int updateStringList(int addr,
List<String> stringValues)
throws SAXException
SAXExceptionCopyright © 2014. All rights reserved.