Class MdObjectAvailability

java.lang.Object
com._1c.g5.v8.dt.internal.md.availability.MdObjectAvailability
All Implemented Interfaces:
IMdObjectAvailability

public class MdObjectAvailability extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface IMdObjectAvailability
      Parameters:
      eObject - the metadata object to check availability, cannot be null
      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 interface IMdObjectAvailability
      Parameters:
      eObject - the metadata object to check feature availability in, cannot be null
      feature - the context feature to check availability, cannot be null
      Returns:
      whether the provided metadata object is currently available
    • isAvailable

      public boolean isAvailable(org.eclipse.emf.ecore.EObject eObject, IV8Project v8project)
      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 interface IMdObjectAvailability
      Parameters:
      eObject - the metadata object to check availability, cannot be null
      v8project - the V8 project to check in, cannot be null
      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 interface IMdObjectAvailability
      Parameters:
      eObject - the metadata object to check feature availability in, cannot be null
      feature - the context feature to check availability, cannot be null
      v8project - the V8 project to check in, cannot be null
      Returns:
      whether the provided metadata object is currently available
    • isAvailable

      public boolean isAvailable(org.eclipse.emf.ecore.EClass eClass, IV8Project v8project)
      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 interface IMdObjectAvailability
      Parameters:
      eClass - the metadata class to check availability, cannot be null
      v8project - the V8 project to check in, cannot be null
      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 interface IMdObjectAvailability
      Parameters:
      eClass - the metadata class to check availability, cannot be null
      context - the context V8 project object, cannot be null
      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 interface IMdObjectAvailability
      Parameters:
      eObject - the metadata object to check availability, cannot be null
      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 interface IMdObjectAvailability
      Parameters:
      eClass - the metadata class to check availability, cannot be null
      context - the context V8 project object, cannot be null
      Returns:
      whether the provided metadata object class is currently unavailable and need to be marked as disabled