in odata2-annotation-processor/annotation-processor-core/src/main/java/org/apache/olingo/odata2/annotation/processor/core/util/AnnotationHelper.java [807:847]
public EdmSimpleTypeKind mapTypeKind(final org.apache.olingo.odata2.api.annotation.edm.EdmType type) {
switch (type) {
case BINARY:
return EdmSimpleTypeKind.Binary;
case BOOLEAN:
return EdmSimpleTypeKind.Boolean;
case BYTE:
return EdmSimpleTypeKind.Byte;
case COMPLEX:
return EdmSimpleTypeKind.Null;
case DATE_TIME:
return EdmSimpleTypeKind.DateTime;
case DATE_TIME_OFFSET:
return EdmSimpleTypeKind.DateTimeOffset;
case DECIMAL:
return EdmSimpleTypeKind.Decimal;
case DOUBLE:
return EdmSimpleTypeKind.Double;
case GUID:
return EdmSimpleTypeKind.Guid;
case INT16:
return EdmSimpleTypeKind.Int16;
case INT32:
return EdmSimpleTypeKind.Int32;
case INT64:
return EdmSimpleTypeKind.Int64;
case NULL:
return EdmSimpleTypeKind.Null;
case SBYTE:
return EdmSimpleTypeKind.SByte;
case SINGLE:
return EdmSimpleTypeKind.Single;
case STRING:
return EdmSimpleTypeKind.String;
case TIME:
return EdmSimpleTypeKind.Time;
default:
throw new AnnotationRuntimeException("Unknown type '" + type
+ "' for mapping to EdmSimpleTypeKind.");
}
}