Examples of factory()


Examples of org.gephi.graph.api.GraphModel.factory()

        Node n1 = graphModel.factory().newNode("n1");
        graph.addNode(n1);
        Node n2 = graphModel.factory().newNode("n2");
        graph.addNode(n2);
        Node n3 = graphModel.factory().newNode("n3");
        graph.addNode(n3);
        Node n4 = graphModel.factory().newNode("n4");
        graph.addNode(n4, n3);

        Edge e1 = graphModel.factory().newEdge(n1, n2, 1f, true);
View Full Code Here

Examples of org.gephi.graph.api.GraphModel.factory()

        graph.addNode(n1);
        Node n2 = graphModel.factory().newNode("n2");
        graph.addNode(n2);
        Node n3 = graphModel.factory().newNode("n3");
        graph.addNode(n3);
        Node n4 = graphModel.factory().newNode("n4");
        graph.addNode(n4, n3);

        Edge e1 = graphModel.factory().newEdge(n1, n2, 1f, true);
        graph.addEdge(e1);
        Edge e2 = graphModel.factory().newEdge(n2, n4, 3f, true);
View Full Code Here

Examples of org.gephi.graph.api.GraphModel.factory()

        Node n3 = graphModel.factory().newNode("n3");
        graph.addNode(n3);
        Node n4 = graphModel.factory().newNode("n4");
        graph.addNode(n4, n3);

        Edge e1 = graphModel.factory().newEdge(n1, n2, 1f, true);
        graph.addEdge(e1);
        Edge e2 = graphModel.factory().newEdge(n2, n4, 3f, true);
        graph.addEdge(e2);
        Edge e3 = graphModel.factory().newEdge(n2, n1, 1f, true);
        graph.addEdge(e3);
View Full Code Here

Examples of org.gephi.graph.api.GraphModel.factory()

        Node n4 = graphModel.factory().newNode("n4");
        graph.addNode(n4, n3);

        Edge e1 = graphModel.factory().newEdge(n1, n2, 1f, true);
        graph.addEdge(e1);
        Edge e2 = graphModel.factory().newEdge(n2, n4, 3f, true);
        graph.addEdge(e2);
        Edge e3 = graphModel.factory().newEdge(n2, n1, 1f, true);
        graph.addEdge(e3);

        AttributeColumn nodeCol1 = attributeModel.getNodeTable().addColumn("col1", "Column 1", AttributeType.STRING, AttributeOrigin.DATA, "default value col1");
View Full Code Here

Examples of org.gephi.graph.api.GraphModel.factory()

        Edge e1 = graphModel.factory().newEdge(n1, n2, 1f, true);
        graph.addEdge(e1);
        Edge e2 = graphModel.factory().newEdge(n2, n4, 3f, true);
        graph.addEdge(e2);
        Edge e3 = graphModel.factory().newEdge(n2, n1, 1f, true);
        graph.addEdge(e3);

        AttributeColumn nodeCol1 = attributeModel.getNodeTable().addColumn("col1", "Column 1", AttributeType.STRING, AttributeOrigin.DATA, "default value col1");
        AttributeColumn nodeCol2 = attributeModel.getNodeTable().addColumn("col2 listint", AttributeType.LIST_INTEGER);
        attributeModel.getNodeTable().addColumn("col3 listchar", AttributeType.LIST_CHARACTER);
View Full Code Here

Examples of org.hibernate.search.annotations.CharFilterDef.factory()

      filters[index].init( mapOfParameters );
      injectResourceLoader( filters[index], defaultResourceLoader, mapOfParameters );
    }
    for ( int index = 0; index < charFilters.length; index++ ) {
      CharFilterDef charFilterDef = analyzerDef.charFilters()[index];
      charFilters[index] = ( CharFilterFactory ) instantiate( charFilterDef.factory() );
      final Map<String, String> mapOfParameters = getMapOfParameters(
          charFilterDef.params(), luceneMatchVersion
      );
      charFilters[index].init( mapOfParameters );
      injectResourceLoader( charFilters[index], defaultResourceLoader, mapOfParameters );
View Full Code Here

Examples of org.hibernate.search.annotations.TokenFilterDef.factory()

    final int charLength = analyzerDef.charFilters().length;
    TokenFilterFactory[] filters = new TokenFilterFactory[length];
    CharFilterFactory[] charFilters = new CharFilterFactory[charLength];
    for ( int index = 0; index < length; index++ ) {
      TokenFilterDef filterDef = analyzerDef.filters()[index];
      filters[index] = ( TokenFilterFactory ) instantiate( filterDef.factory() );
      final Map<String, String> mapOfParameters = getMapOfParameters( filterDef.params(), luceneMatchVersion );
      filters[index].init( mapOfParameters );
      injectResourceLoader( filters[index], defaultResourceLoader, mapOfParameters );
    }
    for ( int index = 0; index < charFilters.length; index++ ) {
View Full Code Here

Examples of org.hibernate.search.annotations.TokenizerDef.factory()

   * @return a Lucene <code>Analyzer</code>
   */
  public static Analyzer buildAnalyzer(AnalyzerDef analyzerDef, Version luceneMatchVersion) {
    ResourceLoader defaultResourceLoader = new HibernateSearchResourceLoader();
    TokenizerDef token = analyzerDef.tokenizer();
    TokenizerFactory tokenFactory = ( TokenizerFactory ) instantiate( token.factory() );
    final Map<String, String> tokenMapsOfParameters = getMapOfParameters( token.params(), luceneMatchVersion );
    tokenFactory.init( tokenMapsOfParameters );
    injectResourceLoader( tokenFactory, defaultResourceLoader, tokenMapsOfParameters );

    final int length = analyzerDef.filters().length;
View Full Code Here

Examples of org.jboss.beans.metadata.api.annotations.Dependency.factory()

         if (target != null && target instanceof SecurityDomainDependencyFactory)
            factory = SecurityDomainDependencyFactory.class.cast(target);
      }

      if (factory == null)
         factory = (SecurityDomainDependencyFactory)dependency.factory().newInstance();

      DependencyItem item = factory.createDependencyItem(annotation, dependency);
      dependencies.addIDependOn(item);

      return null;
View Full Code Here

Examples of org.osgi.service.component.annotations.Component.factory()

      final String nameDefault = type.getName();
      component.name = Util.isValidText(name) ? name : nameDefault;

      component.enabled = anno.enabled();

      final String factory = anno.factory();
      component.factory = Util.isValidText(factory) ? factory : null;

      component.immediate = anno.immediate();

      component.policy = anno.configurationPolicy();
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.