Package xbird.xquery

Examples of xbird.xquery.DynamicError


    public void evEndDocument() throws XQueryException {
        try {
            output.writeByte(EV_END_DOC);
        } catch (IOException e) {
            throw new DynamicError("failed on evEndDocument", e);
        }
    }
View Full Code Here


            output.writeByte(EV_START_ELEM);
            writeString(output, prefix);
            writeString(output, localName);
            writeString(output, namespaceURI);
        } catch (IOException e) {
            throw new DynamicError("failed on evStartElement", e);
        }
    }
View Full Code Here

            output.writeByte(EV_END_ELEM);
            writeString(output, prefix);
            writeString(output, localName);
            writeString(output, namespaceURI);
        } catch (IOException e) {
            throw new DynamicError("failed on evEndElement", e);
        }
    }
View Full Code Here

        try {
            output.writeByte(EV_ATTR);
            qname.writeExternal(output);
            writeString(output, value);
        } catch (IOException e) {
            throw new DynamicError("failed on evAttribute", e);
        }
    }
View Full Code Here

        try {
            output.writeByte(EV_NAMESPACE);
            writeString(output, prefix);
            writeString(output, uri);
        } catch (IOException e) {
            throw new DynamicError("failed on evNamespace", e);
        }
    }
View Full Code Here

            int end = start + length;
            for(int i = start; i < end; i++) {
                output.writeChar(ch[i]);
            }
        } catch (IOException e) {
            throw new DynamicError("failed on evText", e);
        }
    }
View Full Code Here

            int end = start + length;
            for(int i = start; i < end; i++) {
                output.writeChar(ch[i]);
            }
        } catch (IOException e) {
            throw new DynamicError("failed on evCData", e);
        }
    }
View Full Code Here

            int end = start + length;
            for(int i = start; i < end; i++) {
                output.writeChar(ch[i]);
            }
        } catch (IOException e) {
            throw new DynamicError("failed on evComment", e);
        }
    }
View Full Code Here

        try {
            output.writeByte(EV_PI);
            writeString(output, target);
            writeString(output, data);
        } catch (IOException e) {
            throw new DynamicError("failed on evProcessingInstruction", e);
        }
    }
View Full Code Here

        } else {
            final String sv = DoubleType.DOUBLE.processWhitespace(it.stringValue());
            if(StringUtils.isNumber(sv)) {
                d = Double.parseDouble(sv);
            } else {
                throw new DynamicError("err:FORG0001", "Illegal value for xs:double: " + sv);
            }
        }
        return d;
    }
View Full Code Here

TOP

Related Classes of xbird.xquery.DynamicError

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.