public final class ModelNameUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getEnumModel(java.lang.String code,
java.lang.String packageRoot)
Deprecated.
since ages - use
getEnumModel(YEnumType, String) |
static java.lang.String |
getEnumModel(YEnumType enumType,
java.lang.String packageRoot)
Gets the enum model class string (including package) to given code.
|
static java.lang.String |
getModel(YComposedType type,
java.lang.String packageRoot)
Gets the model class string (including package) to given type.
|
static java.lang.String |
getModelName(YComposedType type)
Gets the model name (without package) to given type.
|
static java.lang.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 java.lang.String |
getModelPackage(YComposedType type,
java.lang.String packageRoot)
Gets the package of model to given type.
|
public static java.lang.String getModelName(YComposedType type)
public static java.lang.String getModelPackage(YComposedType type, java.lang.String packageRoot)
public static java.lang.String getModel(YComposedType type, java.lang.String packageRoot)
@Deprecated
public static java.lang.String getEnumModel(java.lang.String code,
java.lang.String packageRoot)
getEnumModel(YEnumType, String)public static java.lang.String getEnumModel(YEnumType enumType, java.lang.String packageRoot)
public static java.lang.String getModelOrClass(YAttributeDescriptor attribute, CodeGenerator gen, boolean primitive)
Copyright © 2018 SAP SE. All Rights Reserved.