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

                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

                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

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.