fieldBlacklistRegexp

Description

With this configuration option you can add a regular expression to the configuration to filter out specific fields from the diagram.

Default value

The default value of this configuration is null.

Example

In the following example there are three dependencies in the maven dependency hierarchy which build the classpath for all further generation:

	<dependencies>
		<dependency>
			<groupId>de.elnarion.util</groupId>
			<artifactId>plantuml-generator-util</artifactId>
			<version>@project.version@</version>
			<classifier>tests</classifier>
			<type>test-jar</type>
		</dependency>
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>2.16.1</version>
		</dependency>
		<dependency>
			<groupId>javax.persistence</groupId>
			<artifactId>javax.persistence-api</artifactId>
			<version>2.2</version>
		</dependency>
	</dependencies>

From this classpath all classes of the package "de.elnarion.test.domain.t0018", which are also used by the JUnit-tests of the PlantUML generator utility, should be generated as class diagram with the following plugin configuration

			<plugin>
				<artifactId>plantuml-generator-maven-plugin</artifactId>
				<groupId>de.elnarion.maven</groupId>
				<version>@project.version@</version>
				<executions>
					<execution>
						<id>generate-simple-diagram</id>
						<goals>
							<goal>generate</goal>
						</goals>
						<phase>generate-test-sources</phase>
						<configuration>
							<outputFilename>testdiagram1.txt</outputFilename>
							<scanPackages>
								<scanPackage>de.elnarion.test.domain.t0018</scanPackage>
							</scanPackages>
							<fieldBlacklistRegexp>test1</fieldBlacklistRegexp>
						</configuration>
					</execution>
				</executions>
			</plugin>

where the method with the name test1 is excluded by the blacklist field regular expression. This configuration is rendered this way:

0018_blacklist_fields_diagram

and produces this PlantUML diagram text:

@startuml

class de.elnarion.test.domain.t0018.Testclass1 {
	{field} +testfield : long
	{method} +doSomething () : void
}

class de.elnarion.test.domain.t0018.Testclass2 {
	{method} #doSomething () : void
}

de.elnarion.test.domain.t0018.Testclass1 -->  de.elnarion.test.domain.t0018.Testclass2 : testfield2

@enduml