212213214215216217218
String text = _charSeq.toString(); byte[] buf = HexBin.decode(text.getBytes()); if (buf!=null) return new ByteArrayInputStream(buf); else throw new InvalidLexicalValueException("invalid hexBinary value", _charSeq.getLocation()); }
224225226227228229230
String text = _charSeq.toString(); byte[] buf = Base64.decode(text.getBytes()); if (buf!=null) return new ByteArrayInputStream(buf); else throw new InvalidLexicalValueException("invalid base64Binary value", _charSeq.getLocation()); }
237238239240241242243244
{ return new GDateBuilder(_charSeq).getCalendar(); } catch( IllegalArgumentException e) { throw new InvalidLexicalValueException(e, _charSeq.getLocation()); } }
251252253254255256257258
{ return new GDateBuilder(_charSeq).getDate(); } catch(IllegalArgumentException e) { throw new InvalidLexicalValueException(e, _charSeq.getLocation()); } }
265266267268269270271272
{ return XsTypeConverter.lexGDate(_charSeq); } catch(IllegalArgumentException e) { throw new InvalidLexicalValueException(e, _charSeq.getLocation()); } }
279280281282283284285286
{ return new GDuration(_charSeq); } catch(IllegalArgumentException e) { throw new InvalidLexicalValueException(e, _charSeq.getLocation()); } }
293294295296297298299300
{ return XsTypeConverter.lexQName(_charSeq, _xmlStream.getNamespaceContext()); } catch(InvalidLexicalValueException e) { throw new InvalidLexicalValueException(e.getMessage(), _charSeq.getLocation()); } }
315316317318319320321322
{ return XsTypeConverter.lexBoolean(_charSeq.reloadAtt(index, CharSeqTrimWS.XMLWHITESPACE_TRIM)); } catch(InvalidLexicalValueException e) { throw new InvalidLexicalValueException(e, _charSeq.getLocation()); } }
327328329330331332333334
{ return XsTypeConverter.lexByte(_charSeq.reloadAtt(index, CharSeqTrimWS.XMLWHITESPACE_TRIM)); } catch(NumberFormatException e) { throw new InvalidLexicalValueException(e, _charSeq.getLocation()); } }
339340341342343344345346
{ return XsTypeConverter.lexShort(_charSeq.reloadAtt(index, CharSeqTrimWS.XMLWHITESPACE_TRIM)); } catch(NumberFormatException e) { throw new InvalidLexicalValueException(e, _charSeq.getLocation()); } }