Examples of Output


Examples of org.apache.cocoon.woody.formmodel.Output

            } else if (sub instanceof BooleanField) {
                BooleanField field = (BooleanField)sub;
                value = unwrap(value);
                field.setValue(value);
            } else if (sub instanceof Output) {
                Output field = (Output)sub;
                value = unwrap(value);
                field.setValue(value);
            } else if (sub instanceof Repeater) {
                Repeater repeater = (Repeater)sub;
                if (value instanceof NativeArray) {
                    NativeArray arr = (NativeArray)value;
                    Object length = getProperty(arr, "length");
                    int len = ((Number)length).intValue();
                    for (int i = repeater.getSize(); i >= len; --i) {
                        repeater.removeRow(i);
                    }
                    for (int i = 0; i < len; i++) {
                        Object elemValue = getProperty(arr, i);
                        if (elemValue instanceof Scriptable) {
                            Scriptable s = (Scriptable)elemValue;
                            Object[] ids = s.getIds();
                            ScriptableWidget wid = wrap(repeater.getRow(i));
                            for (int j = 0; j < ids.length; j++) {
                                String idStr = ids[j].toString();
                                wid.put(idStr, wid, getProperty(s, idStr));
                            }
                        }
                    }
                    return;
                }
            } else if (sub instanceof MultiValueField) {
                MultiValueField field = (MultiValueField)sub;
                Object[] values = null;
                if (value instanceof NativeArray) {
                    NativeArray arr = (NativeArray)value;
                    Object length = getProperty(arr, "length");
                    int len = ((Number)length).intValue();
                    values = new Object[len];
                    for (int i = 0; i < len; i++) {
                        Object elemValue = getProperty(arr, i);
                        values[i] = unwrap(elemValue);
                    }
                } else if (value instanceof Object[]) {
                    values = (Object[])value;
                }
                field.setValues(values);
            } else {
                if (value instanceof Scriptable) {
                    Scriptable s = (Scriptable)value;
                    Object[] ids = s.getIds();
                    ScriptableWidget wid = wrap(sub);
View Full Code Here

Examples of org.apache.cxf.management.web.logging.atom.converter.StandardConverter.Output

        }
        if (c == null) {
            if (converterClass != null) {
                c = createConverter(converterClass);
            } else {
                Output out = parseEnum(output, Output.FEED, Output.class);
                Multiplicity defaultMul = out == Output.FEED ? Multiplicity.MANY
                    : batch > 1 ? Multiplicity.MANY : Multiplicity.ONE;
                Multiplicity mul = parseEnum(multiplicity, defaultMul, Multiplicity.class);
                Format form = parseEnum(format, Format.CONTENT, Format.class);
                if (out == Output.FEED) {
View Full Code Here

Examples of org.apache.drill.exec.expr.annotations.Output

   
   
    for(Field field : clazz.getDeclaredFields()){

      Param param = field.getAnnotation(Param.class);
      Output output = field.getAnnotation(Output.class);
      Workspace workspace = field.getAnnotation(Workspace.class);
     
      int i =0;
      if(param != null) i++;
      if(output != null) i++;
View Full Code Here

Examples of org.apache.etch.compiler.Output

    }

    // ok, we're ready to generate code. make sure the
    // output directories exist.

    Output dir = options.output;
    Output templateDir = options.templateOutput;
   
    String m = module.name().name;
    if (m.length() > 0)
    {
      dir = dir.newPackage( m );
      templateDir = templateDir.newPackage( m );
    }
   
    // generate code for each service.

    for (Service intf : module)
View Full Code Here

Examples of org.apache.falcon.entity.v0.process.Output

        if (process.getOutputs() == null) {
            process.setOutputs(new Outputs());
        }

        Outputs outputs = process.getOutputs();
        Output output = new Output();
        output.setFeed(feed.getName());
        outputs.getOutputs().add(output);
    }
View Full Code Here

Examples of org.apache.hadoop.hive.serde2.ByteStream.Output

  }

  private static byte[] serializeRowCommon(Output byteStream,
      Object[] fieldData, List<ObjectInspector> fieldOis) throws SerDeException {
    if (byteStream == null) {
      byteStream = new Output();
    } else {
      byteStream.reset();
    }
    LazyBinarySerDe.serializeStruct(byteStream, fieldData, fieldOis);
    return Arrays.copyOf(byteStream.getData(), byteStream.getCount());
View Full Code Here

Examples of org.apache.ivory.entity.v0.process.Output

    }

    private Feed addOutput(Process process, String feed, Cluster cluster) {
        if (process.getOutputs() == null) process.setOutputs(new Outputs());
        Outputs Outputs = process.getOutputs();
        Output Output = new Output();
        Output.setFeed(feed);
        Outputs.getOutputs().add(Output);
        Feed f1 = new Feed();
        f1.setName(feed);
        Clusters clusters = new Clusters();
        f1.setClusters(clusters);
View Full Code Here

Examples of org.apache.tez.runtime.api.Output

      }
      Preconditions.checkArgument(getOutputs().size() == (inUnion ? 2 : 1));
      Preconditions.checkArgument(getOutputs().containsKey("checker"));
      MRInput input = (MRInput) getInputs().values().iterator().next();
      KeyValueReader kvReader = input.getReader();
      Output output =  getOutputs().get("checker");
      KeyValueWriter kvWriter = (KeyValueWriter) output.getWriter();
      MROutput parts = null;
      KeyValueWriter partsWriter = null;
      if (inUnion) {
        parts = (MROutput) getOutputs().get("parts");
        partsWriter = parts.getWriter();
View Full Code Here

Examples of org.apache.torque.generator.configuration.controller.Output

        if (outletResult.isByteArrayResult())
        {
            // do nothing, no debugging for binary result
            return outletResult;
        }
        Output output = controllerState.getOutput();
        String lineBreak = output.getOrDetermineLineBreak(
                outletResult.getStringResult());
        String outputTypeString = output.getType();
        Map<String, OutputType> outputTypes
                = controllerState.getUnitConfiguration()
                    .getConfigurationHandlers()
                    .getOutputTypes();
        OutputType outputType = outputTypes.get(outputTypeString);
        if (outputType == null)
        {
            throw new GeneratorException("Unknown output type "
                    + outputTypeString
                    + " in output "
                    + output.getName());
        }
        String commentStart = outputType.getCommentStart(lineBreak);
        String commentAtStart = getCommentAtStart(controllerState);
        String commentAtEnd = getCommentAtEnd(controllerState);
        String commentEnd = outputType.getCommentEnd(lineBreak);
View Full Code Here

Examples of org.apache.uima.simpleserver.config.Output

      // get mapped output features
      OutputType[] outputTypes = outputBean.getOutputArray();
      for (int i = 0; i < outputTypes.length; i++) {
        // parse output feature featurePath
        List<String> featurePath = parseFeaturePath(outputTypes[i].getFeaturePath());
        Output output = ConfigFactory.newOutput(featurePath, outputTypes[i].getOutputAttribute(),
            outputTypes[i].getShortDescription(), outputTypes[i].getLongDescription());
        // add output feature to the typeMap
        typeMap.addOutput(output);
      }
    }
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.