summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/configuration/Filter.java
blob: 3fb594a20a718545017c5c5423da52a9089a7094 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.openslx.runvirt.configuration;

public abstract class Filter<T, R> implements FilterFunction<T, R>
{
	private final String name;
	private boolean enabled;

	public Filter( String name )
	{
		this.name = name;
		this.setEnabled( true );
	}

	public String getName()
	{
		return this.name;
	}

	public boolean isEnabled()
	{
		return this.enabled;
	}

	public void setEnabled( boolean enabled )
	{
		this.enabled = enabled;
	}
}