Class PlatformTypeUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.testing.platform.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Property
createProperty(String name, String nameRu, boolean readable, boolean writable)
CreatesProperty
instance with the provided attributes.static TypeItem
createTypeItem(String name, String nameRu)
Creates type item instance based on the provided type name.static TypeItem
createTypeItemProxy(String name)
Creates type item proxy instance based on the provided type name.static boolean
isProducedTypeName(String name)
Returns whether the provided name is a name of produced type.static boolean
isTypeSetName(String name)
Returns whether the provided name is a name of type set.
-
-
-
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 benull
- 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 benull
nameRu
- the type russian name, cannot benull
- Returns:
- the type item instance, never
null
-
createProperty
public static Property createProperty(String name, String nameRu, boolean readable, boolean writable)
CreatesProperty
instance with the provided attributes.- Parameters:
name
- the value ofname
attribute, cannot benull
nameRu
- the value ofnameRu
attribute, cannot benull
readable
- the value ofreadable
attributewritable
- the value ofwritable
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 benull
- 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 benull
- Returns:
- whether the provided name is a name of produced type
-
-