View Javadoc
1   package com.github.mikkoi.maven.plugins.enforcer.rule.propertyusage;
2   
3   import java.util.Objects;
4   
5   import javax.annotation.Nonnull;
6   
7   public class PropertyDefinition {
8   
9   	@Nonnull
10  	private String key;
11  	@Nonnull
12  	private String value;
13  	@Nonnull
14  	private String filename;
15  	@Nonnull
16  	private int linenumber;
17  
18  	public PropertyDefinition(@Nonnull String key, @Nonnull String value, @Nonnull String filename,
19  			@Nonnull int linenumber) {
20  		Objects.requireNonNull(key);
21  		Objects.requireNonNull(value);
22  		Objects.requireNonNull(filename);
23  		this.key = key;
24  		this.value = value;
25  		this.filename = filename;
26  		this.linenumber = linenumber;
27  	}
28  
29  	public String getKey() {
30  		return key;
31  	}
32  
33  	public String getValue() {
34  		return value;
35  	}
36  
37  	public String getFilename() {
38  		return filename;
39  	}
40  
41  	public int getLinenumber() {
42  		return linenumber;
43  	}
44  
45  }