Examples of Source


Examples of edu.pitt.dbmi.nlp.noble.terminology.Source

        .getConfigParameterValue("source.filter");
    if (!StringUtils.isEmpty(colonSeparatedSources)) {
      final String[] sabs = colonSeparatedSources.split(":");
      final Source[] sourceFilters = new Source[sabs.length];
      for (int tdx = 0; tdx < sabs.length; tdx++) {
        sourceFilters[tdx] = new Source(sabs[tdx]);
      }
      terminology.setFilterSources(sourceFilters);
    }
  }
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Source

  private void parameterizeSources() {
    if (sources != null && !sources.isEmpty()) {
      final Source[] sourceFilters = new Source[sources.size()];
      int tdx = 0;
      for (String sab : sources) {
        sourceFilters[tdx++] = new Source(sab);
      }
      coder.setFilterSources(sourceFilters);
    } else {
      coder.setFilterLanguages(null);
    }
View Full Code Here

Examples of fiftyone.mobile.detection.entities.stream.Source

public final class StreamFactory {

    public static Dataset create(byte[] data) throws IOException {
        return read(
                new BinaryReader(data),
                new Source(data));
    }
View Full Code Here

Examples of flex2.compiler.Source

            // Create a new Source for the node.
            VirtualFile virtualFile = new TextFile("", unit.getSource().getName() + "$" + className,
                                                   unit.getSource().getName(), unit.getSource().getParent(),
                                                   MimeMappings.MXML, unit.getSource().getLastModified());
            Source source = new Source(virtualFile, unit.getSource(), className, false, false);

            // Set the Source's syntax tree to the DocumentNode
            // equivalent of the grandchild, so that the text
            // representation won't have to be recreated and reparsed.
            DocumentNode inlineDocumentNode =
                DocumentNode.inlineDocumentNode(componentRoot.getNamespace(), componentRoot.getLocalPart(),
                        NameFormatter.toDot(docInfo.getPackageName(), docInfo.getClassName()));

            inlineDocumentNode.beginLine = componentRoot.beginLine;
            inlineDocumentNode.beginColumn = componentRoot.beginColumn;
            inlineDocumentNode.endLine = componentRoot.endLine;
            inlineDocumentNode.endColumn = componentRoot.endColumn;
            inlineDocumentNode.image = componentRoot.image;
           
            // Inline components are line inner classes, so there need to be suppressed in the asdoc.
            if(generateAst)
            {
                inlineDocumentNode.comment = "<description><![CDATA[]]></description><private><![CDATA[]]></private>";   
            }
            else
            {
                inlineDocumentNode.comment = "@private";
            }
           
            componentRoot.copy(inlineDocumentNode);
            inlineDocumentNode.setLocalClassMappings(docInfo.getLocalClassMappings());
            inlineDocumentNode.setLanguageNamespace(docInfo.getLanguageNamespace());
            inlineDocumentNode.setVersion(docInfo.getVersion());

            addExcludeClassNode(inlineDocumentNode, componentRoot);
           
            source.addSourceFragment(AttrInlineComponentSyntaxTree, inlineDocumentNode, null);

            unit.addGeneratedSource(classQName, source);
        }
View Full Code Here

Examples of gaia.cu1.mdb.cu3.agis.dm.Source

   
    // Combined astrometry data: terminal output
    for (GaiaRoot element : combinedAstrometryArrayList){
     
      // Parse object into Source
      Source combinedAstrometryData = (Source)element;
     
      // Parse source data
      long   sourceId   = combinedAstrometryData.getSourceId();
      int    nObs       = combinedAstrometryData.getNObs()[0];
      double alpha      = combinedAstrometryData.getAlpha();
      double alphaError = combinedAstrometryData.getAlphaError();
      double delta      = combinedAstrometryData.getDelta();
      double deltaError = combinedAstrometryData.getDeltaError();
      double varpi      = combinedAstrometryData.getVarpi();
      double varpiError = combinedAstrometryData.getVarpiError();
      System.out.printf( "SourceId:" + sourceId + "\n");
     
      // Terminal output
      System.out.printf("Source ID: %20d; N obs: %4d;" +
          " alpha: %15.5e +- %15.5e;" +
View Full Code Here

Examples of gwt.g2d.client.media.Source

    add(new HTML("Music obtained from: <a href=\""
        + "http://www.vorbis.com/music/Epoq-Lepidoptera.ogg\">"
        + "http://www.vorbis.com/music/Epoq-Lepidoptera.ogg</a>"));
   
    Audio audio = new Audio();
    Source source = new Source("http://www.vorbis.com/music/Epoq-Lepidoptera.ogg");
    source.setType("audio/ogg");
    audio.addSource(source);
    audio.setControls(true);
    audio.setAutobuffer(true);
    add(audio);
  }
View Full Code Here

Examples of info.textgrid.lab.noteeditor.mei2013.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

Examples of javax.jcr.query.qom.Source

        assertEquals("Wrong size of orderings", 1, qom.getOrderings().length);
        assertEquals("Wrong size of columns", 1, qom.getColumns().length);
    }

    public void testCreateQueryFromSource() throws RepositoryException {
        Source selector = qf.selector(testNodeType, SELECTOR_NAME1);
        QueryObjectModel qom = qf.createQuery(selector, null, null, null);
        assertTrue("Not a selector source", qom.getSource() instanceof Selector);
        assertNull("Constraint must be null", qom.getConstraint());
        assertEquals("Wrong size of orderings", 0, qom.getOrderings().length);
        assertEquals("Wrong size of columns", 0, qom.getColumns().length);
View Full Code Here

Examples of javax.xml.transform.Source

        public static String transform(String stylesheet,
                                       String srcXMLString,
                                       HashMap<String, String> params) throws Exception {
            StringWriter writer = new StringWriter();
            StreamResult result = new StreamResult( writer );
            Source src = new StreamSource( new StringReader( srcXMLString ) );
            transform( stylesheet,
                       src,
                       result,
                       params );
            return writer.toString();
View Full Code Here

Examples of javax.xml.transform.Source

        Document document = DOMUtils.readXml(getResourceAsStream("echo-payload.xml"));

        DOMSource source = new DOMSource(document.getDocumentElement());
       
        Source object = d.invoke(source);
        assertNotNull(object);
    }
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.