@Override
        public void text(UnmarshallingContext.State state, CharSequence text) throws SAXException {
          List<Object> r = new FinalArrayList<Object>();

          int idx = 0;
          int len = text.length();

          while (true) {
            int p = idx;
            while (p < len && !WhiteSpaceProcessor.isWhiteSpace(text.charAt(p))) p++;

            CharSequence token = text.subSequence(idx, p);
            if (!token.equals(""))
              try {
                r.add(xducer.parse(token));
              } catch (AccessorException e) {
                handleGenericException(e, true);
                continue; // move on to next
              }

            if (p == len) break; // done

            while (p < len && WhiteSpaceProcessor.isWhiteSpace(text.charAt(p))) p++;
            if (p == len) break; // done

            idx = p;
          }

          state.target = toArray(r);
        }
 private void eatText1(final java.lang.String value) throws org.xml.sax.SAXException {
   try {
     _Nil =
         javax.xml.bind.DatatypeConverter.parseBoolean(
             com.sun.xml.bind.WhiteSpaceProcessor.collapse(
                 com.sun.xml.bind.WhiteSpaceProcessor.collapse(value)));
   } catch (java.lang.Exception e) {
     handleParseConversionException(e);
   }
 }
Esempio n. 3
0
 private void eatText1(final java.lang.String value) throws org.xml.sax.SAXException {
   try {
     _URI = com.sun.xml.bind.WhiteSpaceProcessor.collapse(value);
   } catch (java.lang.Exception e) {
     handleParseConversionException(e);
   }
 }
Esempio n. 4
0
 private void eatText1(final java.lang.String value) throws org.xml.sax.SAXException {
   try {
     _Value =
         com.sun.msv.datatype.xsd.Base64BinaryType.load(
             com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
   } catch (java.lang.Exception e) {
     handleParseConversionException(e);
   }
 }
 private void eatText2(final java.lang.String value) throws org.xml.sax.SAXException {
   try {
     _IssueInstant =
         ((java.util.Calendar)
             com.sun.msv.datatype.xsd.DateTimeType.theInstance.createJavaObject(
                 com.sun.xml.bind.WhiteSpaceProcessor.collapse(value), null));
   } catch (java.lang.Exception e) {
     handleParseConversionException(e);
   }
 }
Esempio n. 6
0
 private void eatText3(final java.lang.String value) throws org.xml.sax.SAXException {
   try {
     _getEvidence()
         .add(
             new java.lang.Integer(
                 javax.xml.bind.DatatypeConverter.parseInt(
                     com.sun.xml.bind.WhiteSpaceProcessor.collapse(value))));
   } catch (java.lang.Exception e) {
     handleParseConversionException(e);
   }
 }