public interface CommonList extends FeatureStructure
Modifier and Type | Field and Description |
---|---|
static String |
_FeatName_head |
static String |
_FeatName_tail |
static List<String> |
EMPTY_LIST_STRING |
Modifier and Type | Method and Description |
---|---|
default void |
anyListToOutput(XmiSerializationSharedData sharedData,
org.apache.uima.cas.impl.CasSerializerSupport.CasDocSerializer cds,
Consumer<String> out)
Internal Use.
|
default List<String> |
anyListToStringList(XmiSerializationSharedData sharedData,
org.apache.uima.cas.impl.CasSerializerSupport.CasDocSerializer cds)
Internal use
|
CommonList |
createNonEmptyNode()
Creates a non empty node
|
CommonList |
emptyList() |
default String |
get_headAsString()
Internal use
overridden in nonempty nodes
Return the head value of a list as a string suitable for serialization.
|
default CommonList |
getCommonTail()
default impl for empty and nonempty lists
|
default int |
getLength()
length of a list, handling list loops.
|
default CommonList |
getNonEmptyNthNode(int i)
Like GetNthNode, but throws exception if empty
|
default CommonList |
getNthNode(int i)
Get the nth node.
|
default CommonList |
insertNode()
insert a new nonempty node following this node
|
default boolean |
isEmpty() |
default CommonList |
pushNode()
Creates a new node and pushes it onto the front of the existing node
|
default void |
set_headFromString(String v)
Internal use
overridden in nonempty nodes
used when deserializing
|
default void |
setTail(CommonList v)
sets the tail of this node
|
default void |
walkList(org.apache.uima.internal.util.function.Consumer_withSaxException<NonEmptyList> consumer,
Runnable foundLoop)
Walks a list, executing the consumer on each element.
|
_getTypeCode, _id, clone, equals, getAddress, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getJCas, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue
static final String _FeatName_head
static final String _FeatName_tail
default CommonList getNthNode(int i)
i
- -default CommonList getNonEmptyNthNode(int i)
i
- -default int getLength()
default void walkList(org.apache.uima.internal.util.function.Consumer_withSaxException<NonEmptyList> consumer, Runnable foundLoop) throws SAXException
consumer
- a Consumer with Sax ExceptionfoundLoop
- run if a loop happensSAXException
- -CommonList createNonEmptyNode()
CommonList emptyList()
default String get_headAsString()
default void set_headFromString(String v)
v
- value to set, as a stringdefault CommonList insertNode()
default CommonList pushNode()
default CommonList getCommonTail()
default void setTail(CommonList v)
v
- the taildefault void anyListToOutput(XmiSerializationSharedData sharedData, org.apache.uima.cas.impl.CasSerializerSupport.CasDocSerializer cds, Consumer<String> out)
sharedData
- -cds
- -out
- - a Consumer of stringsdefault List<String> anyListToStringList(XmiSerializationSharedData sharedData, org.apache.uima.cas.impl.CasSerializerSupport.CasDocSerializer cds)
sharedData
- -cds
- -default boolean isEmpty()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.