Examples of validateArguments()


Examples of javax.media.jai.OperationDescriptor.validateArguments()

/*  759 */       throw new IllegalArgumentException(JaiI18N.getString("RemoteJAI15"));
/*      */     }
/*      */
/*  766 */     StringBuffer msg = new StringBuffer();
/*  767 */     args = (ParameterBlock)args.clone();
/*  768 */     if (!odesc.validateArguments("renderable", args, msg)) {
/*  769 */       throw new IllegalArgumentException(msg.toString());
/*      */     }
/*      */
/*  772 */     RemoteRenderableOp op = new RemoteRenderableOp(this.operationRegistry, this.protocolName, this.serverName, opName, args);
/*      */
View Full Code Here

Examples of org.kitesdk.morphline.base.Configs.validateArguments()

                } else {
                    throw new IllegalArgumentException("Can't create a non-prefix-based qualifier extractor");
                }
            }
           
            configs.validateArguments(config);
            if (context instanceof HBaseMorphlineContext) {
                ((HBaseMorphlineContext)context).getExtractors().add(this.extractor);
            }
        }
View Full Code Here

Examples of org.kitesdk.morphline.base.Configs.validateArguments()

  public void testValidateArgumentsWithoutQuotes() throws Exception {
    Config config = ConfigFactory.parseString("{ foo : bar, see : you.there.soon }");
    Configs configs = new Configs();
    assertEquals("bar", configs.getString(config, "foo"));
    assertEquals("you.there.soon", configs.getString(config, "see"));
    configs.validateArguments(config);   
  }
 
  @Test
  public void testValidateArgumentsWithQuotes() throws Exception {
    Config config = ConfigFactory.parseString("{ foo : bar, \"see\" : \"you.there.soon.~!@#$%^&*()_+=-\" }");
View Full Code Here

Examples of org.kitesdk.morphline.base.Configs.validateArguments()

  public void testValidateArgumentsWithQuotes() throws Exception {
    Config config = ConfigFactory.parseString("{ foo : bar, \"see\" : \"you.there.soon.~!@#$%^&*()_+=-\" }");
    Configs configs = new Configs();
    assertEquals("bar", configs.getString(config, "foo"));
    assertEquals("you.there.soon.~!@#$%^&*()_+=-", configs.getString(config, "see"));
    configs.validateArguments(config);   
  }
 
  @Test
  public void testQuotingInHashes() throws Exception {
    String q = String.valueOf('"');
View Full Code Here

Examples of org.kitesdk.morphline.base.Configs.validateArguments()

          this.writableClass = clazz;
        } catch (ClassNotFoundException e) {
          throw new MorphlineCompilationException("Could not load class "
              + writableClassString + " definition", columnConfig, e);
        }
        configs.validateArguments(columnConfig);
      }

      public int getInputField() {
        return inputField;
      }
View Full Code Here

Examples of org.kitesdk.morphline.base.Configs.validateArguments()

    if (excludesConfig != null) {
      for (Map.Entry<String, Object> entry : new Configs().getEntrySet(excludesConfig)) {
        excludes.add(parseExpressionPair(entry.getKey(), entry.getValue().toString(), excludesConfig));
      }
    }
    configs.validateArguments(config);
  }
 
  private ExpressionPair parseExpressionPair(String strA, String strB, Config config) {
    Expression exprA = parseExpression(strA, config);
    Expression exprB = parseExpression(strB, config);
View Full Code Here

Examples of org.kitesdk.morphline.base.Configs.validateArguments()

    zkHost = configs.getString(config, "zkHost", null);
    solrHomeDir = configs.getString(config, "solrHomeDir", null);
    solrUrl = configs.getString(config, "solrUrl", null);   
    batchSize = configs.getInt(config, "batchSize", batchSize);
    LOG.trace("Constructed solrLocator: {}", this);
    configs.validateArguments(config);
  }
 
  public SolrServer getSolrServer() {
    if (zkHost != null && zkHost.length() > 0) {
      if (collectionName == null || collectionName.length() == 0) {
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.