Examples of ImportHandler


Examples of cytoscape.data.ImportHandler

    return NAME + "-" + VERSION;
  }
 
  private void addFilterForSBML(){
    // Test if SBMLReader is set in Import filters and give warning if other filter is set
    ImportHandler ih = Cytoscape.getImportHandler();
    SBMLFilter filter = new SBMLFilter();
    Set<String> extensions = filter.getExtensionSet();
    for (String extension : extensions) {
      if (ih.getAllExtensions().contains(extension) && !extension.equals("xml")) {
        System.out.println("Extension : " + extension);
        String msg =
             "Currently SBMLReader is still registered with 'sbml & 'xml' files.\n" +
             "To activate CySBML functionality and to register CySBML with 'sbml & 'xml' files remove \n" +
             "'sbml-reader-2.8.x-jar-with-dependencies.jar'\n" +
             "from the Cytoscape plugin folder.\n" +
             "The full functionality of sbml-reader is available in CySBML";
         JOptionPane.showMessageDialog (Cytoscape.getDesktop(), msg);
        break;
      }
    }
    // Register CySBML with sbml files
    ih.addFilter(filter);
  }
View Full Code Here

Examples of javax.el.ImportHandler

                        .getContext(JspContext.class);
                result = page.findAttribute(key);

                if (result == null) {
                    // This might be the name of an imported class
                    ImportHandler importHandler = context.getImportHandler();
                    if (importHandler != null) {
                        Class<?> clazz = importHandler.resolveClass(key);
                        if (clazz != null) {
                            result = new ELClass(clazz);
                        }
                        if (result == null) {
                            // This might be the name of an imported static field
                            clazz = importHandler.resolveStatic(key);
                            if (clazz != null) {
                                try {
                                    result = clazz.getField(key).get(null);
                                } catch (IllegalArgumentException | IllegalAccessException |
                                        NoSuchFieldException | SecurityException e) {
View Full Code Here

Examples of org.apache.jackrabbit.core.xml.ImportHandler

        context.getItemValidator().checkModify(parent, options, Permission.NONE);

        SessionImporter importer = new SessionImporter(
                parent, this, uuidBehavior,
                context.getWorkspace().getConfig().getImportConfig());
        return new ImportHandler(importer, this);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.xml.ImportHandler

        int options = ItemValidator.CHECK_LOCK | ItemValidator.CHECK_CHECKED_OUT |
                ItemValidator.CHECK_CONSTRAINTS | ItemValidator.CHECK_HOLD | ItemValidator.CHECK_RETENTION;
        getValidator().checkModify(parent, options, Permission.NONE);

        SessionImporter importer = new SessionImporter(parent, this, uuidBehavior, wsp.getConfig().getImportConfig());
        return new ImportHandler(importer, this);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.xml.ImportHandler

    private void doImport(NodeImpl target, String xml) throws IOException, SAXException, RepositoryException {
        InputStream in = new ByteArrayInputStream(xml.getBytes("UTF-8"));
        SessionImporter importer = new SessionImporter(target, sImpl,
                ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, new PseudoConfig());
        ImportHandler ih = new ImportHandler(importer, sImpl);
        new ParsingContentHandler(ih).parse(in);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.xml.ImportHandler

    private void doImport(NodeImpl target, String xml, int importBehavior) throws IOException, SAXException, RepositoryException {
        InputStream in = new ByteArrayInputStream(xml.getBytes("UTF-8"));
        SessionImporter importer = new SessionImporter(target, sImpl,
                ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, new PseudoConfig(importBehavior));
        ImportHandler ih = new ImportHandler(importer, sImpl);
        new ParsingContentHandler(ih).parse(in);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.xml.ImportHandler

            throw new RepositoryException("not an absolute path: " + parentAbsPath);
        }

        Importer importer = new WorkspaceImporter(parentPath, this,
                rep.getNodeTypeRegistry(), uuidBehavior);
        return new ImportHandler(importer, session.getNamespaceResolver(),
                rep.getNamespaceRegistry());
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.xml.ImportHandler

                          int uuidBehavior)
            throws IOException, PathNotFoundException, ItemExistsException,
            ConstraintViolationException, InvalidSerializedDataException,
            LockException, RepositoryException {

        ImportHandler handler =
                (ImportHandler) getImportContentHandler(parentAbsPath, uuidBehavior);
        try {
            SAXParserFactory factory = SAXParserFactory.newInstance();
            factory.setNamespaceAware(true);
            factory.setFeature(
View Full Code Here

Examples of org.apache.jackrabbit.core.xml.ImportHandler

        int options = ItemValidator.CHECK_LOCK | ItemValidator.CHECK_CHECKED_OUT |
                ItemValidator.CHECK_CONSTRAINTS | ItemValidator.CHECK_HOLD | ItemValidator.CHECK_RETENTION;
        getValidator().checkModify(parent, options, Permission.NONE);

        SessionImporter importer = new SessionImporter(parent, this, uuidBehavior, wsp.getConfig().getImportConfig());
        return new ImportHandler(importer, this);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.xml.ImportHandler

    private void doImport(NodeImpl target, String xml) throws IOException, SAXException, RepositoryException {
        InputStream in = new ByteArrayInputStream(xml.getBytes("UTF-8"));
        SessionImporter importer = new SessionImporter(target, sImpl,
                ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, new PseudoConfig());
        ImportHandler ih = new ImportHandler(importer, sImpl);
        new ParsingContentHandler(ih).parse(in);
    }
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.