Class TypeFactory

java.lang.Object
com.polarion.subterra.base.data.model.TypeFactory

public final class TypeFactory extends Object
Author:
Stepan Roh, Polarion Software
  • Method Details

    • getInstance

      @NotNull public static TypeFactory getInstance()
    • getPrimitiveType

      @NotNull public IPrimitiveType getPrimitiveType(@NotNull Class clazz)
    • getPrimitiveType

      @NotNull public IPrimitiveType getPrimitiveType(@NotNull String typeName)
    • getPrimitiveType

      @NotNull public IPrimitiveType getPrimitiveType(@NotNull Class clazz, @Nullable String subtype)
      Returns:
      primitive type (not null)
      Since:
      3.4
    • getPrimitiveType

      @NotNull public IPrimitiveType getPrimitiveType(@NotNull String typeName, @Nullable String subtype)
      Returns:
      primitive type (not null)
      Since:
      3.4
    • getListType

      @NotNull public IListType getListType(@NotNull String typeId, @NotNull IType itemType)
    • getListType

      @NotNull public IListType getListType(@NotNull String typeId)
      Since:
      3.6.3
    • getStructType

      @NotNull public IStructType getStructType(@NotNull String id, @NotNull Map keys)
    • getStructType

      @NotNull public IStructType getStructType(@NotNull String id, @NotNull Map keys, @Nullable IStructValueSerializer serializer)
      Since:
      3.2.0
    • addStructType

      public void addStructType(@NotNull IStructType struct)
      Internal API, do not use.
      Since:
      3.21.1
    • getStructType

      @NotNull public IStructType getStructType(@NotNull String id)
      Since:
      3.6.3
    • getReferenceType

      @NotNull public IReferenceType getReferenceType(@NotNull String prototypeName)
    • getEnumType

      @NotNull public IEnumType getEnumType(@NotNull String enumId)
    • isBoolean

      public boolean isBoolean(@NotNull IType type)
      Since:
      3.8.1