Package org.openstreetmap.osmosis.core.task.v0_6

Examples of org.openstreetmap.osmosis.core.task.v0_6.Source


    container.setLayoutData(new GridData(GridData.FILL_BOTH));
    Button btnCreateSource = new Button(container, SWT.NONE);
    btnCreateSource.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        Source newSource = new Source();
        newSource.setId("Source_" + (table.getItemCount() + 1)); //$NON-NLS-1$
        SourceBindingWrapper sourceBindingWrapper = new SourceBindingWrapper(newSource);
        writableList.add(sourceBindingWrapper);
        tableViewer.setSelection(new StructuredSelection(sourceBindingWrapper));
      }
    });
View Full Code Here


    titleStmt.getTitles().add(title);
    fileDesc.setTitleStmt(titleStmt);
    PubStmt pubStmt = new PubStmt();
    fileDesc.setPubStmt(pubStmt);
    SourceDesc sourceDesc = new SourceDesc();
    Source source = new Source();
    sourceDesc.getSources().add(source);
    fileDesc.setSourceDesc(sourceDesc);   
    meiHead.setFileDesc(fileDesc)
    mei.setMeiHead(meiHead);
    Music music = new Music();
View Full Code Here

    return changeSorter;
  }


  private void writeChangeset(XmlChangeReader xmlReader) {
    final ChangeSink localChangeSink = changeSink;

    xmlReader.setChangeSink(new ChangeSink() {
      private ChangeSink suppressedWriter = localChangeSink;


      @Override
      public void initialize(Map<String, Object> metaData) {
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  protected void processChangeset(XmlChangeReader xmlReader, ReplicationState replicationState) {
    final ChangeSink localChangeSink = changeSorter;
   
    xmlReader.setChangeSink(new ChangeSink() {
      private ChangeSink suppressedChangeSink = localChangeSink;

      @Override
      public void initialize(Map<String, Object> metaData) {
        // Suppress the call.
View Full Code Here

     
      // Connect the tasks.
      source.setSink(sink);
    }
    for (int i = 0; i < task.getChangeSinkCount(); i++) {
      ChangeSink changeSink;
      ChangeSource changeSource;
     
      // Retrieve the next sink.
      changeSink = task.getChangeSink(i);
     
View Full Code Here

  @Override
  public void connect(PipeTasks pipeTasks) {
    // A multi sink receives multiple streams of data, so we must connect
    // them up one by one.
    for (int i = 0; i < task.getChangeSinkCount(); i++) {
      ChangeSink sink;
      ChangeSource source;
     
      // Retrieve the next sink.
      sink = task.getChangeSink(i);
     
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  public void connect(PipeTasks pipeTasks) {
    ChangeSource source;

    // Get the input task. A sink only has one input, this corresponds to
    // pipe index 0.
    source = (ChangeSource) getInputTask(pipeTasks, 0, ChangeSource.class);

    // Cast the input feed to the correct type.
    // Connect the tasks.
    source.setChangeSink(task);

    // Register the task as an output. A source only has one output, this
    // corresponds to pipe index 0.
    setOutputTask(pipeTasks, task, 0);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  public void connect(PipeTasks pipeTasks) {
    ChangeSource source;
   
    // Get the input task. A sink only has one input, this corresponds to
    // pipe index 0.
    source = (ChangeSource) getInputTask(pipeTasks, 0, ChangeSource.class);
   
    // Cast the input feed to the correct type.
    // Connect the tasks.
    source.setChangeSink(task);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  public void connect(PipeTasks pipeTasks) {
    ChangeSource source;
   
    // Get the input task. A sink only has one input, this corresponds to
    // pipe index 0.
    source = (ChangeSource) getInputTask(pipeTasks, 0, ChangeSource.class);
   
    // Connect the tasks.
    source.setChangeSink(task);
   
    // Register the task as an output. A source only has one output, this
    // corresponds to pipe index 0.
    setOutputTask(pipeTasks, task, 0);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  public void connect(PipeTasks pipeTasks) {
    ChangeSource source;
   
    // Get the input task. A sink only has one input, this corresponds to
    // pipe index 0.
    source = (ChangeSource) getInputTask(pipeTasks, 0, ChangeSource.class);
   
    // Cast the input feed to the correct type.
    // Connect the tasks.
    source.setChangeSink(task);
   
    // Register the task as an output. A source only has one output, this
    // corresponds to pipe index 0.
    setOutputTask(pipeTasks, task, 0);
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.core.task.v0_6.Source

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.