[doc] Update doc regarding properties

refs #504, refs #762
This commit is contained in:
Andreas Dangel
2017-12-11 19:50:33 +01:00
parent 7e5c272f17
commit 99d1e96b1b
2 changed files with 5 additions and 4 deletions

View File

@@ -151,9 +151,7 @@ XPath rules can also define their own properties. To do so, you must add a `prop
|String|StringProperty
|Character|CharacterProperty
|Boolean|BooleanProperty
|File|FileProperty
|Class|TypeProperty
|Method|MethodProperty
Note that enumerated properties are not available in XPath rules (yet?).
@@ -181,7 +179,7 @@ You can then use the property in XPath with the syntax `$propertyName`, for exam
#### Multivalued properties
Multivalued properties are also allowed and their `type` attribute has the form `List[Boolean]` or `List[Character]`, with every above type allowed (except `File`). These properties **require XPath 2.0** to work properly, and make use of the **sequence datatype** provided by that language. You thus need to set the `version` property to `2.0` to use them. Properties can also declare the `delimiter` attribute.
Multivalued properties are also allowed and their `type` attribute has the form `List[Boolean]` or `List[Character]`, with every above type allowed. These properties **require XPath 2.0** to work properly, and make use of the **sequence datatype** provided by that language. You thus need to set the `version` property to `2.0` to use them. Properties can also declare the `delimiter` attribute.

View File

@@ -348,7 +348,10 @@ package `net.sourceforge.pmd.properties`. While there is no change necessary in
when using/setting values for rules, there are adjustments necessary when declaring properties in Java-implemented
rules.
The properties are now very well documented: [Working with properties](pmd_devdocs_working_with_properties.html).
Rule properties can be declared both for Java based rules and XPath rules.
This is now very well documented in [Working with properties](pmd_devdocs_working_with_properties.html).
With PMD 6.0.0, multivalued properties are now also possible with XPath rules.
### Fixed Issues