methodClassifierToIgnore

Description

With this configuration list option you can filter out methods by their classifier from the diagram.

You can add any of the following values to the configuration list:

  • ABSTRACT - all abstract non-static methods are filtered out

  • STATIC - all static non-abstract methods are filtered out

  • ABSTRACT_STATIC - all static abstract methods are filtered out

  • NONE - all methods without abstract or static classifier are filtered out

Default value

The default value of this configuration option is an empty list (no filtering via classifier).

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.t0020", 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.t0020</scanPackage>
							</scanPackages>
							<methodClassifierListToIgnore>STATIC</methodClassifierListToIgnore>
						</configuration>
					</execution>
				</executions>
			</plugin>

where all static methods are ignored and which is rendered this way:

0020_ignore_classifier_methods_diagram

and produces this PlantUML diagram text:

@startuml

abstract class de.elnarion.test.domain.t0020.Testclass {
	{method}  {abstract} +doSomething () : void
}

interface de.elnarion.test.domain.t0020.Testinterface {
	{method}  {abstract} +doSomething () : void
	{method}  {abstract} +doSomething2 () : void
	{method} +doSomething3 () : void
}

@enduml