Package org.apache.slide.projector.value

Examples of org.apache.slide.projector.value.BooleanValue


    }

    public Result process(Map parameter, Context context) throws Exception {
      Value []involvedParameters = (Value[])((ArrayValue)parameter.get(INVOLVED_PARAMETERS)).getArray();
      String targetStep = parameter.get(Process.STEP).toString();
      BooleanValue validate = (BooleanValue)parameter.get(VALIDATE);
      BooleanValue wizard = (BooleanValue)parameter.get(WIZARD);
      URI actionUri = (URI)parameter.get(ACTION);
    StringBuffer buffer = new StringBuffer(128);
    buffer.append(actionUri).append(SEPARATOR).append(validate).append(SEPARATOR).append(wizard).append(SEPARATOR).append(context.getStep()).append(SEPARATOR).append(targetStep).append(SEPARATOR).append(context.getProcess());
      if ( validate.booleanValue() ) {
        for ( int i = 0; i < involvedParameters.length; i++ ) {
View Full Code Here


            Object controlValue = null;
            boolean validate = false;
            if ( mapResource != null ) {
              controlValue = mapResource.getMap().get(parameterName);
              validate = false;
              BooleanValue validateResource = ((BooleanValue)mapResource.getMap().get(VALIDATE));
              if ( validateResource != null ) validate = validateResource.booleanValue();
            }
            if ( validate ) {
              try {
                controlValue = ProcessorManager.prepareValue(parameterDescriptor, controlValue, context);
              } catch ( ValidationException exception ) {
View Full Code Here

      mapResource = new MapValue(map);
      store.put(domain, mapResource);
    } else {
      map = mapResource.getMap();
    }
        map.put(ControlComposer.VALIDATE, new BooleanValue(validate));
      map.put(Process.STEP, new StringValue(targetStep));
      map.putAll(parameter);
      if ( validate ) {
        // 2. Validate parameters
        Processor processor = ProcessorManager.getInstance().getProcessor(actionURI);
View Full Code Here

  public String getElementName() {
      return "boolean";
    }
   
  public Value load(Element element) {
    return new BooleanValue(Boolean.valueOf(element.getText()).booleanValue());
  }
View Full Code Here

        writer.writeStartTag(XMLWriter.createStartTag("xml"));
        getRemainingCondition().save(writer);
        writer.writeEndTag(XMLWriter.createEndTag("xml"));
        writer.writeEndTag(XMLWriter.createEndTag("load"));
    writer.writeStartTag(XMLWriter.createStartTag("load", "parameter", "repeat"));
        ValueFactoryManager.getInstance().saveValue(new BooleanValue(repeat), writer);
        writer.writeEndTag(XMLWriter.createEndTag("load"));
    writer.writeStartTag(XMLWriter.createStartTag("load", "parameter", "persistent"));
        ValueFactoryManager.getInstance().saveValue(new BooleanValue(persistent), writer);
        writer.writeEndTag(XMLWriter.createEndTag("load"));
    writer.writeStartTag(XMLWriter.createStartTag("load", "parameter", "processor"));
        ValueFactoryManager.getInstance().saveValue(getProcessorUri(), writer);
        writer.writeEndTag(XMLWriter.createEndTag("load"));
        writer.writeEndTag(XMLWriter.createEndTag("job"));
View Full Code Here

TOP

Related Classes of org.apache.slide.projector.value.BooleanValue

Copyright © 2018 www.massapicom. 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.