private void collectOneItem(Context context, Collection<Object> values, MessageReader creader, AegisType compType) { if (creader.isXsiNil()) { values.add(null); creader.readToEnd(); } else { values.add(compType.readObject(creader, context)); } // check max occurs int size = values.size(); if (size > maxOccurs) { throw new DatabindingException("The number of elements in " + getSchemaType() + " exceeds the maximum of " + maxOccurs); } }
private void collectOneItem(Context context, Collection<Object> values, MessageReader creader, AegisType compType) { if (creader.isXsiNil()) { values.add(null); creader.readToEnd(); } else { values.add(compType.readObject(creader, context)); } // check max occurs int size = values.size(); if (size > maxOccurs) { throw new DatabindingException("The number of elements in " + getSchemaType() + " exceeds the maximum of " + maxOccurs); } }
defaultType); if (type != null && qName.getLocalPart().equals("variationFailures")) { Map<String, String> variationFailures = (Map<String, String>) type.readObject(childReader, context); for (Entry<String, String> failure : variationFailures.entrySet()) { variationsResult.registerFailure(failure.getKey(), failure.getValue()); Map<String, Object> variationResults = (Map<String, Object>) type.readObject(childReader, context); for (Entry<String, Object> result : variationResults.entrySet()) { variationsResult.registerResult(result.getKey(), result.getValue()); byte[] data = (byte[]) type.readObject(childReader, context); variationsResult.setData(data); } else {
defaultType); if (type != null && qName.getLocalPart().equals("columnNames")) { columnNames = (String[]) type.readObject(childReader, context); } else if (type != null && qName.getLocalPart().equals("rowNames")) { rowNames = (String[]) type.readObject(childReader, context); } else if (type != null && qName.getLocalPart().equals("results")) { results = (Object[][]) type.readObject(childReader, context); } else { childReader.readToEnd();
defaultType); if (type != null && qName.getLocalPart().equals("columnNames")) { columnNames = (String[]) type.readObject(childReader, context); } else if (type != null && qName.getLocalPart().equals("rowNames")) { rowNames = (String[]) type.readObject(childReader, context); } else if (type != null && qName.getLocalPart().equals("results")) { results = (Object[][]) type.readObject(childReader, context); } else { childReader.readToEnd();
if (type != null) { String propertyName = qName.getLocalPart(); Object propertyValue = type.readObject(childReader, context); if ("variationID".equals(propertyName)) { variationID = String.valueOf(propertyValue);
@Override public Object readObject(MessageReader reader, Context context) throws DatabindingException { SoapRef soapRef = new SoapRef(); // if we have a ref, register our soap ref with context String ref = SoapEncodingUtil.readRef(reader); if (ref != null) { SoapRefRegistry.get(context).addRef(ref, soapRef); reader.readToEnd(); return soapRef; } Object object = baseType.readObject(reader, context); soapRef.set(object); return soapRef; }
@Override public Object readObject(MessageReader reader, Context context) throws DatabindingException { SoapRef soapRef = new SoapRef(); // if we have a ref, register our soap ref with context String ref = SoapEncodingUtil.readRef(reader); if (ref != null) { SoapRefRegistry.get(context).addRef(ref, soapRef); reader.readToEnd(); return soapRef; } Object object = baseType.readObject(reader, context); soapRef.set(object); return soapRef; }
if (type != null) { String propertyName = qName.getLocalPart(); Object propertyValue = type.readObject(childReader, context); if ("variationID".equals(propertyName)) { variationID = String.valueOf(propertyValue);
if (type != null) { String propertyName = qName.getLocalPart(); Object propertyValue = type.readObject(childReader, context); if ("variationID".equals(propertyName)) { variationID = String.valueOf(propertyValue);
if (type != null) { String propertyName = qName.getLocalPart(); Object propertyValue = type.readObject(childReader, context); if ("variationID".equals(propertyName)) { variationID = String.valueOf(propertyValue);
if (type != null) { String propertyName = qName.getLocalPart(); Object propertyValue = type.readObject(childReader, context); if ("variationID".equals(propertyName)) { variationID = String.valueOf(propertyValue);
if (type != null) { String propertyName = qName.getLocalPart(); Object propertyValue = type.readObject(childReader, context); if ("variationID".equals(propertyName)) { variationID = String.valueOf(propertyValue);
/** {@inheritDoc}*/ public Object read(XMLStreamReader reader, AegisType desiredType) throws Exception { setupReaderPosition(reader); ElementReader elReader = new ElementReader(reader); if (elReader.isXsiNil()) { elReader.readToEnd(); return null; } AegisType type = TypeUtil.getReadTypeStandalone(reader, aegisContext, desiredType); if (type == null) { throw new DatabindingException(new Message("NO_MAPPING", LOG)); } return type.readObject(elReader, context); }
/** {@inheritDoc}*/ public Object read(XMLStreamReader reader, AegisType desiredType) throws Exception { setupReaderPosition(reader); ElementReader elReader = new ElementReader(reader); if (elReader.isXsiNil()) { elReader.readToEnd(); return null; } AegisType type = TypeUtil.getReadTypeStandalone(reader, aegisContext, desiredType); if (type == null) { throw new DatabindingException(new Message("NO_MAPPING", LOG)); } return type.readObject(elReader, context); }
context.getGlobalContext(), getKeyType()); key = kType.readObject(evReader, context); } else if (evReader.getName().equals(getValueName())) { AegisType vType = TypeUtil.getReadType(evReader.getXMLStreamReader(), context.getGlobalContext(), getValueType()); value = vType.readObject(evReader, context); } else { readToEnd(evReader);
context.getGlobalContext(), getKeyType()); key = kType.readObject(evReader, context); } else if (evReader.getName().equals(getValueName())) { AegisType vType = TypeUtil.getReadType(evReader.getXMLStreamReader(), context.getGlobalContext(), getValueType()); value = vType.readObject(evReader, context); } else { readToEnd(evReader);
if (type != null) { String propertyName = qName.getLocalPart(); Object propertyValue = type.readObject(childReader, context); runtimeContext.setValue(propertyName, propertyValue); } else {
if (type != null) { String propertyName = qName.getLocalPart(); Object propertyValue = type.readObject(childReader, context); runtimeContext.setValue(propertyName, propertyValue); } else {
return type.readObject(reader, context);