Examples of AnyValue


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

      Value input = null;
        if ( children.hasNext() ) {
          Element childElement = (Element)children.next();
          input = ValueFactoryManager.getInstance().loadValue(childElement);
        }
        return new AnyValue(processor, input, result, storeId, key, domain);
  }
View Full Code Here

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

        }
        return new AnyValue(processor, input, result, storeId, key, domain);
  }
     
  public void save(Value value, XMLStringWriter writer) {
    AnyValue anyValue = (AnyValue)value;
    if ( anyValue.getProcessorUri() == null ) {
      writer.writeEmptyElement(XMLWriter.createEmptyTag(getElementName(), new String[] { STORE, KEY, DOMAIN }, new String[] { Store.stores[anyValue.getStoreId()], anyValue.getKey(), anyValue.getDomain() }));
    } else {
      if ( anyValue.getInput() == null ) {
        writer.writeStartTag(XMLWriter.createStartTag(getElementName(), new String[] { PROCESSOR, RESULT, STORE, KEY, DOMAIN }, new String[] { anyValue.getProcessorUri().toString(), anyValue.getResult(), Store.stores[anyValue.getStoreId()], anyValue.getKey(), anyValue.getDomain() }));
      } else {
        writer.writeStartTag(XMLWriter.createStartTag(getElementName(), new String[] { PROCESSOR, RESULT }, new String[] { anyValue.getProcessorUri().toString(), anyValue.getResult() }));
        ValueFactoryManager.getInstance().saveValue(anyValue.getInput(), writer);
        writer.writeEndTag(XMLWriter.createEndTag(getElementName()));
      }
    }
  }
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.