Class ECPStaticApplicableTester

  • All Implemented Interfaces:
    ECPApplicableTester

    @Deprecated
    public final class ECPStaticApplicableTester
    extends java.lang.Object
    implements ECPApplicableTester
    Deprecated.
    The implementation of the ECPApplicableTester for a static test, like defined in the staticTest element.
    Author:
    Eugen Neufeld
    • Constructor Summary

      Constructors 
      Constructor Description
      ECPStaticApplicableTester​(boolean singleValue, int priority, java.lang.Class<?> supportedClassType, java.lang.Class<? extends org.eclipse.emf.ecore.EObject> supportedEObject, java.lang.String supportedFeature)
      Deprecated.
      The constructor of the static tester.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int getPriority()
      Deprecated.
      The static priority of the corresponding control.
      java.lang.Class<?> getSupportedClassType()
      Deprecated.
      The class of the type the corresponding control supports.
      java.lang.Class<? extends org.eclipse.emf.ecore.EObject> getSupportedEObject()
      Deprecated.
      The eobejct which is supported by the corresponding control.
      java.lang.String getSupportedFeature()
      Deprecated.
      The name of the feature the corresponding control supports.
      int isApplicable​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature)
      Deprecated. 
      int isApplicable​(VDomainModelReference domainModelReference)
      Deprecated. 
      int isApplicable​(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor, org.eclipse.emf.ecore.EObject eObject)
      Deprecated.
      boolean isSingleValue()
      Deprecated.
      Whether the corresponding control is allowed only for single values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ECPStaticApplicableTester

        public ECPStaticApplicableTester​(boolean singleValue,
                                         int priority,
                                         java.lang.Class<?> supportedClassType,
                                         java.lang.Class<? extends org.eclipse.emf.ecore.EObject> supportedEObject,
                                         java.lang.String supportedFeature)
        Deprecated.
        The constructor of the static tester.
        Parameters:
        singleValue - whether the corresponding control supports only single valued features
        priority - the static priority
        supportedClassType - the class of the supported type
        supportedEObject - the eobject this tester allows
        supportedFeature - the feature this tester allows
    • Method Detail

      • isApplicable

        @Deprecated
        public int isApplicable​(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor,
                                org.eclipse.emf.ecore.EObject eObject)
        Deprecated.
        Returns the priority of the corresponding control for the combination of the EObject and the IItemPropertyDescriptor.
        Specified by:
        isApplicable in interface ECPApplicableTester
        Parameters:
        itemPropertyDescriptor - the IItemPropertyDescriptor to test
        eObject - the EObject to test
        Returns:
        ECPApplicableTester.NOT_APPLICABLE if the corresponding control should not be used, a positivie integer value otherwise. The control with the highest priority will be taken.
      • isSingleValue

        public boolean isSingleValue()
        Deprecated.
        Whether the corresponding control is allowed only for single values.
        Returns:
        true if only a single value is allows
      • getPriority

        public int getPriority()
        Deprecated.
        The static priority of the corresponding control.
        Returns:
        the priority
      • getSupportedEObject

        public java.lang.Class<? extends org.eclipse.emf.ecore.EObject> getSupportedEObject()
        Deprecated.
        The eobejct which is supported by the corresponding control.
        Returns:
        the class of the supported eobejct
      • getSupportedFeature

        public java.lang.String getSupportedFeature()
        Deprecated.
        The name of the feature the corresponding control supports.
        Returns:
        the name of the supported feature
      • getSupportedClassType

        public java.lang.Class<?> getSupportedClassType()
        Deprecated.
        The class of the type the corresponding control supports.
        Returns:
        the class of the supported type