public class ProjectContext extends Object
store(OutputStream)
, and must be loaded, usually by a forked
process, in the static method load(InputStream)
Constructor and Description |
---|
ProjectContext(PathNormalizer normalizer,
String id,
PathMatcher readMatcher,
PathMatcher writeMatcher,
Set<String> execIncludes) |
Modifier and Type | Method and Description |
---|---|
boolean |
addViolation(EnforcerViolation violation) |
boolean |
checkExecute(String exec) |
boolean |
checkRead(String file) |
boolean |
checkWrite(String file) |
String |
getId() |
Set<EnforcerViolation> |
getViolations() |
static ProjectContext |
load(InputStream is) |
String |
matchingRule(char type,
String file) |
void |
store(OutputStream out) |
String |
toString() |
public ProjectContext(PathNormalizer normalizer, String id, PathMatcher readMatcher, PathMatcher writeMatcher, Set<String> execIncludes)
public final boolean checkRead(String file)
public final boolean checkWrite(String file)
public final boolean checkExecute(String exec)
public void store(OutputStream out) throws IOException
IOException
public static ProjectContext load(InputStream is) throws IOException
IOException
public String getId()
public boolean addViolation(EnforcerViolation violation)
public Set<EnforcerViolation> getViolations()
Copyright © 2021. All rights reserved.