Examples of addType()


Examples of com.bea.xml.stream.filters.TypeFilter.addType()

    **/

    XMLInputFactory factory = XMLInputFactory.newInstance();

    TypeFilter f = new com.bea.xml.stream.filters.TypeFilter();
    f.addType(XMLEvent.START_ELEMENT);
    f.addType(XMLEvent.END_ELEMENT);
   
    XMLEventReader reader = factory.createFilteredReader(
      factory.createXMLEventReader(new java.io.FileReader(args[0])),

Examples of com.facebook.presto.type.TypeRegistry.addType()

    @Test
    public void testEvaluateClassifierPredictions()
            throws Exception
    {
        TypeRegistry typeRegistry = new TypeRegistry();
        typeRegistry.addType(new ClassifierType());
        typeRegistry.addType(new RegressorType());
        typeRegistry.addType(new ModelType());
        metadata.addFunctions(new MLFunctionFactory(typeRegistry).listFunctions());
        InternalAggregationFunction aggregation = metadata.getExactFunction(new Signature("evaluate_classifier_predictions", StandardTypes.VARCHAR, StandardTypes.BIGINT, StandardTypes.BIGINT)).getAggregationFunction();
        Accumulator accumulator = aggregation.bind(ImmutableList.of(0, 1), Optional.<Integer>absent(), Optional.<Integer>absent(), 1.0).createAccumulator();

Examples of com.strobel.decompiler.languages.java.ast.AstBuilder.addType()

    }

    @Override
    public void decompileType(final TypeDefinition type, final ITextOutput output, final DecompilationOptions options) {
        final AstBuilder builder = createAstBuilder(options, type, false);
        builder.addType(type);
        runTransformsAndGenerateCode(builder, output, options, null);
    }

    @SuppressWarnings("UnusedParameters")
    private AstBuilder createAstBuilder(

Examples of com.volantis.mcs.build.themes.definitions.types.ChoiceType.addType()

            popObject();
            popObject();

            Iterator it = typeList.getList().iterator();
            while (it.hasNext()) {
                choiceType.addType((Type) it.next());
            }
            storeType(choiceType);
        } else if (name.equals("pairType")) {
            PairType pairType = definitionsFactory.createPairType();

Examples of com.volantis.mcs.migrate.impl.framework.identification.DefaultResourceIdentifier.addType()

        DefaultGraph graph = new DefaultGraph(version2);
        Step step = new DefaultStep(version1, version2,
                new TestStreamMigrator(inputData, outputData));
        graph.addStep(step);
        type.setGraph(graph);
        resourceRecogniser.addType(type);
        DefaultResourceMigrator resourceMigrator =
                new DefaultResourceMigrator(streamBufferFactory,
                        resourceRecogniser, notificationReporter);

        ByteArrayInputStream bais = new ByteArrayInputStream(

Examples of edu.cmu.cs.fusion.constraint.XMLContext.addType()

  private XMLContext createContext(String absolutePath, Document doc) {
    XMLContext context = new XMLContext(absolutePath);
    NodeList imports = doc.getDocumentElement().getElementsByTagName(IMPORT);
    for (int ndx = 0; ndx < imports.getLength(); ndx++) {
      Element importElement = (Element) imports.item(ndx);
      context.addType(importElement.getAttribute(NAME));
    }
    return context;
  }
}

Examples of edu.isi.karma.rep.alignment.SemanticTypes.addType()

    Worksheet worksheet = workspace.getWorksheet(worksheetId);

    // Add the old SemanticType object if it is not null
    SemanticTypes types = worksheet.getSemanticTypes();
    if (oldSemanticType != null)
      types.addType(oldSemanticType);

    // Update the container
    UpdateContainer c = new UpdateContainer();
   
    // Update with old alignment

Examples of fr.imag.adele.metadataparser.XmlCommonHandler.addType()

                                    );
            is = conn.getInputStream();

            // Create the parser Kxml
            XmlCommonHandler handler = new XmlCommonHandler();
            handler.addType("bundles", ArrayList.class);
            handler.addType("repository", HashMap.class);
            handler.addType("extern-repositories", ArrayList.class);
            handler.addType("bundle", MultivalueMap.class);
            handler.addType("import-package", HashMap.class);
            handler.addType("export-package", HashMap.class);

Examples of fr.imag.adele.metadataparser.XmlCommonHandler.addType()

            is = conn.getInputStream();

            // Create the parser Kxml
            XmlCommonHandler handler = new XmlCommonHandler();
            handler.addType("bundles", ArrayList.class);
            handler.addType("repository", HashMap.class);
            handler.addType("extern-repositories", ArrayList.class);
            handler.addType("bundle", MultivalueMap.class);
            handler.addType("import-package", HashMap.class);
            handler.addType("export-package", HashMap.class);
            handler.setDefaultType(String.class);

Examples of fr.imag.adele.metadataparser.XmlCommonHandler.addType()

            // Create the parser Kxml
            XmlCommonHandler handler = new XmlCommonHandler();
            handler.addType("bundles", ArrayList.class);
            handler.addType("repository", HashMap.class);
            handler.addType("extern-repositories", ArrayList.class);
            handler.addType("bundle", MultivalueMap.class);
            handler.addType("import-package", HashMap.class);
            handler.addType("export-package", HashMap.class);
            handler.setDefaultType(String.class);
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.