AegisType type = info.getAegisTypeClass().newInstance(); QName name = info.getTypeName(); if (name == null) {
AegisType type = info.getAegisTypeClass().newInstance(); QName name = info.getTypeName(); if (name == null) {
AegisType type = getTypeMapping().getType(info.getType()); if (type == null || (info.getTypeName() != null && !type.getSchemaType().equals(info.getTypeName()))) { if (info.getTypeName() != null) { type = getTypeMapping().getType(info.getTypeName());
AegisType type = getTypeMapping().getType(info.getType()); if (type == null || (info.getTypeName() != null && !type.getSchemaType().equals(info.getTypeName()))) { if (info.getTypeName() != null) { type = getTypeMapping().getType(info.getTypeName());
protected AegisType createCollectionTypeFromGeneric(TypeClassInfo info) { AegisType component = getOrCreateGenericType(info); CollectionType type = new CollectionType(component); type.setTypeMapping(getTypeMapping()); QName name = info.getTypeName(); if (name == null) { name = createCollectionQName(info, component); } type.setSchemaType(name); type.setTypeClass(info.getType()); if (info.getMinOccurs() != -1) { type.setMinOccurs(info.getMinOccurs()); } if (info.getMaxOccurs() != -1) { type.setMaxOccurs(info.getMaxOccurs()); } type.setFlat(info.isFlat()); return type; }
protected AegisType createCollectionTypeFromGeneric(TypeClassInfo info) { AegisType component = getOrCreateGenericType(info); CollectionType type = new CollectionType(component); type.setTypeMapping(getTypeMapping()); QName name = info.getTypeName(); if (name == null) { name = createCollectionQName(info, component); } type.setSchemaType(name); type.setTypeClass(info.getType()); if (info.getMinOccurs() != -1) { type.setMinOccurs(info.getMinOccurs()); } if (info.getMaxOccurs() != -1) { type.setMaxOccurs(info.getMaxOccurs()); } type.setFlat(info.isFlat()); return type; }
@Override public AegisType createDefaultType(TypeClassInfo info) { QName typeName = info.getTypeName(); Class<?> relatedClass = TypeUtil.getTypeRelatedClass(info.getType()); if (typeName == null) { typeName = createQName(relatedClass); } AnnotatedTypeInfo typeInfo = new AnnotatedTypeInfo( getTypeMapping(), relatedClass, typeName.getNamespaceURI(), getConfiguration()); typeInfo.setExtensibleElements(annotationReader.isExtensibleElements( relatedClass, getConfiguration().isDefaultExtensibleElements())); typeInfo.setExtensibleAttributes(annotationReader.isExtensibleAttributes( relatedClass, getConfiguration().isDefaultExtensibleAttributes())); typeInfo.setDefaultMinOccurs(getConfiguration().getDefaultMinOccurs()); typeInfo.setDefaultNillable(getConfiguration().isDefaultNillable()); BeanType type = new BeanType(typeInfo); type.setTypeMapping(getTypeMapping()); type.setSchemaType(typeName); return type; }
@Override public AegisType createDefaultType(TypeClassInfo info) { QName typeName = info.getTypeName(); Class<?> relatedClass = TypeUtil.getTypeRelatedClass(info.getType()); if (typeName == null) { typeName = createQName(relatedClass); } AnnotatedTypeInfo typeInfo = new AnnotatedTypeInfo( getTypeMapping(), relatedClass, typeName.getNamespaceURI(), getConfiguration()); typeInfo.setExtensibleElements(annotationReader.isExtensibleElements( relatedClass, getConfiguration().isDefaultExtensibleElements())); typeInfo.setExtensibleAttributes(annotationReader.isExtensibleAttributes( relatedClass, getConfiguration().isDefaultExtensibleAttributes())); typeInfo.setDefaultMinOccurs(getConfiguration().getDefaultMinOccurs()); typeInfo.setDefaultNillable(getConfiguration().isDefaultNillable()); BeanType type = new BeanType(typeInfo); type.setTypeMapping(getTypeMapping()); type.setSchemaType(typeName); return type; }