public final class ModelNameUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getEnumModel(String code,
String packageRoot)
Deprecated.
|
static String |
getEnumModel(YEnumType enumType,
String packageRoot)
Gets the enum model class string (including package) to given code.
|
static String |
getModel(YComposedType type,
String packageRoot)
Gets the model class string (including package) to given type.
|
static String |
getModelName(YComposedType type)
Gets the model name (without package) to given type.
|
static String |
getModelOrClass(YAttributeDescriptor attribute,
CodeGenerator gen,
boolean primitive)
Gets the model class string to given attribute type if it is a composed type, otherwise the java class string.
|
static String |
getModelPackage(YComposedType type,
String packageRoot)
Gets the package of model to given type.
|
public static String getModelName(YComposedType type)
public static String getModelPackage(YComposedType type, String packageRoot)
public static String getModel(YComposedType type, String packageRoot)
@Deprecated public static String getEnumModel(String code, String packageRoot)
getEnumModel(YEnumType, String)public static String getEnumModel(YEnumType enumType, String packageRoot)
public static String getModelOrClass(YAttributeDescriptor attribute, CodeGenerator gen, boolean primitive)
Copyright © 2017 SAP SE. All Rights Reserved.