Package org.apache.uima.cas.impl

Examples of org.apache.uima.cas.impl.OutOfTypeSystemData


  /**
   * @see org.apache.vinci.transport.TransportableFactory#makeTransportable()
   */
  public synchronized Transportable makeTransportable() {
    return new CASTransportable(mCasPool, new OutOfTypeSystemData(), null, false);
  }
View Full Code Here


    xcasDeser.setDocumentTypeName(this.getDocumentTextTypeName());
    // xcasDeser.setDocumentTextFeautre(this.getDocumentTextFeatureName()); NOT NEEDED

    // to be lenient, install OutOfTypeSystemData object to collect data that doesn't
    // fit into target CAS's type system.
    OutOfTypeSystemData ootsd = null;
    if (aLenient) {
      ootsd = new OutOfTypeSystemData();
    }
    generator.setContentHandler(xcasDeser.getXCASHandler(aContainer, ootsd));
    try {
      generator.generateXCas(aData);
    } catch (Exception e) {
View Full Code Here

          mDelegateHandler = deser.getXmiCasHandler(mCAS, mLenient);
        } else if ("CAS".equals(localName)) // use XCAS
        {
          XCASDeserializer deser = new XCASDeserializer(mCAS.getTypeSystem());
          mDelegateHandler = deser
                  .getXCASHandler(mCAS, mLenient ? new OutOfTypeSystemData() : null);
        } else // default to XMI
        {
          XmiCasDeserializer deser = new XmiCasDeserializer(mCAS.getTypeSystem());
          mDelegateHandler = deser.getXmiCasHandler(mCAS, mLenient);
        }
View Full Code Here

  /**
   * @see org.apache.vinci.transport.TransportableFactory#makeTransportable()
   */
  public synchronized Transportable makeTransportable() {
    return new CASTransportable(mCasPool, new OutOfTypeSystemData(), null, false);
  }
View Full Code Here

          } else {
            // The controller is stopping
            return;
          }
        }
        OutOfTypeSystemData otsd = getInProcessCache().getOutOfTypeSystemData(aCasReferenceId);
        MessageContext mContext = getInProcessCache()
                .getMessageAccessorByReference(aCasReferenceId);
        CacheEntry newEntry = getInProcessCache().register(casProduced, mContext, otsd);
        // if this Cas Multiplier is not Top Level service, add new Cas Id to the private
        // cache of the parent aggregate controller. The Aggregate needs to know about
View Full Code Here

   * @param anXcas
   * @param aCas
   * @throws Exception
   */
  public OutOfTypeSystemData deSerialiazeFromXCAS(String anXcas, CAS aCas) throws Exception {
    OutOfTypeSystemData otsd = new OutOfTypeSystemData();
    TypeSystem typesToLoad2 = aCas.getTypeSystem();
    ByteArrayInputStream bis = new ByteArrayInputStream(anXcas.getBytes());
    XCASDeserializer deser2 = new XCASDeserializer(typesToLoad2);
    ContentHandler deserHandler2 = deser2.getXCASHandler(aCas, otsd);

View Full Code Here

          } else {
            // The controller is stopping
            return;
          }
        }
        OutOfTypeSystemData otsd = getInProcessCache().getOutOfTypeSystemData(aCasReferenceId);
        MessageContext mContext = getInProcessCache()
                .getMessageAccessorByReference(aCasReferenceId);
        CacheEntry newEntry = getInProcessCache().register(casProduced, mContext, otsd);
        // if this Cas Multiplier is not Top Level service, add new Cas Id to the private
        // cache of the parent aggregate controller. The Aggregate needs to know about
View Full Code Here

   * @param anXcas
   * @param aCas
   * @throws Exception
   */
  public OutOfTypeSystemData deSerialiazeFromXCAS(String anXcas, CAS aCas) throws Exception {
    OutOfTypeSystemData otsd = new OutOfTypeSystemData();
    TypeSystem typesToLoad2 = aCas.getTypeSystem();
    ByteArrayInputStream bis = new ByteArrayInputStream(anXcas.getBytes());
    XCASDeserializer deser2 = new XCASDeserializer(typesToLoad2);
    ContentHandler deserHandler2 = deser2.getXCASHandler(aCas, otsd);

View Full Code Here

          } else {
            // The controller is stopping
            return;
          }
        }
        OutOfTypeSystemData otsd = getInProcessCache().getOutOfTypeSystemData(aCasReferenceId);
        MessageContext mContext = getInProcessCache()
                .getMessageAccessorByReference(aCasReferenceId);
        CacheEntry newEntry = getInProcessCache().register(casProduced, mContext, otsd);
        // if this Cas Multiplier is not Top Level service, add new Cas Id to the private
        // cache of the parent aggregate controller. The Aggregate needs to know about
View Full Code Here

   * @param aCas
   * @throws Exception
   */
  public static OutOfTypeSystemData deSerialiazeFromXCAS(String anXcas, CAS aCas) throws Exception
  {
    OutOfTypeSystemData otsd = new OutOfTypeSystemData();
    TypeSystem typesToLoad2 = aCas.getTypeSystem();
    ByteArrayInputStream bis = new ByteArrayInputStream(anXcas.getBytes());
    XCASDeserializer deser2 = new XCASDeserializer(typesToLoad2);
    ContentHandler deserHandler2 = deser2.getXCASHandler(aCas, otsd);

View Full Code Here

TOP

Related Classes of org.apache.uima.cas.impl.OutOfTypeSystemData

Copyright © 2018 www.massapicom. 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.