From 99d1e96b1b930223141f2dbbe3773495f4736faa Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Mon, 11 Dec 2017 19:50:33 +0100 Subject: [PATCH] [doc] Update doc regarding properties refs #504, refs #762 --- docs/pages/pmd/devdocs/working_with_properties.md | 4 +--- docs/pages/release_notes.md | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/pages/pmd/devdocs/working_with_properties.md b/docs/pages/pmd/devdocs/working_with_properties.md index 9aeba8cc44..0510f1da72 100644 --- a/docs/pages/pmd/devdocs/working_with_properties.md +++ b/docs/pages/pmd/devdocs/working_with_properties.md @@ -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. diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index 1931de3e36..77947d5265 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -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