Class ObservableRuleBuilder
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.model.ObservableRuleBuilder
-
- All Implemented Interfaces:
SettingsOwner
- Direct Known Subclasses:
ObservableXPathRuleBuilder
public class ObservableRuleBuilder extends java.lang.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<java.lang.Class<?>>
clazzProperty()
ObservableRuleBuilder
deepCopy()
org.reactfx.value.Var<java.lang.Boolean>
deprecatedProperty()
org.reactfx.value.Var<java.lang.String>
descriptionProperty()
org.reactfx.value.Var<java.lang.String>
externalInfoUrlProperty()
java.util.List<? extends SettingsOwner>
getChildrenSettingsNodes()
Gets the children of this node in order.java.lang.Class<?>
getClazz()
java.lang.String
getDescription()
javafx.collections.ObservableList<java.lang.String>
getExamples()
java.lang.String
getExternalInfoUrl()
net.sourceforge.pmd.lang.Language
getLanguage()
net.sourceforge.pmd.lang.LanguageVersion
getMaximumVersion()
java.lang.String
getMessage()
net.sourceforge.pmd.lang.LanguageVersion
getMinimumVersion()
java.lang.String
getName()
net.sourceforge.pmd.RulePriority
getPriority()
java.util.Optional<PropertyDescriptorSpec>
getProperty(java.lang.String name)
org.reactfx.collection.LiveList<PropertyDescriptorSpec>
getRuleProperties()
java.lang.String
getSince()
TestCollection
getTestCollection()
boolean
isDeprecated()
org.reactfx.value.Var<net.sourceforge.pmd.lang.Language>
languageProperty()
org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion>
maximumVersionProperty()
org.reactfx.value.Var<java.lang.String>
messageProperty()
org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion>
minimumVersionProperty()
org.reactfx.value.Var<java.lang.String>
nameProperty()
protected ObservableRuleBuilder
newBuilder()
org.reactfx.value.Var<net.sourceforge.pmd.RulePriority>
priorityProperty()
org.reactfx.value.Var<javafx.collections.ObservableList<PropertyDescriptorSpec>>
rulePropertiesProperty()
void
setClazz(java.lang.Class<?> clazz)
void
setDeprecated(boolean deprecated)
void
setDescription(java.lang.String description)
void
setExamples(javafx.collections.ObservableList<java.lang.String> examples)
void
setExternalInfoUrl(java.lang.String externalInfoUrl)
void
setLanguage(net.sourceforge.pmd.lang.Language language)
void
setMaximumVersion(net.sourceforge.pmd.lang.LanguageVersion maximumVersion)
void
setMessage(java.lang.String message)
void
setMinimumVersion(net.sourceforge.pmd.lang.LanguageVersion minimumVersion)
void
setName(java.lang.String name)
void
setPriority(net.sourceforge.pmd.RulePriority priority)
void
setRuleProperties(javafx.collections.ObservableList<PropertyDescriptorSpec> ruleProperties)
void
setSince(java.lang.String since)
org.reactfx.value.Var<java.lang.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 java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
nameProperty
public org.reactfx.value.Var<java.lang.String> nameProperty()
-
getClazz
public java.lang.Class<?> getClazz()
-
setClazz
public final void setClazz(java.lang.Class<?> clazz)
-
clazzProperty
public org.reactfx.value.Var<java.lang.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 java.util.Optional<PropertyDescriptorSpec> getProperty(java.lang.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 java.lang.String getSince()
-
setSince
public void setSince(java.lang.String since)
-
sinceProperty
public org.reactfx.value.Var<java.lang.String> sinceProperty()
-
getMessage
public java.lang.String getMessage()
-
setMessage
public void setMessage(java.lang.String message)
-
messageProperty
public org.reactfx.value.Var<java.lang.String> messageProperty()
-
getExternalInfoUrl
public java.lang.String getExternalInfoUrl()
-
setExternalInfoUrl
public void setExternalInfoUrl(java.lang.String externalInfoUrl)
-
externalInfoUrlProperty
public org.reactfx.value.Var<java.lang.String> externalInfoUrlProperty()
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
descriptionProperty
public org.reactfx.value.Var<java.lang.String> descriptionProperty()
-
getExamples
public javafx.collections.ObservableList<java.lang.String> getExamples()
-
setExamples
public void setExamples(javafx.collections.ObservableList<java.lang.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 java.util.List<? extends SettingsOwner> getChildrenSettingsNodes()
Description copied from interface:SettingsOwner
Gets the children of this node in order.- Specified by:
getChildrenSettingsNodes
in interfaceSettingsOwner
-
deprecatedProperty
public org.reactfx.value.Var<java.lang.Boolean> deprecatedProperty()
-
deepCopy
public ObservableRuleBuilder deepCopy()
-
newBuilder
protected ObservableRuleBuilder newBuilder()
-
-