Class Ignored
- java.lang.Object
-
- org.apache.jackrabbit.vault.vlt.meta.Ignored
-
- All Implemented Interfaces:
Dumpable
,Filter
,PathFilter
public class Ignored extends Object implements PathFilter
Ignored
...
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILE_NAME
-
Fields inherited from interface org.apache.jackrabbit.vault.fs.api.PathFilter
ALL, NONE
-
-
Constructor Summary
Constructors Constructor Description Ignored(VltContext ctx, File scanRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(@NotNull DumpContext ctx, boolean isLast)
Dumps some human readable information using the given context.List<PathFilter>
getIgnored()
boolean
isAbsolute()
Checks if the pattern is absolute, i.e.boolean
matches(@NotNull String path)
Checks if the given path matches this filters criteria.Ignored
scan(File dir)
@NotNull PathFilter
translate(@Nullable PathMapping mapping)
Translates this path filter with the given mapping.
-
-
-
Field Detail
-
FILE_NAME
public static final String FILE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Ignored
public Ignored(VltContext ctx, File scanRoot)
-
-
Method Detail
-
getIgnored
public List<PathFilter> getIgnored()
-
matches
public boolean matches(@NotNull @NotNull String path)
Description copied from interface:PathFilter
Checks if the given path matches this filters criteria.- Specified by:
matches
in interfacePathFilter
- Parameters:
path
- the path to check- Returns:
true
if this filter matches the criteria;false
otherwise.
-
scan
public Ignored scan(File dir) throws VltException, IOException, ConfigurationException
-
isAbsolute
public boolean isAbsolute()
Description copied from interface:PathFilter
Checks if the pattern is absolute, i.e. does not start with a wildcard.- Specified by:
isAbsolute
in interfacePathFilter
- Returns:
true
if pattern is absolute
-
dump
public void dump(@NotNull @NotNull DumpContext ctx, boolean isLast)
Description copied from interface:Dumpable
Dumps some human readable information using the given context.
-
translate
@NotNull public @NotNull PathFilter translate(@Nullable @Nullable PathMapping mapping)
Description copied from interface:PathFilter
Translates this path filter with the given mapping. Note that only absolute filters can be translated.- Specified by:
translate
in interfacePathFilter
- Parameters:
mapping
- the mapping to apply- Returns:
- the new filter
-
-