Package com.iizix.prop
Class QuickFix
- java.lang.Object
- com.iizix.prop.QuickFix
public class QuickFix extends java.lang.Object
Class used in Eclipse to defined a possible Quick-Fix for a property.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Gets the description of the quick-fix.java.lang.String
getPropertyName()
Gets the property name.IQuickFix
getQuickFix()
Gets the object that is a quick-fix private format, null for none.void
saveTo(org.w3c.dom.Element element)
Saves the quick-fix into a new QuickFix Element.
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.