public class File extends Object
| Constructor and Description |
|---|
File() |
| Modifier and Type | Method and Description |
|---|---|
void |
addViolation(Violation violation)
Adds a new violation to this file.
|
String |
getName()
Returns the name of this file.
|
Collection<Violation> |
getViolations()
Returns all violations of this file.
|
void |
setName(String name)
Sets the name of this file to the specified value.
|
public void addViolation(Violation violation)
violation - the new violationpublic Collection<Violation> getViolations()
public String getName()
public void setName(String name)
name - the value to setCopyright © 2018. All rights reserved.