Examples of Builder


Examples of org.auraframework.impl.root.theme.VarDefImpl.Builder

    @Override
    public void setUp() throws Exception {
        super.setUp();
        this.qualifiedDescriptorName = "valid";
        this.builder = new Builder();
        this.builder.setValue("valid");
    }
View Full Code Here

Examples of org.bukkit.FireworkEffect.Builder

        Firework firework = location.getWorld().spawn(location, Firework.class);
        FireworkMeta fireworkMeta = firework.getFireworkMeta();
        fireworkMeta.setPower(power.asInt());

        Builder fireworkBuilder = FireworkEffect.builder();
        fireworkBuilder.with(FireworkEffect.Type.valueOf(type.asString().toUpperCase()));

                          fireworkBuilder.withColor(Conversion.convertColors(primary));
        if (fade != null) fireworkBuilder.withFade(Conversion.convertColors(fade));
        if (flicker)      fireworkBuilder.withFlicker();
        if (trail)        fireworkBuilder.withTrail();

        fireworkMeta.addEffects(fireworkBuilder.build());
        firework.setFireworkMeta(fireworkMeta);
    }
View Full Code Here

Examples of org.codemap.Configuration.Builder

        }
    }     

    private Configuration readPreviousMapState() {
        IEclipsePreferences node = getProjectPreferences(POINT_NODE_ID);
        Builder builder = Configuration.builder();
        try {
            for (String key: node.keys()) {
                String pointString = node.get(key, null);
                if (pointString == null) continue;
                String[] split = pointString.split("@");
                // cover legacy format
                if (split.length != 2 ) split = pointString.split("#");
                if (split.length != 2 ) {
                    Log.error(new RuntimeException("Invalid format of point storage for " + getProject().getName() + ": " + pointString));
                    continue;
                }
                double x = Double.parseDouble(split[0]);
                double y = Double.parseDouble(split[1]);
                builder.add(key, x, y);
            }
            return builder.build();
        } catch (BackingStoreException e) {
            Log.error(e);
        }
        return null;
    }
View Full Code Here

Examples of org.dedeler.template.view.Result.Builder

      loginStatus = new LoginStatus(auth.isAuthenticated(), isAnonymous(auth), auth.getName());
    }
    else {
      loginStatus = new LoginStatus(false, false, null);
    }
    return new Builder(true).resultObject(loginStatus).build();
  }
View Full Code Here

Examples of org.drools.core.marshalling.impl.ProtobufMessages.Header.StrategyIndex.Builder

    }
   
    private static void writeStrategiesIndex(MarshallerWriteContext context,
                                             ProtobufMessages.Header.Builder _header) throws IOException {
        for( Entry<ObjectMarshallingStrategy,Integer> entry : context.usedStrategies.entrySet() ) {
            Builder _strat = ProtobufMessages.Header.StrategyIndex.newBuilder()
                                     .setId( entry.getValue().intValue() )
                                     .setName( entry.getKey().getClass().getName() );
            Context ctx = context.strategyContext.get( entry.getKey() );
            if( ctx != null ) {
                Output os = ByteString.newOutput();
                ctx.write( new DroolsObjectOutputStream( os ) );
                _strat.setData( os.toByteString() );
                os.close();
            }
            _header.addStrategy( _strat.build() );
        }
    }
View Full Code Here

Examples of org.drools.core.marshalling.impl.ProtobufMessages.ProcessData.Builder

                .setMultithread( false )
                .setTime( time )
                .setRuleData( _ruleData.build() );

        if ( processMarshaller != null ) {
            Builder _pdata = ProtobufMessages.ProcessData.newBuilder();
            if ( context.marshalProcessInstances ) {
                context.parameterObject = _pdata;
                processMarshaller.writeProcessInstances( context );
            }

            if ( context.marshalWorkItems ) {
                context.parameterObject = _pdata;
                processMarshaller.writeWorkItems( context );
            }

            // this now just assigns the writer, it will not write out any timer information
            context.parameterObject = _pdata;
            processMarshaller.writeProcessTimers( context );

            _session.setProcessData( _pdata.build() );
        }

        Timers _timers = writeTimers( context.wm.getTimerService().getTimerJobInstances( context.wm.getId() ),
                                      context );
        if ( _timers != null ) {
View Full Code Here

Examples of org.drools.marshalling.impl.ProtobufMessages.Header.StrategyIndex.Builder

    }
   
    private static void writeStrategiesIndex(MarshallerWriteContext context,
                                             ProtobufMessages.Header.Builder _header) throws IOException {
        for( Entry<ObjectMarshallingStrategy,Integer> entry : context.usedStrategies.entrySet() ) {
            Builder _strat = ProtobufMessages.Header.StrategyIndex.newBuilder()
                                     .setId( entry.getValue().intValue() )
                                     .setName( entry.getKey().getClass().getName() );
            Context ctx = context.strategyContext.get( entry.getKey() );
            if( ctx != null ) {
                Output os = ByteString.newOutput();
                ctx.write( new DroolsObjectOutputStream( os ) );
                _strat.setData( os.toByteString() );
                os.close();
            }
            _header.addStrategy( _strat.build() );
        }
    }
View Full Code Here

Examples of org.drools.marshalling.impl.ProtobufMessages.ProcessData.Builder

                .setMultithread( multithread )
                .setTime( time )
                .setRuleData( _ruleData.build() );
       
        if( processMarshaller != null ) {
            Builder _pdata = ProtobufMessages.ProcessData.newBuilder();
            if ( context.marshalProcessInstances ) {
                context.parameterObject = _pdata;
                processMarshaller.writeProcessInstances( context );
            }

            if ( context.marshalWorkItems ) {
                context.parameterObject = _pdata;
                processMarshaller.writeWorkItems( context );
            }    

            // this now just assigns the writer, it will not write out any timer information
            context.parameterObject = _pdata;
            processMarshaller.writeProcessTimers( context );
           
            _session.setProcessData( _pdata.build() );
        }
       
        Timers _timers = writeTimers( context.wm.getTimerService().getTimerJobInstances(),
                                      context );
        if( _timers != null ) {
View Full Code Here

Examples of org.drools.reteoo.Builder

     * Construct.
     */
    public RuleBaseBuilder( )
    {
        this.ruleBaseContext = new RuleBaseContext( );
        this.builder = new Builder( ruleBaseContext );
       
    }
View Full Code Here

Examples of org.eclipse.aether.repository.RemoteRepository.Builder

    });
    repoSystem = locator.getService(RepositorySystem.class);
    if (repoSystem == null)
      throw new IllegalArgumentException("Failed to initialise Aether repository system");
   
    Builder builder = new RemoteRepository.Builder("remote", "default", mainUri.toString());
    if (username != null) {
      AuthenticationBuilder authBuilder = new AuthenticationBuilder().addUsername(username);
      if (password != null)
        authBuilder.addPassword(password);
      builder.setAuthentication(authBuilder.build());
    }
    remoteRepo = builder.build();
    localRepo = new LocalRepository(new File(cacheDir, "aether-local"));
   
    // Initialise Index
    if (indexUri == null) {
      indexedRepo = null;
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.