@Override public TypeClassInfo createClassInfo(PropertyDescriptor pd) { return createBasicClassInfo(pd.getPropertyType()); }
protected AegisType getOrCreateMapValueType(TypeClassInfo info) { return createObjectType(); } }
public DefaultTypeCreator(TypeCreationOptions configuration) { setConfiguration(configuration); }
@Override public AegisType createDefaultType(TypeClassInfo info) { BeanType type = new BeanType(); /* * As of this point, we refuse to do this for generics in general. * This might be revisited ... it might turn out to 'just work'. */ Class<?> typeClass = TypeUtil.getTypeClass(info.getType(), false); if (typeClass == null) { throw new DatabindingException("Unable to map generic type " + info.getType()); } type.setSchemaType(createQName(typeClass)); type.setTypeClass(typeClass); type.setTypeMapping(getTypeMapping()); BeanTypeInfo typeInfo = type.getTypeInfo(); typeInfo.setDefaultMinOccurs(getConfiguration().getDefaultMinOccurs()); typeInfo.setExtensibleAttributes(getConfiguration().isDefaultExtensibleAttributes()); typeInfo.setExtensibleElements(getConfiguration().isDefaultExtensibleElements()); return type; } protected AegisType getOrCreateMapKeyType(TypeClassInfo info) {
protected AbstractTypeCreator createDefaultTypeCreator() { AbstractTypeCreator creator = new DefaultTypeCreator(); creator.setConfiguration(getTypeCreationOptions()); return creator; }
@Override public AegisType createCollectionType(TypeClassInfo info) { if (!(info.getType() instanceof ParameterizedType)) { throw new DatabindingException("Cannot create mapping for " + info.getType() + ", unspecified component type for " + info.getDescription()); } return createCollectionTypeFromGeneric(info); }
@Override public AegisType createDefaultType(TypeClassInfo info) { BeanType type = new BeanType(); /* * As of this point, we refuse to do this for generics in general. * This might be revisited ... it might turn out to 'just work'. */ Class<?> typeClass = TypeUtil.getTypeClass(info.getType(), false); if (typeClass == null) { throw new DatabindingException("Unable to map generic type " + info.getType()); } type.setSchemaType(createQName(typeClass)); type.setTypeClass(typeClass); type.setTypeMapping(getTypeMapping()); BeanTypeInfo typeInfo = type.getTypeInfo(); typeInfo.setDefaultMinOccurs(getConfiguration().getDefaultMinOccurs()); typeInfo.setExtensibleAttributes(getConfiguration().isDefaultExtensibleAttributes()); typeInfo.setExtensibleElements(getConfiguration().isDefaultExtensibleElements()); return type; } protected AegisType getOrCreateMapKeyType(TypeClassInfo info) {
protected AbstractTypeCreator createDefaultTypeCreator() { AbstractTypeCreator creator = new DefaultTypeCreator(); creator.setConfiguration(getTypeCreationOptions()); return creator; }
@Override public AegisType createCollectionType(TypeClassInfo info) { if (!(info.getType() instanceof ParameterizedType)) { throw new DatabindingException("Cannot create mapping for " + info.getType() + ", unspecified component type for " + info.getDescription()); } return createCollectionTypeFromGeneric(info); }
protected AegisType getOrCreateMapValueType(TypeClassInfo info) { return createObjectType(); } }
@Override public TypeClassInfo createClassInfo(PropertyDescriptor pd) { return createBasicClassInfo(pd.getPropertyType()); }
public DefaultTypeCreator(TypeCreationOptions configuration) { setConfiguration(configuration); }
protected AegisType getOrCreateMapKeyType(TypeClassInfo info) { return createObjectType(); }
protected AegisType getOrCreateMapKeyType(TypeClassInfo info) { return createObjectType(); }