public boolean isAbstract() { return baseType.isAbstract(); }
public boolean isAbstract() { return baseType.isAbstract(); }
@Override public void writeObject(Object object, MessageWriter writer, Context context) throws DatabindingException { if (object == null) { return; } try { Collection<?> list = (Collection<?>)object; AegisType type = getComponentType(); if (type == null) { throw new DatabindingException("Couldn't find component type for Collection."); } for (Iterator<?> itr = list.iterator(); itr.hasNext();) { String ns = null; if (type.isAbstract()) { ns = getSchemaType().getNamespaceURI(); } else { ns = type.getSchemaType().getNamespaceURI(); } writeValue(itr.next(), writer, context, type, type.getSchemaType().getLocalPart(), ns); } } catch (IllegalArgumentException e) { throw new DatabindingException("Illegal argument.", e); } }
@Override public void writeObject(Object object, MessageWriter writer, Context context) throws DatabindingException { if (object == null) { return; } try { Collection<?> list = (Collection<?>)object; AegisType type = getComponentType(); if (type == null) { throw new DatabindingException("Couldn't find component type for Collection."); } for (Iterator<?> itr = list.iterator(); itr.hasNext();) { String ns = null; if (type.isAbstract()) { ns = getSchemaType().getNamespaceURI(); } else { ns = type.getSchemaType().getNamespaceURI(); } writeValue(itr.next(), writer, context, type, type.getSchemaType().getLocalPart(), ns); } } catch (IllegalArgumentException e) { throw new DatabindingException("Illegal argument.", e); } }
if (type.isAbstract()) { ns = getSchemaType().getNamespaceURI(); } else {
if (type.isAbstract()) { ns = getSchemaType().getNamespaceURI(); } else {
public QName getSuggestedName(Service s, TypeMapping tm, OperationInfo op, int param) { Method m = getMethod(s, op); if (m == null) { return null; } QName name = tm.getTypeCreator().getElementName(m, param); // No mapped name was specified, so if its a complex type use that name // instead if (name == null) { AegisType type = tm.getTypeCreator().createType(m, param); if (type.isComplex() && !type.isAbstract()) { name = type.getSchemaType(); } } return name; }
public QName getSuggestedName(Service s, TypeMapping tm, OperationInfo op, int param) { Method m = getMethod(s, op); if (m == null) { return null; } QName name = tm.getTypeCreator().getElementName(m, param); // No mapped name was specified, so if its a complex type use that name // instead if (name == null) { AegisType type = tm.getTypeCreator().createType(m, param); if (type.isComplex() && !type.isAbstract()) { name = type.getSchemaType(); } } return name; }
private void writeTypeReference(QName name, XmlSchemaElement element, AegisType type, XmlSchema schemaRoot) { if (type.isAbstract()) { element.setName(name.getLocalPart()); element.setSchemaTypeName(type.getSchemaType()); XmlSchemaUtils.addImportIfNeeded(schemaRoot, type.getSchemaType().getNamespaceURI()); /* * Here we have a semi-giant mess. If a parameter has a minOccurs > 1, it ends * up in the type info. However, it really got used in the array type. * All we really want to do here is manage 'optional' elements. If we * ever implement flat arrays, this will change. For now, we ignore * maxOccurs and we only look for 0's in the minOccurs. */ long minOccurs = getTypeInfo().getMinOccurs(name); /* If it is 1, that's the default, and if it's greater than one, it means * that there is a real array at work here. So the only value we want to pay * attention to is 0. */ if (minOccurs == 0) { element.setMinOccurs(minOccurs); } element.setNillable(getTypeInfo().isNillable(name)); } else { element.getRef().setTargetQName(type.getSchemaType()); } }
private void writeTypeReference(QName name, XmlSchemaElement element, AegisType type, XmlSchema schemaRoot) { if (type.isAbstract()) { element.setName(name.getLocalPart()); element.setSchemaTypeName(type.getSchemaType()); XmlSchemaUtils.addImportIfNeeded(schemaRoot, type.getSchemaType().getNamespaceURI()); /* * Here we have a semi-giant mess. If a parameter has a minOccurs > 1, it ends * up in the type info. However, it really got used in the array type. * All we really want to do here is manage 'optional' elements. If we * ever implement flat arrays, this will change. For now, we ignore * maxOccurs and we only look for 0's in the minOccurs. */ long minOccurs = getTypeInfo().getMinOccurs(name); /* If it is 1, that's the default, and if it's greater than one, it means * that there is a real array at work here. So the only value we want to pay * attention to is 0. */ if (minOccurs == 0) { element.setMinOccurs(minOccurs); } element.setNillable(getTypeInfo().isNillable(name)); } else { element.getRef().setTargetQName(type.getSchemaType()); } }
if (type.isAbstract()) { part.setTypeQName(type.getSchemaType()); } else {
if (type.isAbstract()) { part.setTypeQName(type.getSchemaType()); } else {