Package de.obqo.decycle.check
Class Layer
- java.lang.Object
-
- de.obqo.decycle.check.Layer
-
public class Layer extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LayeranyOf(String... slices)Constructs aLayerwithout further constraints on its slices.booleancontains(String slice)booleandenyDependenciesWithinLayer()StringgetShortString()Set<String>getSlices()static LayeroneOf(String... slices)Constructs aLayerwhose slices must not depend on each other.StringtoString()
-
-
-
Method Detail
-
anyOf
public static Layer anyOf(String... slices)
Constructs aLayerwithout further constraints on its slices.- Parameters:
slices- the slice names- Returns:
- a new lenient layer constraint
-
oneOf
public static Layer oneOf(String... slices)
Constructs aLayerwhose slices must not depend on each other.- Parameters:
slices- the slice names- Returns:
- a new strict layer constraint
-
contains
public boolean contains(String slice)
-
denyDependenciesWithinLayer
public boolean denyDependenciesWithinLayer()
-
getShortString
public String getShortString()
-
-