Package de.FeatureModellingTool.Customize.store

Examples of de.FeatureModellingTool.Customize.store.CmdlParser


//        }
        //end ��ȡ������Ϣ

        //begin ��ȡ������Ϣ
        //gh start
        CmdlParser cp = new CmdlParserPrototype();
    try {
      String custom = dataSrc.getCustomizationIndex();
      InputStream inputStream = new StringBufferInputStream(custom);

      for (Iterator<String> itCVId = cp.openCustomizationVersionIds(
          inputStream).iterator(); itCVId.hasNext();) {
        String cvId = itCVId.next();
        String cusVersionFileContent = dataSrc.getCustomizationVersionFileContent(cvId);
        InputStream isCV = new ByteArrayInputStream(cusVersionFileContent.getBytes());
        cp.openCustomizationVersion(isCV , fcomponent);
      }
    } catch (Exception exception) {
//      errorInfo = "Exception occurs when read customization file.\n"
//          + exception;
//      return false;
View Full Code Here


        }
        // end д��������Ϣ

        // begin д�붨����Ϣ
        // gh start
        CmdlParser cParser = new CmdlParserPrototype();

        cParser
            .saveCustomizationModel(bufferStream,
                customizationModel);
        ZipEntry customizationZipEntry = new ZipEntry(
            "customization_index.txt");
        zipOutStream.putNextEntry(customizationZipEntry);
        bufferStream.writeTo(zipOutStream);
        zipOutStream.closeEntry();
        bufferStream.reset();

        for (Iterator<String> itCVId = customizationModel
            .getCustomizationVersionIds().iterator(); itCVId
            .hasNext();) {
          String cvId = itCVId.next();

          cParser.saveCustomizationVersion(bufferStream,
              customizationModel.getCustomizationVersion(cvId));
          ZipEntry cvZipEntry = new ZipEntry(cParser
              .getCustomizationVersionFileName(cvId));
          zipOutStream.putNextEntry(cvZipEntry);
          bufferStream.writeTo(zipOutStream);
          zipOutStream.closeEntry();
View Full Code Here

        }
        //end ��ȡ������Ϣ

        //begin ��ȡ������Ϣ
        //gh start
        CmdlParser cp = new CmdlParserPrototype();
    try {
      zipEntry = zipFile.getEntry("customization_index.txt");
      InputStream inputStream = zipFile.getInputStream(zipEntry);

      for (Iterator<String> itCVId = cp.openCustomizationVersionIds(
          inputStream).iterator(); itCVId.hasNext();) {
        String cvId = itCVId.next();
        zipEntry = zipFile.getEntry(cp.getCustomizationVersionFileName(cvId));
        InputStream isCV = zipFile.getInputStream(zipEntry);
        cp.openCustomizationVersion(isCV , featureModel);
      }
    } catch (Exception exception) {
//      errorInfo = "Exception occurs when read customization file.\n"
//          + exception;
//      return false;
View Full Code Here

//        }
        //end ��ȡ������Ϣ

        //begin ��ȡ������Ϣ
        //gh start
        CmdlParser cp = new CmdlParserPrototype();
    try {
      String custom = dataSrc.getCustomizationIndex();
      InputStream inputStream = new StringBufferInputStream(custom);

      for (Iterator<String> itCVId = cp.openCustomizationVersionIds(
          inputStream).iterator(); itCVId.hasNext();) {
        String cvId = itCVId.next();
        String cusVersionFileContent = dataSrc.getCustomizationVersionFileContent(cvId);
        InputStream isCV = new StringBufferInputStream(cusVersionFileContent);
        cp.openCustomizationVersion(isCV , featureModel);
      }
    } catch (Exception exception) {
//      errorInfo = "Exception occurs when read customization file.\n"
//          + exception;
//      return false;
View Full Code Here

                }
                //end д��������Ϣ

                //begin д�붨����Ϣ
                //gh start
                CmdlParser cParser = new CmdlParserPrototype();

                cParser.saveCustomizationModel(bufferStream , customizationModel);
                ZipEntry customizationZipEntry = new ZipEntry("customization_index.txt");
                zipOutStream.putNextEntry(customizationZipEntry);
                bufferStream.writeTo(zipOutStream);
                zipOutStream.closeEntry();
                bufferStream.reset();

                for (Iterator<String> itCVId = customizationModel.getCustomizationVersionIds().iterator() ; itCVId.hasNext() ; ) {
                  String cvId = itCVId.next();

                  cParser.saveCustomizationVersion(bufferStream , customizationModel.getCustomizationVersion(cvId));
                  ZipEntry cvZipEntry = new ZipEntry(cParser.getCustomizationVersionFileName(cvId));
                  zipOutStream.putNextEntry(cvZipEntry);
                  bufferStream.writeTo(zipOutStream);
                  zipOutStream.closeEntry();

                  bufferStream.reset();
View Full Code Here

TOP

Related Classes of de.FeatureModellingTool.Customize.store.CmdlParser

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.