Package client.net.sf.saxon.ce.type

Examples of client.net.sf.saxon.ce.type.ConversionResult


     * @return either a YearMonthDurationValue, or a ValidationFailure if the string was
     *         not in the lexical space of xs:yearMonthDuration.
     */

    public static ConversionResult makeYearMonthDurationValue(CharSequence s) {
         ConversionResult d = DurationValue.makeDuration(s, true, false);
         if (d instanceof ValidationFailure) {
             return d;
         }
         DurationValue dv = (DurationValue)d;
         return YearMonthDurationValue.fromMonths((dv.getYears()*12 + dv.getMonths()) * dv.signum());
 
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.type.ConversionResult

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.