Package com._1c.g5.v8.dt.md.extension
Class MdExtensionTypeUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.md.extension.MdExtensionTypeUtil
-
public class MdExtensionTypeUtil extends Object
TypeDescriptionExtension
utilities
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<MdPropertyState>
getContainedTypeStates(TypeDescriptionExtension typeDescriptionExtension)
static org.eclipse.emf.ecore.EStructuralFeature
getTypeDescriptionFeature(MdObject mdObject)
GetsTypeDescription
contains feature which can be replaced byTypeDescriptionExtension
object by givenMdObject
static org.eclipse.emf.ecore.EStructuralFeature
getTypeExtensionFeature(ObjectExtension objectExtension)
GetsTypeDescriptionExtension
contains feature by givenObjectExtension
static boolean
isTypeDescriptionFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Check given feature is can containTypeDescription
which can be replaced byTypeDescriptionExtension
objectstatic boolean
isTypeExtensionFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Check given feature is can containTypeDescriptionExtension
objectstatic TypeDescriptionExtension
newTypeDescriptionExtension()
Returns a new type description extensionstatic TypeDescriptionExtension
newTypeDescriptionExtension(TypeExtension typeExtension)
Returns a new type description extension containing the given type extensionstatic TypeExtension
newTypeExtension(TypeItem typeItem, MdPropertyState newPropertyState)
Returns a new type extension containing the reference to given type and sets given property state
-
-
-
Method Detail
-
isTypeExtensionFeature
public static boolean isTypeExtensionFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Check given feature is can containTypeDescriptionExtension
object- Parameters:
feature
- to check, can benull
- Returns:
true
if given feature is can containTypeDescriptionExtension
object
-
isTypeDescriptionFeature
public static boolean isTypeDescriptionFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Check given feature is can containTypeDescription
which can be replaced byTypeDescriptionExtension
object- Parameters:
feature
- to check, can benull
- Returns:
true
if given feature is can containTypeDescription
which can be replaced byTypeDescriptionExtension
object
-
getTypeExtensionFeature
public static org.eclipse.emf.ecore.EStructuralFeature getTypeExtensionFeature(ObjectExtension objectExtension)
GetsTypeDescriptionExtension
contains feature by givenObjectExtension
- Parameters:
objectExtension
- the target object to searchTypeDescriptionExtension
feature, can benull
- Returns:
TypeDescriptionExtension
contains feature, ornull
-
getTypeDescriptionFeature
public static org.eclipse.emf.ecore.EStructuralFeature getTypeDescriptionFeature(MdObject mdObject)
GetsTypeDescription
contains feature which can be replaced byTypeDescriptionExtension
object by givenMdObject
- Parameters:
the
- target mdObject to searchTypeDescription
feature, can benull
- Returns:
TypeDescription
contains feature, ornull
-
getContainedTypeStates
public static List<MdPropertyState> getContainedTypeStates(TypeDescriptionExtension typeDescriptionExtension)
- Parameters:
typeDescriptionExtension
- the targetTypeDescriptionExtension
, cannot benull
- Returns:
- list of uniqu
MdPropertyState
in givenTypeDescriptionExtension
object, nevernull
-
newTypeDescriptionExtension
public static TypeDescriptionExtension newTypeDescriptionExtension()
Returns a new type description extension- Returns:
- a new type description extension, never
null
-
newTypeDescriptionExtension
public static TypeDescriptionExtension newTypeDescriptionExtension(TypeExtension typeExtension)
Returns a new type description extension containing the given type extension- Parameters:
typeExtension
- type to be added to the type decription extension, can benull
. In that case empty type description is created.- Returns:
- a new type description extension containing the given type, never
null
-
newTypeExtension
public static TypeExtension newTypeExtension(TypeItem typeItem, MdPropertyState newPropertyState)
Returns a new type extension containing the reference to given type and sets given property state- Parameters:
typeItem
- of new type extension, cannot benull
newPropertyState
- state of type in new type extension, ifnull
thenMdPropertyState.NONE
value will be setted- Returns:
- a new type extension containing the reference to given type and
sets given property state, never
null
-
-