当前位置: 首页>>代码示例>>Java>>正文


Java TypeImpl类代码示例

本文整理汇总了Java中org.apache.uima.cas.impl.TypeImpl的典型用法代码示例。如果您正苦于以下问题:Java TypeImpl类的具体用法?Java TypeImpl怎么用?Java TypeImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TypeImpl类属于org.apache.uima.cas.impl包,在下文中一共展示了TypeImpl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: forceSetFeatureValue

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
private static void forceSetFeatureValue(FeatureStructure aFS, String aFeatureName,
        String aValue)
{
    CASImpl casImpl = (CASImpl) aFS.getCAS().getLowLevelCAS();
    TypeSystemImpl ts = (TypeSystemImpl) aFS.getCAS().getTypeSystem();
    Feature feat = aFS.getType().getFeatureByBaseName(aFeatureName);
    int featCode = ((FeatureImpl) feat).getCode();
    int thisType = ((TypeImpl) aFS.getType()).getCode();
    if (!ts.isApprop(thisType, featCode)) {
        throw new IllegalArgumentException("Feature structure does not have that feature");
    }
    if (!ts.subsumes(ts.getType(CAS.TYPE_NAME_STRING), feat.getRange())) {
        throw new IllegalArgumentException("Not a string feature!");
    }
    casImpl.ll_setStringValue(casImpl.ll_getFSRef(aFS), featCode, aValue);
}
 
开发者ID:webanno,项目名称:webanno,代码行数:17,代码来源:RemoteApiController2.java

示例2: SwanLink_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public SwanLink_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
  casFeat_linkBegin = jcas.getRequiredFeatureDE(casType, "linkBegin", "de.unisaarland.swan.export.model.uima.SwanAnnotation", featOkTst);
  casFeatCode_linkBegin  = (null == casFeat_linkBegin) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_linkBegin).getCode();

 
  casFeat_linkEnd = jcas.getRequiredFeatureDE(casType, "linkEnd", "de.unisaarland.swan.export.model.uima.SwanAnnotation", featOkTst);
  casFeatCode_linkEnd  = (null == casFeat_linkEnd) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_linkEnd).getCode();

 
  casFeat_Labels = jcas.getRequiredFeatureDE(casType, "Labels", "uima.cas.FSList", featOkTst);
  casFeatCode_Labels  = (null == casFeat_Labels) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Labels).getCode();

 
  casFeat_AnnotatorId = jcas.getRequiredFeatureDE(casType, "AnnotatorId", "uima.cas.String", featOkTst);
  casFeatCode_AnnotatorId  = (null == casFeat_AnnotatorId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_AnnotatorId).getCode();

}
 
开发者ID:annefried,项目名称:swan,代码行数:27,代码来源:SwanLink_Type.java

示例3: SwanAnnotation_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public SwanAnnotation_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
  casFeat_SpanType = jcas.getRequiredFeatureDE(casType, "SpanType", "uima.cas.String", featOkTst);
  casFeatCode_SpanType  = (null == casFeat_SpanType) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_SpanType).getCode();

 
  casFeat_AnnotatorId = jcas.getRequiredFeatureDE(casType, "AnnotatorId", "uima.cas.String", featOkTst);
  casFeatCode_AnnotatorId  = (null == casFeat_AnnotatorId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_AnnotatorId).getCode();

 
  casFeat_Labels = jcas.getRequiredFeatureDE(casType, "Labels", "uima.cas.FSList", featOkTst);
  casFeatCode_Labels  = (null == casFeat_Labels) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Labels).getCode();

 
  casFeat_Links = jcas.getRequiredFeatureDE(casType, "Links", "uima.cas.FSList", featOkTst);
  casFeatCode_Links  = (null == casFeat_Links) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Links).getCode();

 
  casFeat_AnnotationId = jcas.getRequiredFeatureDE(casType, "AnnotationId", "uima.cas.String", featOkTst);
  casFeatCode_AnnotationId  = (null == casFeat_AnnotationId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_AnnotationId).getCode();

}
 
开发者ID:annefried,项目名称:swan,代码行数:31,代码来源:SwanAnnotation_Type.java

示例4: GoldEvent_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public GoldEvent_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:11,代码来源:GoldEvent_Type.java

示例5: Token_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Token_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
  casFeat_filename = jcas.getRequiredFeatureDE(casType, "filename", "uima.cas.String", featOkTst);
  casFeatCode_filename  = (null == casFeat_filename) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_filename).getCode();

 
  casFeat_tokenId = jcas.getRequiredFeatureDE(casType, "tokenId", "uima.cas.Integer", featOkTst);
  casFeatCode_tokenId  = (null == casFeat_tokenId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_tokenId).getCode();

 
  casFeat_sentId = jcas.getRequiredFeatureDE(casType, "sentId", "uima.cas.Integer", featOkTst);
  casFeatCode_sentId  = (null == casFeat_sentId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_sentId).getCode();

 
  casFeat_pos = jcas.getRequiredFeatureDE(casType, "pos", "uima.cas.String", featOkTst);
  casFeatCode_pos  = (null == casFeat_pos) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_pos).getCode();

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:27,代码来源:Token_Type.java

示例6: IntervalCandidateSentence_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public IntervalCandidateSentence_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:11,代码来源:IntervalCandidateSentence_Type.java

示例7: Dct_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Dct_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
  casFeat_filename = jcas.getRequiredFeatureDE(casType, "filename", "uima.cas.String", featOkTst);
  casFeatCode_filename  = (null == casFeat_filename) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_filename).getCode();

 
  casFeat_value = jcas.getRequiredFeatureDE(casType, "value", "uima.cas.String", featOkTst);
  casFeatCode_value  = (null == casFeat_value) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_value).getCode();

 
  casFeat_timexId = jcas.getRequiredFeatureDE(casType, "timexId", "uima.cas.String", featOkTst);
  casFeatCode_timexId  = (null == casFeat_timexId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_timexId).getCode();

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:23,代码来源:Dct_Type.java

示例8: Keyterm_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Keyterm_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:11,代码来源:Keyterm_Type.java

示例9: Parse_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Parse_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
  casFeat_parseType = jcas.getRequiredFeatureDE(casType, "parseType", "uima.cas.String", featOkTst);
  casFeatCode_parseType  = (null == casFeat_parseType) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_parseType).getCode();

 
  casFeat_children = jcas.getRequiredFeatureDE(casType, "children", "uima.cas.FSArray", featOkTst);
  casFeatCode_children  = (null == casFeat_children) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_children).getCode();

 
  casFeat_prob = jcas.getRequiredFeatureDE(casType, "prob", "uima.cas.Double", featOkTst);
  casFeatCode_prob  = (null == casFeat_prob) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_prob).getCode();

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:23,代码来源:Parse_Type.java

示例10: Location_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Location_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:11,代码来源:Location_Type.java

示例11: Organization_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Organization_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:11,代码来源:Organization_Type.java

示例12: Time_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Time_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:11,代码来源:Time_Type.java

示例13: Money_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Money_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:11,代码来源:Money_Type.java

示例14: Person_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Person_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:11,代码来源:Person_Type.java

示例15: Sentence_Type

import org.apache.uima.cas.impl.TypeImpl; //导入依赖的package包/类
/** initialize variables to correspond with Cas Type and Features
* @generated
* @param jcas JCas
* @param casType Type 
*/
public Sentence_Type(JCas jcas, Type casType) {
  super(jcas, casType);
  casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

}
 
开发者ID:tudarmstadt-lt,项目名称:newsleak-frontend,代码行数:11,代码来源:Sentence_Type.java


注:本文中的org.apache.uima.cas.impl.TypeImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。