Class MdObjectAvailability
java.lang.Object
com._1c.g5.v8.dt.internal.md.availability.MdObjectAvailability
- All Implemented Interfaces:
IMdObjectAvailability
Composite implementation of
IMdObjectAvailability
that loads all registered availability
delegates in "com._1c.g5.v8.dt.md.objectAvailability" extensions and combine their restrictions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAvailable
(org.eclipse.emf.ecore.EClass eClass, IV8Project v8project) Returns whether the provided metadata class is currently available in the provided V8 project.boolean
isAvailable
(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject context) Returns whether the provided metadata class is currently available in the V8 project of the provided context object (some of the target V8 project object).boolean
isAvailable
(org.eclipse.emf.ecore.EObject eObject) Returns whether the provided metadata object is currently available.boolean
isAvailable
(org.eclipse.emf.ecore.EObject eObject, IV8Project v8project) Returns whether the provided metadata object is currently available in the provided V8 project.boolean
isAvailable
(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature) Returns whether the feature of the provided metadata object is currently available.boolean
isAvailable
(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project) Returns whether the feature of the provided metadata object is currently available in the provided V8 project.boolean
markAsDisabled
(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject context) Returns whether the provided metadata object class is currently unavailable and need to be marked as disabled.boolean
markAsDisabled
(org.eclipse.emf.ecore.EObject eObject) Returns whether the provided metadata object is currently unavailable and need to be marked as disabled.
-
Constructor Details
-
MdObjectAvailability
public MdObjectAvailability()
-
-
Method Details
-
isAvailable
public boolean isAvailable(org.eclipse.emf.ecore.EObject eObject) Description copied from interface:IMdObjectAvailability
Returns whether the provided metadata object is currently available. Top level metadata object is expected,false
will be returned otherwise.This is convenience method, fully equivalent to:
isAvailable(eObject, v8projectManager.getProject(eObject))
- Specified by:
isAvailable
in interfaceIMdObjectAvailability
- Parameters:
eObject
- the metadata object to check availability, cannot benull
- Returns:
- whether the provided metadata object is currently available
-
isAvailable
public boolean isAvailable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature) Description copied from interface:IMdObjectAvailability
Returns whether the feature of the provided metadata object is currently available. Top level metadata object is expected,false
will be returned otherwise.This is convenience method, fully equivalent to:
isAvailable(eObject, feature, v8projectManager.getProject(eObject))
- Specified by:
isAvailable
in interfaceIMdObjectAvailability
- Parameters:
eObject
- the metadata object to check feature availability in, cannot benull
feature
- the context feature to check availability, cannot benull
- Returns:
- whether the provided metadata object is currently available
-
isAvailable
Description copied from interface:IMdObjectAvailability
Returns whether the provided metadata object is currently available in the provided V8 project. Top level metadata object is expected,false
will be returned otherwise.- Specified by:
isAvailable
in interfaceIMdObjectAvailability
- Parameters:
eObject
- the metadata object to check availability, cannot benull
v8project
- the V8 project to check in, cannot benull
- Returns:
- whether the provided metadata object is currently available
-
isAvailable
public boolean isAvailable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project) Description copied from interface:IMdObjectAvailability
Returns whether the feature of the provided metadata object is currently available in the provided V8 project. Top level metadata object is expected,false
will be returned otherwise.- Specified by:
isAvailable
in interfaceIMdObjectAvailability
- Parameters:
eObject
- the metadata object to check feature availability in, cannot benull
feature
- the context feature to check availability, cannot benull
v8project
- the V8 project to check in, cannot benull
- Returns:
- whether the provided metadata object is currently available
-
isAvailable
Description copied from interface:IMdObjectAvailability
Returns whether the provided metadata class is currently available in the provided V8 project. Top level metadata object class is expected,false
will be returned otherwise.- Specified by:
isAvailable
in interfaceIMdObjectAvailability
- Parameters:
eClass
- the metadata class to check availability, cannot benull
v8project
- the V8 project to check in, cannot benull
- Returns:
- whether the provided metadata class is currently available in the provided V8 project
-
isAvailable
public boolean isAvailable(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject context) Description copied from interface:IMdObjectAvailability
Returns whether the provided metadata class is currently available in the V8 project of the provided context object (some of the target V8 project object). Top level metadata object class is expected,false
will be returned otherwise.This is convenience method, fully equivalent to:
isAvailable(eClass, v8projectManager.getProject(context))
- Specified by:
isAvailable
in interfaceIMdObjectAvailability
- Parameters:
eClass
- the metadata class to check availability, cannot benull
context
- the context V8 project object, cannot benull
- Returns:
- whether the provided metadata class is currently available in the V8 project of the provided context object
-
markAsDisabled
public boolean markAsDisabled(org.eclipse.emf.ecore.EObject eObject) Description copied from interface:IMdObjectAvailability
Returns whether the provided metadata object is currently unavailable and need to be marked as disabled. Top level metadata object is expected,false
will be returned otherwise.- Specified by:
markAsDisabled
in interfaceIMdObjectAvailability
- Parameters:
eObject
- the metadata object to check availability, cannot benull
- Returns:
- whether the provided metadata object is currently unavailable and need to be marked as disabled
-
markAsDisabled
public boolean markAsDisabled(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject context) Description copied from interface:IMdObjectAvailability
Returns whether the provided metadata object class is currently unavailable and need to be marked as disabled. Top level metadata object is expected,false
will be returned otherwise.- Specified by:
markAsDisabled
in interfaceIMdObjectAvailability
- Parameters:
eClass
- the metadata class to check availability, cannot benull
context
- the context V8 project object, cannot benull
- Returns:
- whether the provided metadata object class is currently unavailable and need to be marked as disabled
-