Examples of Source


Examples of org.mapstruct.itest.simple.Source

public class ConversionTest {

    @Test
    public void shouldApplyConversions() {
        Source source = new Source();
        source.setFoo( 42 );
        source.setBar( 23L );
        source.setZip( 73 );

        Target target = SourceTargetMapper.INSTANCE.sourceToTarget( source );

        assertThat( target ).isNotNull();
        assertThat( target.getFoo() ).isEqualTo( Long.valueOf( 42 ) );
View Full Code Here

Examples of org.modeshape.jcr.query.model.Source

        assertThat(p.selectorName(), is(selectorName("tableA")));
    }

    @Test
    public void shouldReturnNullFromParsePropertyExistanceIfExpressionDoesNotMatchPattern() {
        Source s = mock(Source.class);
        assertThat(parser.parsePropertyExistance(tokens("tableA WILL NOT"), typeSystem, s), is(nullValue()));
        assertThat(parser.parsePropertyExistance(tokens("tableA.property1 NOT NULL"), typeSystem, s), is(nullValue()));
        assertThat(parser.parsePropertyExistance(tokens("tableA.property1 IS NOT SOMETHING"), typeSystem, s), is(nullValue()));
    }
View Full Code Here

Examples of org.netbeans.modules.parsing.api.Source

    static int getFieldLineNumber(
            FileObject fo,
            final String className,
            final String fieldName) {
        Source source = Source.create(fo);
        if (source == null) {
            return -1;
        }
        final int[] result = new int[]{-1};
View Full Code Here

Examples of org.openhab.binding.epsonprojector.internal.EpsonProjectorDevice.Source

      case SHARP:
        logger.warn("Get '{}' not implemented!",
            commmandType.toString());
        return null;
      case SOURCE:
        Source source = remoteController.getSource();
        return new StringType(source.toString());
      case SYNC:
        int sync = remoteController.getSync();
        return new DecimalType(sync);
      case TINT:
        int tint = remoteController.getTint();
View Full Code Here

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

  /**
   * {@inheritDoc}
   */
  @Override
  public void connect(PipeTasks pipeTasks) {
    Source source;
    int taskSourceCount;
   
    // Get the input task. A sink only has one input, this corresponds to
    // pipe index 0.
    source = (Source) getInputTask(pipeTasks, 0, Source.class);
   
    // Cast the input feed to the correct type.
    // Connect the tasks.
    source.setSink(task);
   
    // Register all the sources provided by this task as outputs.
    taskSourceCount = task.getSourceCount();
    for (int i = 0; i < taskSourceCount; i++) {
      setOutputTask(pipeTasks, task.getSource(i), i);
View Full Code Here

Examples of org.opoo.press.source.Source

   
    SourceEntry sourceEntry = new SourceEntry(file);
    List<String> metaLines = new ArrayList<String>();
    boolean hasFrontMatter = true;
    try {
      Source source = sourceParser.parse(sourceEntry);
      Map<String, Object> meta = source.getMeta();
      if(!meta.containsKey("layout")){
        metaLines.add("layout: post");
      }
      if(!meta.containsKey("date")){
        metaLines.add("date: '" + DATE_FORMAT.format(date) + "'");
View Full Code Here

Examples of org.rssowl.ui.internal.dialogs.importer.ImportSourcePage.Source

  }

  @SuppressWarnings("unchecked")
  private void doImportSource() {
    ImportSourcePage importSourcePage = (ImportSourcePage) getPreviousPage();
    final Source source = importSourcePage.getSource();

    /* Return if the Source did not Change */
    if (source == Source.RECOMMENDED && fCurrentSourceKind == Source.RECOMMENDED)
      return;
    else if (source == Source.GOOGLE && fCurrentSourceKind == Source.GOOGLE)
View Full Code Here

Examples of org.sonar.wsclient.services.Source

            @Override
            public List<Violation> compute() {
                return file.getProject().getComponent(SonarProjectComponent.class).getSonarCache().getViolations(file.getVirtualFile());
            }
        });
        Source source = ApplicationManager.getApplication().runReadAction(new Computable<Source>() {
            @Override
            public Source compute() {
                return file.getProject().getComponent(SonarProjectComponent.class).getSonarCache().getSource(file.getVirtualFile());
            }
        });
View Full Code Here

Examples of qurtext.domain.Source

  @SuppressWarnings("unchecked")
  private Source getSource(String urlPath, String params) {
    PersistenceManager pm = PMF.get().getPersistenceManager();
    try {
      String query = "select from " + Source.class.getName() + " where urlPath=='" + urlPath + "' && params==\"" + params + "\"";
      Source result=((Collection<Source>) pm.newQuery(query)
          .execute()).iterator().next();
      return result;
    } catch (NoSuchElementException e){
      return null;
    } finally {
View Full Code Here

Examples of speculoos.spi.Source

     * @throws MapperConfigurationException
     */
    public void test01BasicConfigure() throws MapperConfigurationException {
        /* configure */
        Mapper m = (Mapper) mockmapper.proxy();
        Source s = (Source) mocksrc.proxy();
        mockmapper.expects(atLeastOnce()).method("getName");
        configure.addMapper("map", m);
        configure.addSource("source", s);
        configure.link("map", "source");
        configure.setConfigured();
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.