generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Description
In this chapter https://cap.cloud.sap/docs/java/reflection-api:
if (type.isSimple()) { // true
CdsSimpleType simple = type.as(CdsSimpleType.class);
String typeName = simple.getQualifiedName(); // "cds.String"
CdsBaseType baseType = simple.getType(); // CdsBaseType.STRING
Class<?> javaType = simple.getJavaType(); // String.class
**Boolean localized = simple.get("localized"); // true**
Integer length = simple.get("length"); // 111
}
The actual value of localized is null.
In com.sap.cds.reflect.impl.CdsSimpleTypeBuilder, the property "localized" is not listed.
public <T> T get(String property) {
switch (property) {
case CdsConstants.LENGTH:
case CdsConstants.PRECISION:
case CdsConstants.SRID:
return (T) Integer.valueOf(v1);
default:
return null;
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels