本文整理汇总了Java中org.apache.uima.jcas.cas.StringList类的典型用法代码示例。如果您正苦于以下问题:Java StringList类的具体用法?Java StringList怎么用?Java StringList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StringList类属于org.apache.uima.jcas.cas包,在下文中一共展示了StringList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: isEmpty
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/**
* Checks whether a StringList is empty or not.
*
* @param sList
* @return
*/
public static boolean isEmpty(StringList sList) {
if (sList instanceof EmptyStringList) {
return true;
} else {
return false;
}
}
开发者ID:annefried,项目名称:sitent,代码行数:14,代码来源:SitEntUimaUtils.java
示例2: getList
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/**
* Returns the StringList as a normal list.
*
* @param sList
* @return
*/
public static List<String> getList(StringList sList) {
List<String> list = new LinkedList<String>();
while (sList instanceof NonEmptyStringList) {
String head = ((NonEmptyStringList) sList).getHead();
list.add(head);
sList = ((NonEmptyStringList) sList).getTail();
}
return list;
}
开发者ID:annefried,项目名称:sitent,代码行数:16,代码来源:SitEntUimaUtils.java
示例3: concatVals
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
public static String concatVals(StringList list) {
String seType = "";
for (String st : SitEntUimaUtils.getList(list)) {
if (st.equals("SPEECH_ACT")) {
continue;
}
seType += st + ":";
}
if (seType.length() > 0) {
seType = seType.substring(0, seType.length() - 1);
}
return seType;
}
开发者ID:annefried,项目名称:sitent,代码行数:14,代码来源:CorpusToCsvWriterAnnotator.java
示例4: getMainReferent
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** getter for mainReferent - gets genericity of main referent.
* @generated
* @return value of the feature
*/
public StringList getMainReferent() {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_mainReferent == null)
jcasType.jcas.throwFeatMissing("mainReferent", "sitent.types.Situation");
return (StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Situation_Type)jcasType).casFeatCode_mainReferent)));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例5: setMainReferent
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** setter for mainReferent - sets genericity of main referent.
* @generated
* @param v value to set into the feature
*/
public void setMainReferent(StringList v) {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_mainReferent == null)
jcasType.jcas.throwFeatMissing("mainReferent", "sitent.types.Situation");
jcasType.ll_cas.ll_setRefValue(addr, ((Situation_Type)jcasType).casFeatCode_mainReferent, jcasType.ll_cas.ll_getFSRef(v));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例6: getAspectualClass
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** getter for aspectualClass - gets lexical aspectual class of verb constellation.
* @generated
* @return value of the feature
*/
public StringList getAspectualClass() {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_aspectualClass == null)
jcasType.jcas.throwFeatMissing("aspectualClass", "sitent.types.Situation");
return (StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Situation_Type)jcasType).casFeatCode_aspectualClass)));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例7: setAspectualClass
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** setter for aspectualClass - sets lexical aspectual class of verb constellation.
* @generated
* @param v value to set into the feature
*/
public void setAspectualClass(StringList v) {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_aspectualClass == null)
jcasType.jcas.throwFeatMissing("aspectualClass", "sitent.types.Situation");
jcasType.ll_cas.ll_setRefValue(addr, ((Situation_Type)jcasType).casFeatCode_aspectualClass, jcasType.ll_cas.ll_getFSRef(v));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例8: getHabituality
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** getter for habituality - gets habituality of clause
* @generated
* @return value of the feature
*/
public StringList getHabituality() {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_habituality == null)
jcasType.jcas.throwFeatMissing("habituality", "sitent.types.Situation");
return (StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Situation_Type)jcasType).casFeatCode_habituality)));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例9: setHabituality
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** setter for habituality - sets habituality of clause
* @generated
* @param v value to set into the feature
*/
public void setHabituality(StringList v) {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_habituality == null)
jcasType.jcas.throwFeatMissing("habituality", "sitent.types.Situation");
jcasType.ll_cas.ll_setRefValue(addr, ((Situation_Type)jcasType).casFeatCode_habituality, jcasType.ll_cas.ll_getFSRef(v));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例10: getSeType
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** getter for seType - gets Situation entity type(s) for the situation.
* @generated
* @return value of the feature
*/
public StringList getSeType() {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_seType == null)
jcasType.jcas.throwFeatMissing("seType", "sitent.types.Situation");
return (StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Situation_Type)jcasType).casFeatCode_seType)));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例11: setSeType
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** setter for seType - sets Situation entity type(s) for the situation.
* @generated
* @param v value to set into the feature
*/
public void setSeType(StringList v) {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_seType == null)
jcasType.jcas.throwFeatMissing("seType", "sitent.types.Situation");
jcasType.ll_cas.ll_setRefValue(addr, ((Situation_Type)jcasType).casFeatCode_seType, jcasType.ll_cas.ll_getFSRef(v));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例12: getSegmentationProblem
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** getter for segmentationProblem - gets annotations given for segmentation problem (if any)
* @generated
* @return value of the feature
*/
public StringList getSegmentationProblem() {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_segmentationProblem == null)
jcasType.jcas.throwFeatMissing("segmentationProblem", "sitent.types.Situation");
return (StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Situation_Type)jcasType).casFeatCode_segmentationProblem)));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例13: setSegmentationProblem
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** setter for segmentationProblem - sets annotations given for segmentation problem (if any)
* @generated
* @param v value to set into the feature
*/
public void setSegmentationProblem(StringList v) {
if (Situation_Type.featOkTst && ((Situation_Type)jcasType).casFeat_segmentationProblem == null)
jcasType.jcas.throwFeatMissing("segmentationProblem", "sitent.types.Situation");
jcasType.ll_cas.ll_setRefValue(addr, ((Situation_Type)jcasType).casFeatCode_segmentationProblem, jcasType.ll_cas.ll_getFSRef(v));}
开发者ID:annefried,项目名称:sitent,代码行数:9,代码来源:Situation.java
示例14: getSubstitutions
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** getter for substitutions - gets
* @generated */
public StringList getSubstitutions() {
if (Substitution_Type.featOkTst && ((Substitution_Type)jcasType).casFeat_substitutions == null)
jcasType.jcas.throwFeatMissing("substitutions", "de.tudarmstadt.langtech.uima.substituter.type.Substitution");
return (StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Substitution_Type)jcasType).casFeatCode_substitutions)));}
开发者ID:tudarmstadt-lt,项目名称:TWSI-UIMA,代码行数:7,代码来源:Substitution.java
示例15: setSubstitutions
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** setter for substitutions - sets
* @generated */
public void setSubstitutions(StringList v) {
if (Substitution_Type.featOkTst && ((Substitution_Type)jcasType).casFeat_substitutions == null)
jcasType.jcas.throwFeatMissing("substitutions", "de.tudarmstadt.langtech.uima.substituter.type.Substitution");
jcasType.ll_cas.ll_setRefValue(addr, ((Substitution_Type)jcasType).casFeatCode_substitutions, jcasType.ll_cas.ll_getFSRef(v));}
开发者ID:tudarmstadt-lt,项目名称:TWSI-UIMA,代码行数:7,代码来源:Substitution.java
示例16: getAListString
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** getter for aListString - gets
* @generated
* @return value of the feature
*/
public StringList getAListString() {
if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aListString == null)
jcasType.jcas.throwFeatMissing("aListString", "org.apache.uima.test.AllTypes");
return (StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((AllTypes_Type)jcasType).casFeatCode_aListString)));}
开发者ID:renaud,项目名称:uima_mongo,代码行数:9,代码来源:AllTypes.java
示例17: setAListString
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** setter for aListString - sets
* @generated
* @param v value to set into the feature
*/
public void setAListString(StringList v) {
if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aListString == null)
jcasType.jcas.throwFeatMissing("aListString", "org.apache.uima.test.AllTypes");
jcasType.ll_cas.ll_setRefValue(addr, ((AllTypes_Type)jcasType).casFeatCode_aListString, jcasType.ll_cas.ll_getFSRef(v));}
开发者ID:renaud,项目名称:uima_mongo,代码行数:9,代码来源:AllTypes.java
示例18: getAListMrString
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** getter for aListMrString - gets
* @generated
* @return value of the feature
*/
public StringList getAListMrString() {
if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aListMrString == null)
jcasType.jcas.throwFeatMissing("aListMrString", "org.apache.uima.test.AllTypes");
return (StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((AllTypes_Type)jcasType).casFeatCode_aListMrString)));}
开发者ID:renaud,项目名称:uima_mongo,代码行数:9,代码来源:AllTypes.java
示例19: setAListMrString
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/** setter for aListMrString - sets
* @generated
* @param v value to set into the feature
*/
public void setAListMrString(StringList v) {
if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aListMrString == null)
jcasType.jcas.throwFeatMissing("aListMrString", "org.apache.uima.test.AllTypes");
jcasType.ll_cas.ll_setRefValue(addr, ((AllTypes_Type)jcasType).casFeatCode_aListMrString, jcasType.ll_cas.ll_getFSRef(v));}
开发者ID:renaud,项目名称:uima_mongo,代码行数:9,代码来源:AllTypes.java
示例20: addToStringList
import org.apache.uima.jcas.cas.StringList; //导入依赖的package包/类
/**
* Adds an item to a FSList.
*
* @param fsList
* @param newItem
* @param jcas
* @return
*/
public static NonEmptyStringList addToStringList(StringList sList, String newString, JCas jcas) {
NonEmptyStringList retVal = new NonEmptyStringList(jcas);
retVal.setHead(newString);
retVal.setTail(sList);
return retVal;
}
开发者ID:annefried,项目名称:sitent,代码行数:15,代码来源:SitEntUimaUtils.java
注:本文中的org.apache.uima.jcas.cas.StringList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论