Examples of validateArguments()


Examples of com.cloudera.cdk.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 DocumentLoader getLoader() {
    if (context instanceof SolrMorphlineContext) {
      DocumentLoader loader = ((SolrMorphlineContext)context).getDocumentLoader();
View Full Code Here

Examples of com.cloudera.cdk.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 com.cloudera.cdk.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 com.cloudera.cdk.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 com.cloudera.cdk.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 com.lightcrafts.mediax.jai.OperationDescriptor.validateArguments()

  // Validate input arguments. The ParameterBlock is cloned here
  // because OperationDescriptor.validateArguments() may change
  // its content.
        StringBuffer msg = new StringBuffer();
        args = (ParameterBlock)args.clone();
        if (!odesc.validateArguments("rendered", args, msg)) {
            throw new IllegalArgumentException(msg.toString());
        }

  // Merge rendering hints.  Hints passed in take precedence.
        RenderingHints mergedHints;
View Full Code Here

Examples of com.lightcrafts.mediax.jai.OperationDescriptor.validateArguments()

  // Validate input arguments. The ParameterBlock is cloned here
  // because OperationDescriptor.validateRenderableArguments()
  // may change its content.
        StringBuffer msg = new StringBuffer();
        args = (ParameterBlock)args.clone();
        if (!odesc.validateArguments("renderable", args, msg)) {
            throw new IllegalArgumentException(msg.toString());
        }

   RemoteRenderableOp op = new RemoteRenderableOp(operationRegistry,
                   protocolName,
View Full Code Here

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

  // Validate input arguments. The ParameterBlock is cloned here
  // because OperationDescriptor.validateArguments() may change
  // its content.
        StringBuffer msg = new StringBuffer();
        args = (ParameterBlock)args.clone();
        if (!odesc.validateArguments("rendered", args, msg)) {
            throw new IllegalArgumentException(msg.toString());
        }

  // Merge rendering hints.  Hints passed in take precedence.
        RenderingHints mergedHints;
View Full Code Here

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

  // Validate input arguments. The ParameterBlock is cloned here
  // because OperationDescriptor.validateRenderableArguments()
  // may change its content.
        StringBuffer msg = new StringBuffer();
        args = (ParameterBlock)args.clone();
        if (!odesc.validateArguments("renderable", args, msg)) {
            throw new IllegalArgumentException(msg.toString());
        }

   RemoteRenderableOp op = new RemoteRenderableOp(operationRegistry,
                   protocolName,
View Full Code Here

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

/*  624 */       throw new IllegalArgumentException(JaiI18N.getString("RemoteJAI13"));
/*      */     }
/*      */
/*  631 */     StringBuffer msg = new StringBuffer();
/*  632 */     args = (ParameterBlock)args.clone();
/*  633 */     if (!odesc.validateArguments("rendered", args, msg))
/*  634 */       throw new IllegalArgumentException(msg.toString());
/*      */     RenderingHints mergedHints;
/*      */     RenderingHints mergedHints;
/*  639 */     if (hints == null) {
/*  640 */       mergedHints = this.renderingHints;
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.