Class UnionExporterQualifier

  • All Implemented Interfaces:
    IExporterQualifier

    public class UnionExporterQualifier
    extends Object
    implements IExporterQualifier
    Creates a union-based qualifier that qualifies exporters with a list of provided qualifiers.
    • Constructor Detail

      • UnionExporterQualifier

        public UnionExporterQualifier​(List<IExporterQualifier> qualifiers)
        Creates an instance of UnionExporterQualifier.
        Parameters:
        qualifiers - a list of qualifiers to use, cannot be null
    • Method Detail

      • combine

        public static IExporterQualifier combine​(IExporterQualifier... qualifiers)
        Creates an instance of UnionExporterQualifier.
        Parameters:
        qualifiers - an array of qualifiers to use, cannot be null
      • qualify

        public boolean qualify​(IExporter exporter,
                               Version version,
                               org.eclipse.emf.ecore.EObject eObject)
        Description copied from interface: IExporterQualifier
        Qualify whether need to use the provided IExporter for the provided object and version.
        Specified by:
        qualify in interface IExporterQualifier
        Parameters:
        exporter - the exporter to check, cannot be null
        version - the 1C:Enterprise runtime version, cannot be null
        eObject - the object to export, cannot be null
        Returns:
        whether need to use the provider IExporter for the provided object and version