Class ModelNameUtils
java.lang.Object
de.hybris.bootstrap.codegenerator.model.ModelNameUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetEnumModel(YEnumType enumType, String packageRoot) Gets the enum model class string (including package) to given code.static StringgetModel(YComposedType type, String packageRoot) Gets the model class string (including package) to given type.static StringgetModelName(YComposedType type) Gets the model name (without package) to given type.static StringgetModelOrClass(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 StringgetModelPackage(YComposedType type, String packageRoot) Gets the package of model to given type.
-
Method Details
-
getModelName
Gets the model name (without package) to given type. -
getModelPackage
Gets the package of model to given type. -
getModel
Gets the model class string (including package) to given type. -
getEnumModel
Gets the enum model class string (including package) to given code. -
getModelOrClass
public 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.
-