Class ModelNameUtils

java.lang.Object
de.hybris.bootstrap.codegenerator.model.ModelNameUtils

public final class ModelNameUtils extends Object
  • Method Details

    • getModelName

      public static String getModelName(YComposedType type)
      Gets the model name (without package) to given type.
    • getModelPackage

      public static String getModelPackage(YComposedType type, String packageRoot)
      Gets the package of model to given type.
    • getModel

      public static String getModel(YComposedType type, String packageRoot)
      Gets the model class string (including package) to given type.
    • getEnumModel

      public static String getEnumModel(YEnumType enumType, String packageRoot)
      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.