Class ObservableRuleBuilder
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.model.ObservableRuleBuilder
-
- All Implemented Interfaces:
SettingsOwner
- Direct Known Subclasses:
ObservableXPathRuleBuilder
public class ObservableRuleBuilder extends Object implements SettingsOwner
Holds info about a rule, and can build it to validate it.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description ObservableRuleBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactfx.value.Var<Class<?>>clazzProperty()ObservableRuleBuilderdeepCopy()org.reactfx.value.Var<Boolean>deprecatedProperty()org.reactfx.value.Var<String>descriptionProperty()org.reactfx.value.Var<String>externalInfoUrlProperty()List<? extends SettingsOwner>getChildrenSettingsNodes()Gets the children of this node in order.Class<?>getClazz()StringgetDescription()javafx.collections.ObservableList<String>getExamples()StringgetExternalInfoUrl()net.sourceforge.pmd.lang.LanguagegetLanguage()net.sourceforge.pmd.lang.LanguageVersiongetMaximumVersion()StringgetMessage()net.sourceforge.pmd.lang.LanguageVersiongetMinimumVersion()StringgetName()net.sourceforge.pmd.RulePrioritygetPriority()Optional<PropertyDescriptorSpec>getProperty(String name)org.reactfx.collection.LiveList<PropertyDescriptorSpec>getRuleProperties()StringgetSince()TestCollectiongetTestCollection()booleanisDeprecated()org.reactfx.value.Var<net.sourceforge.pmd.lang.Language>languageProperty()org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion>maximumVersionProperty()org.reactfx.value.Var<String>messageProperty()org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion>minimumVersionProperty()org.reactfx.value.Var<String>nameProperty()protected ObservableRuleBuildernewBuilder()org.reactfx.value.Var<net.sourceforge.pmd.RulePriority>priorityProperty()org.reactfx.value.Var<javafx.collections.ObservableList<PropertyDescriptorSpec>>rulePropertiesProperty()voidsetClazz(Class<?> clazz)voidsetDeprecated(boolean deprecated)voidsetDescription(String description)voidsetExamples(javafx.collections.ObservableList<String> examples)voidsetExternalInfoUrl(String externalInfoUrl)voidsetLanguage(net.sourceforge.pmd.lang.Language language)voidsetMaximumVersion(net.sourceforge.pmd.lang.LanguageVersion maximumVersion)voidsetMessage(String message)voidsetMinimumVersion(net.sourceforge.pmd.lang.LanguageVersion minimumVersion)voidsetName(String name)voidsetPriority(net.sourceforge.pmd.RulePriority priority)voidsetRuleProperties(javafx.collections.ObservableList<PropertyDescriptorSpec> ruleProperties)voidsetSince(String since)org.reactfx.value.Var<String>sinceProperty()
-
-
-
Method Detail
-
getLanguage
public net.sourceforge.pmd.lang.Language getLanguage()
-
setLanguage
public void setLanguage(net.sourceforge.pmd.lang.Language language)
-
languageProperty
public org.reactfx.value.Var<net.sourceforge.pmd.lang.Language> languageProperty()
-
getName
public String getName()
-
setName
public void setName(String name)
-
nameProperty
public org.reactfx.value.Var<String> nameProperty()
-
getClazz
public Class<?> getClazz()
-
setClazz
public final void setClazz(Class<?> clazz)
-
clazzProperty
public org.reactfx.value.Var<Class<?>> clazzProperty()
-
getRuleProperties
public org.reactfx.collection.LiveList<PropertyDescriptorSpec> getRuleProperties()
-
setRuleProperties
public void setRuleProperties(javafx.collections.ObservableList<PropertyDescriptorSpec> ruleProperties)
-
rulePropertiesProperty
public org.reactfx.value.Var<javafx.collections.ObservableList<PropertyDescriptorSpec>> rulePropertiesProperty()
-
getProperty
public Optional<PropertyDescriptorSpec> getProperty(String name)
-
getMinimumVersion
public net.sourceforge.pmd.lang.LanguageVersion getMinimumVersion()
-
setMinimumVersion
public void setMinimumVersion(net.sourceforge.pmd.lang.LanguageVersion minimumVersion)
-
minimumVersionProperty
public org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion> minimumVersionProperty()
-
getMaximumVersion
public net.sourceforge.pmd.lang.LanguageVersion getMaximumVersion()
-
setMaximumVersion
public void setMaximumVersion(net.sourceforge.pmd.lang.LanguageVersion maximumVersion)
-
maximumVersionProperty
public org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion> maximumVersionProperty()
-
getSince
public String getSince()
-
setSince
public void setSince(String since)
-
sinceProperty
public org.reactfx.value.Var<String> sinceProperty()
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
messageProperty
public org.reactfx.value.Var<String> messageProperty()
-
getExternalInfoUrl
public String getExternalInfoUrl()
-
setExternalInfoUrl
public void setExternalInfoUrl(String externalInfoUrl)
-
externalInfoUrlProperty
public org.reactfx.value.Var<String> externalInfoUrlProperty()
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
descriptionProperty
public org.reactfx.value.Var<String> descriptionProperty()
-
getExamples
public javafx.collections.ObservableList<String> getExamples()
-
setExamples
public void setExamples(javafx.collections.ObservableList<String> examples)
-
getPriority
public net.sourceforge.pmd.RulePriority getPriority()
-
setPriority
public void setPriority(net.sourceforge.pmd.RulePriority priority)
-
priorityProperty
public org.reactfx.value.Var<net.sourceforge.pmd.RulePriority> priorityProperty()
-
isDeprecated
public boolean isDeprecated()
-
setDeprecated
public void setDeprecated(boolean deprecated)
-
getTestCollection
public TestCollection getTestCollection()
-
getChildrenSettingsNodes
public List<? extends SettingsOwner> getChildrenSettingsNodes()
Description copied from interface:SettingsOwnerGets the children of this node in order.- Specified by:
getChildrenSettingsNodesin interfaceSettingsOwner
-
deprecatedProperty
public org.reactfx.value.Var<Boolean> deprecatedProperty()
-
deepCopy
public ObservableRuleBuilder deepCopy()
-
newBuilder
protected ObservableRuleBuilder newBuilder()
-
-