removeFields

Description

With this configuration toggle you can remove all fields from the generated diagram text.

If you want to remove specific fields from the diagram, you have to use the field blacklist regular expression configuration option.

If you want to hide all fields on the rendered diagram but do not want to remove them from the diagram text, you have to use the hide fields configuration option.

Default value

The default value of this configuration option is false (nothing is removed).

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.t0016", 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.t0016</scanPackage>
							</scanPackages>
							<removeFields>true</removeFields>
						</configuration>
					</execution>
				</executions>
			</plugin>

but all fields should be removed from the rendered diagram. This configuration leads to this diagram:

0016_remove_fields_diagram

and produces this PlantUML diagram text:

@startuml

class de.elnarion.test.domain.t0016.Testclass1 {
	{method} +doSomething () : void
}

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

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

@enduml