Package org.apache.uima.cas.impl

Examples of org.apache.uima.cas.impl.CASImpl.createFS()


    CASImpl cas = this.fSTreeModel.getCas();
    if (this.nodeClass != STD_FS || this.addr == 0) {
      return false;
    }
    if (cas.getTypeSystem().subsumes(cas.getAnnotationType(), getType())) {
      if (cas == ((AnnotationFS) cas.createFS((int) this.addr)).getView()) {
        return true;
      }
    }
    return false;
  }
View Full Code Here


    CASImpl cas = this.fSTreeModel.getCas();
    if (this.nodeClass != STD_FS || this.addr == 0) {
      return false;
    }
    if (cas.getTypeSystem().subsumes(cas.getAnnotationType(), getType())) {
      if (cas == ((AnnotationFS) cas.createFS((int) this.addr)).getView()) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

   */
  @Deprecated
  public Sofa(JCas jcas, SofaID ID, String mimeType) {
    super(jcas);
    final CASImpl casImpl = jcasType.casImpl;
    casImpl.addSofa(casImpl.createFS(this.addr), ID.getSofaID(), mimeType);
    casImpl.getView(this); // needed to make reset work
  }

  /**
   * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
View Full Code Here

   */
  @Deprecated
  public Sofa(JCas jcas, SofaID ID, String mimeType) {
    super(jcas);
    final CASImpl casImpl = jcasType.casImpl;
    casImpl.addSofa(casImpl.createFS(this.addr), ID.getSofaID(), mimeType);
    casImpl.getView(this); // needed to make reset work
  }

  /**
   * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
View Full Code Here

    CASImpl cas = this.fSTreeModel.getCas();
    if (this.nodeClass != STD_FS || this.addr == 0) {
      return false;
    }
    if (cas.getTypeSystem().subsumes(cas.getAnnotationType(), getType())) {
      if (cas == ((AnnotationFS) cas.createFS((int) this.addr)).getView()) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

   *             also create the Sofa for that view.
   */
  public Sofa(JCas jcas, SofaID ID, String mimeType) {
    super(jcas);
    final CASImpl casImpl = jcasType.casImpl;
    casImpl.addSofa(casImpl.createFS(this.addr), ID.getSofaID(), mimeType);
  }

  /**
   * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
   *
 
View Full Code Here

   *             also create the Sofa for that view.
   */
  public Sofa(JCas jcas, SofaID ID, String mimeType) {
    super(jcas);
    final CASImpl casImpl = jcasType.casImpl;
    casImpl.addSofa(casImpl.createFS(this.addr), ID.getSofaID(), mimeType);
    casImpl.getView(this); // needed to make reset work
  }

  /**
   * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
View Full Code Here

    CASImpl cas = this.fSTreeModel.getCas();
    if (this.nodeClass != STD_FS || this.addr == 0) {
      return false;
    }
    if (cas.getTypeSystem().subsumes(cas.getAnnotationType(), getType())) {
      if (cas == ((AnnotationFS) cas.createFS((int) this.addr)).getView()) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.