Package org.apache.slide.projector.value

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


        }
        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

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

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.