Package org.apache.xmlbeans.impl.common

Examples of org.apache.xmlbeans.impl.common.InvalidLexicalValueException


                break;
        }

        //reaching here means an invalid boolean lexical
        String msg = "invalid boolean: " + v;
        throw new InvalidLexicalValueException(msg);
    }
View Full Code Here


        if (hasFirstCollon) {
            prefix = charSeq.subSequence(0, firstcolon).toString();
            localname = charSeq.subSequence(firstcolon + 1, charSeq.length()).toString();
            if (firstcolon == 0) {
                throw new InvalidLexicalValueException("invalid xsd:QName '" + charSeq.toString() + "'");
            }
        } else {
            prefix = EMPTY_PREFIX;
            localname = charSeq.toString();
        }

        String uri = nscontext.getNamespaceURI(prefix);

        if (uri == null) {
            if (prefix != null && prefix.length() > 0)
                throw new InvalidLexicalValueException("Can't resolve prefix: " + prefix);

            uri = "";
        }

        return new QName(uri, localname);
View Full Code Here

    {
        byte[] buf = HexBin.decode(lexical_value.toString().getBytes());
        if (buf != null)
            return buf;
        else
            throw new InvalidLexicalValueException("invalid hexBinary value");
    }
View Full Code Here

    {
        byte[] buf = Base64.decode(lexical_value.toString().getBytes());
        if (buf != null)
            return buf;
        else
            throw new InvalidLexicalValueException("invalid base64Binary value");
    }
View Full Code Here

        {
            URI.create(s.toString());
        }
        catch (IllegalArgumentException e)
        {
            throw new InvalidLexicalValueException("invalid anyURI value: " + lexical_value, e);
        }

        return lexical_value;
    }
View Full Code Here

        {
            return XsTypeConverter.lexBoolean(_charSeq);
        }
        catch(InvalidLexicalValueException e)
        {
            throw new InvalidLexicalValueException(e, _charSeq.getLocation());
        }
    }
View Full Code Here

        {
            return XsTypeConverter.lexByte(_charSeq);
        }
        catch(NumberFormatException e)
        {
            throw new InvalidLexicalValueException(e, _charSeq.getLocation());
        }
    }
View Full Code Here

        {
            return XsTypeConverter.lexShort(_charSeq);
        }
        catch(NumberFormatException e)
        {
            throw new InvalidLexicalValueException(e, _charSeq.getLocation());
        }
    }
View Full Code Here

        {
            return XsTypeConverter.lexInt(_charSeq);
        }
        catch(NumberFormatException e)
        {
            throw new InvalidLexicalValueException(e, _charSeq.getLocation());
        }
    }
View Full Code Here

        {
            return XsTypeConverter.lexLong(_charSeq);
        }
        catch(NumberFormatException e)
        {
            throw new InvalidLexicalValueException(e, _charSeq.getLocation());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.impl.common.InvalidLexicalValueException

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.