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 TypeMethodDescriptionbooleanisAvailable(org.eclipse.emf.ecore.EClass eClass, IV8Project v8project) Returns whether the provided metadata class is currently available in the provided V8 project.booleanisAvailable(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).booleanisAvailable(org.eclipse.emf.ecore.EObject eObject) Returns whether the provided metadata object is currently available.booleanisAvailable(org.eclipse.emf.ecore.EObject eObject, IV8Project v8project) Returns whether the provided metadata object is currently available in the provided V8 project.booleanisAvailable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature) Returns whether the feature of the provided metadata object is currently available.booleanisAvailable(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.booleanmarkAsDisabled(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.booleanmarkAsDisabled(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:IMdObjectAvailabilityReturns whether the provided metadata object is currently available. Top level metadata object is expected,falsewill be returned otherwise.This is convenience method, fully equivalent to:
isAvailable(eObject, v8projectManager.getProject(eObject))
- Specified by:
isAvailablein 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:IMdObjectAvailabilityReturns whether the feature of the provided metadata object is currently available. Top level metadata object is expected,falsewill be returned otherwise.This is convenience method, fully equivalent to:
isAvailable(eObject, feature, v8projectManager.getProject(eObject))
- Specified by:
isAvailablein interfaceIMdObjectAvailability- Parameters:
eObject- the metadata object to check feature availability in, cannot benullfeature- the context feature to check availability, cannot benull- Returns:
- whether the provided metadata object is currently available
-
isAvailable
Description copied from interface:IMdObjectAvailabilityReturns whether the provided metadata object is currently available in the provided V8 project. Top level metadata object is expected,falsewill be returned otherwise.- Specified by:
isAvailablein interfaceIMdObjectAvailability- Parameters:
eObject- the metadata object to check availability, cannot benullv8project- 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:IMdObjectAvailabilityReturns whether the feature of the provided metadata object is currently available in the provided V8 project. Top level metadata object is expected,falsewill be returned otherwise.- Specified by:
isAvailablein interfaceIMdObjectAvailability- Parameters:
eObject- the metadata object to check feature availability in, cannot benullfeature- the context feature to check availability, cannot benullv8project- the V8 project to check in, cannot benull- Returns:
- whether the provided metadata object is currently available
-
isAvailable
Description copied from interface:IMdObjectAvailabilityReturns whether the provided metadata class is currently available in the provided V8 project. Top level metadata object class is expected,falsewill be returned otherwise.- Specified by:
isAvailablein interfaceIMdObjectAvailability- Parameters:
eClass- the metadata class to check availability, cannot benullv8project- 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:IMdObjectAvailabilityReturns 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,falsewill be returned otherwise.This is convenience method, fully equivalent to:
isAvailable(eClass, v8projectManager.getProject(context))
- Specified by:
isAvailablein interfaceIMdObjectAvailability- Parameters:
eClass- the metadata class to check availability, cannot benullcontext- 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:IMdObjectAvailabilityReturns whether the provided metadata object is currently unavailable and need to be marked as disabled. Top level metadata object is expected,falsewill be returned otherwise.- Specified by:
markAsDisabledin 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:IMdObjectAvailabilityReturns whether the provided metadata object class is currently unavailable and need to be marked as disabled. Top level metadata object is expected,falsewill be returned otherwise.- Specified by:
markAsDisabledin interfaceIMdObjectAvailability- Parameters:
eClass- the metadata class to check availability, cannot benullcontext- the context V8 project object, cannot benull- Returns:
- whether the provided metadata object class is currently unavailable and need to be marked as disabled
-