public class ListUtils extends Object
Modifier and Type | Field and Description |
---|---|
int |
neFloatListType |
int |
neFsListType |
int |
neIntListType |
int |
neStringListType |
Constructor and Description |
---|
ListUtils(CASImpl aCASImpl,
Logger aLogger,
ErrorHandler aErrorHandler)
Creates a new ListUtils object.
|
Modifier and Type | Method and Description |
---|---|
void |
anyListToOutput(int curNode,
XmiSerializationSharedData sharedData,
CasSerializerSupport.CasDocSerializer cds,
org.apache.uima.cas.impl.ListUtils.ListOutput out)
Go thru a list, calling the ListOutput append method to append strings (to arrays, or string buffers)
Stop at the end node, or a null, or a loop (no error reported here)
|
String[] |
anyListToStringArray(int curNode,
XmiSerializationSharedData sharedData) |
List<String> |
anyListToStringList(int curNode,
XmiSerializationSharedData sharedData,
CasSerializerSupport.CasDocSerializer cds) |
int |
createFloatList(List<String> stringValues) |
int |
createFsList(List<String> stringValues,
org.apache.uima.internal.util.IntVector fsAddresses) |
int |
createIntList(List<String> stringValues) |
int |
createStringList(List<String> stringValues) |
int[] |
fsListToAddressArray(int curNode) |
int |
getEListType(int type) |
int |
getHeadFeatCode(int type) |
int |
getLength(int type,
int addr) |
int |
getLength(int type,
int addr,
int neListType,
int tailFeat) |
int |
getNeListType(int type) |
int |
getTailFeatCode(int type) |
boolean |
isFloatListType(int type) |
boolean |
isFsListType(int type) |
boolean |
isIntListType(int type) |
boolean |
isListType(int type) |
boolean |
isStringListType(int type) |
int |
updateFloatList(int addr,
List<String> stringValues) |
int |
updateFsList(int addr,
List<String> stringValues,
org.apache.uima.internal.util.IntVector fsAddresses) |
int |
updateIntList(int addr,
List<String> stringValues) |
int |
updateStringList(int addr,
List<String> stringValues) |
public final int neIntListType
public final int neFloatListType
public final int neStringListType
public final int neFsListType
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 int getHeadFeatCode(int type)
public int getTailFeatCode(int type)
public int getNeListType(int type)
public int getEListType(int type)
public 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 int getLength(int type, int addr, int neListType, int tailFeat)
public void anyListToOutput(int curNode, XmiSerializationSharedData sharedData, CasSerializerSupport.CasDocSerializer cds, org.apache.uima.cas.impl.ListUtils.ListOutput out)
curNode
- -sharedData
- -cds
- -out
- -public String[] anyListToStringArray(int curNode, XmiSerializationSharedData sharedData) throws SAXException
SAXException
public List<String> anyListToStringList(int curNode, XmiSerializationSharedData sharedData, CasSerializerSupport.CasDocSerializer cds)
public int[] fsListToAddressArray(int curNode) throws SAXException
SAXException
public int createFsList(List<String> stringValues, org.apache.uima.internal.util.IntVector fsAddresses)
public int updateIntList(int addr, List<String> stringValues) throws SAXException
SAXException
public int updateFloatList(int addr, List<String> stringValues) throws SAXException
SAXException
public int updateFsList(int addr, List<String> stringValues, org.apache.uima.internal.util.IntVector fsAddresses) throws SAXException
SAXException
public int updateStringList(int addr, List<String> stringValues) throws SAXException
SAXException
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.