Class QuickFix


  • public class QuickFix
    extends java.lang.Object
    Class used in Eclipse to defined a possible Quick-Fix for a property.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      QuickFix​(java.lang.String propertyName, java.lang.String description, IQuickFix quickFix)
      Constructs the quick-fix object.
      QuickFix​(org.w3c.dom.Element element)
      Creates a new QuickFix object from an XML Element.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.lang.StringgetDescription()
      Gets the description of the quick-fix.
      java.lang.StringgetPropertyName()
      Gets the property name.
      IQuickFixgetQuickFix()
      Gets the object that is a quick-fix private format, null for none.
      voidsaveTo​(org.w3c.dom.Element element)
      Saves the quick-fix into a new QuickFix Element.
      • Methods inherited from class java.lang.Object

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

      • QuickFix

        public QuickFix​(java.lang.String propertyName,
                        java.lang.String description,
                        IQuickFix quickFix)
        Constructs the quick-fix object.
        Parameters:
        propertyName - The property name.
        description - The description of the quick-fix.
        quickFix - The object that is a quick-fix private format.
        Throws:
        java.lang.NullPointerException - If propertyName or description is null.
      • QuickFix

        public QuickFix​(org.w3c.dom.Element element)
                 throws java.lang.Throwable
        Creates a new QuickFix object from an XML Element.
        Throws:
        java.lang.Throwable - For errors (or directly from IQuickFix implementation).
    • Method Detail

      • getPropertyName

        public java.lang.String getPropertyName()
        Gets the property name.
      • getDescription

        public java.lang.String getDescription()
        Gets the description of the quick-fix.
      • getQuickFix

        public IQuickFix getQuickFix()
        Gets the object that is a quick-fix private format, null for none.
      • saveTo

        public void saveTo​(org.w3c.dom.Element element)
        Saves the quick-fix into a new QuickFix Element.