Class PlatformTypeUtil


  • public final class PlatformTypeUtil
    extends Object
    Utility methods to work with platform type stubs.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Method Detail

      • createTypeItemProxy

        public static TypeItem createTypeItemProxy​(String name)
        Creates type item proxy instance based on the provided type name.
        Parameters:
        name - the type name, cannot be null
        Returns:
        the type item instance, never null
      • createTypeItem

        public static TypeItem createTypeItem​(String name,
                                              String nameRu)
        Creates type item instance based on the provided type name.
        Parameters:
        name - the type name, cannot be null
        nameRu - the type russian name, cannot be null
        Returns:
        the type item instance, never null
      • createProperty

        public static Property createProperty​(String name,
                                              String nameRu,
                                              boolean readable,
                                              boolean writable)
        Creates Property instance with the provided attributes.
        Parameters:
        name - the value of name attribute, cannot be null
        nameRu - the value of nameRu attribute, cannot be null
        readable - the value of readable attribute
        writable - the value of writable attribute
        Returns:
        the created instance, never null
      • isTypeSetName

        public static boolean isTypeSetName​(String name)
        Returns whether the provided name is a name of type set.
        Parameters:
        name - the type name to check, cannot be null
        Returns:
        whether the provided name is a name of type set
      • isProducedTypeName

        public static boolean isProducedTypeName​(String name)
        Returns whether the provided name is a name of produced type.
        Parameters:
        name - the type name to check, cannot be null
        Returns:
        whether the provided name is a name of produced type