Package org.apache.slide.projector.value

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


                }
            }
        }
        writer.writeEndTag(XMLWriter.createEndTag("jobs"));
        try {
            Projector.getRepository().setResource(new URIValue(Projector.getWorkDir() + JOBS), new StringValue(writer.toString()), Projector.getCredentials());
        } catch (IOException exception) {
            logger.log(Level.SEVERE, "Exception occured while writing jobs to repository", exception);
        }
    }
View Full Code Here


    public Value valueOf(Object value, Context context) throws ValueCastException {
        if (value instanceof StringValue) {
            return (StringValue)value;
        } else if (value instanceof String) {
            return new StringValue((String)value);
        } else if (value instanceof String[]) {
            return new StringValue(((String [])value)[0]);
        } else if (value instanceof PrintableValue) {
            return new StringValue(((PrintableValue)value).print(new StringBuffer(256)).toString());
        }
        throw new ValueCastException(new ErrorMessage("uncastableStringValue", new Object[] { value }));
    }
View Full Code Here

TOP

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

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.