Package net.sf.saxon.expr

Examples of net.sf.saxon.expr.StringTokenIterator


     * resolver is supplied
     */

    public void validateContent(CharSequence value, NamespaceResolver nsResolver) throws ValidationException {
        SimpleType base = getItemType();
        SequenceIterator iter = new StringTokenIterator(value.toString());
        int count = 0;
        try {
            while (true) {
                StringValue val = (StringValue)iter.next();
                if (val == null) break;
                base.validateContent(val.getStringValue(), nsResolver);
                count++;
            }
            Iterator fi = getFacets();
View Full Code Here


     * @param value the string whose typed value is required
     * @param node a node to be used for getting a namespace context if the content is namespace-sensitive
     */

    public SequenceIterator getTypedValue(CharSequence value, NodeInfo node) throws ValidationException {
        SequenceIterator iter = new StringTokenIterator(value.toString());
        Object[] data = {node, getItemType()};
        return new MappingIterator(iter, this, null, data);
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.expr.StringTokenIterator

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.