Package com.sap.cds.reflect
Interface CdsStringType
-
- All Superinterfaces:
CdsAnnotatable
,CdsDefinition
,CdsNamed
,CdsSimpleType
,CdsType
public interface CdsStringType extends CdsSimpleType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Class<?>
getJavaType()
Returns the Java type of thisCdsSimpleType
definition.default Integer
getLength()
Returns the length of thisCdsString
.default CdsBaseType
getType()
Returns theCdsBaseType
of thisCdsSimpleType
definition.boolean
isLocalized()
Returnstrue
if thisCdsString
is localized.-
Methods inherited from interface com.sap.cds.reflect.CdsAnnotatable
annotations, findAnnotation, getAnnotationValue
-
Methods inherited from interface com.sap.cds.reflect.CdsDefinition
as, getKey, getKind, getName, getQualifier
-
Methods inherited from interface com.sap.cds.reflect.CdsSimpleType
accept, defaultValue, get, getQualifiedName, isSimple
-
Methods inherited from interface com.sap.cds.reflect.CdsType
isArrayed, isAssociation, isEnum, isSimpleType, isStructured
-
-
-
-
Field Detail
-
LENGTH
static final String LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
isLocalized
boolean isLocalized()
Returnstrue
if thisCdsString
is localized.- Returns:
true
if this String type is localized, otherwisefalse
-
getLength
default Integer getLength()
Returns the length of thisCdsString
. The default is 5000.- Returns:
- the length of this String type, not
null
-
getType
default CdsBaseType getType()
Description copied from interface:CdsSimpleType
Returns theCdsBaseType
of thisCdsSimpleType
definition.- Specified by:
getType
in interfaceCdsSimpleType
- Returns:
- the
CdsBaseType
of this simple type definition, notnull
-
getJavaType
default Class<?> getJavaType()
Description copied from interface:CdsSimpleType
Returns the Java type of thisCdsSimpleType
definition.- Specified by:
getJavaType
in interfaceCdsSimpleType
- Returns:
- the Java type of this simple type definition, not
null
-
-