public class FilteredViewImpl extends org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView> implements FilteredView
ArchiveBase to achieve the filtering but at the same
time it needs to act as an implementation of an Archive. Classes in the ShrinkWrap SPI assume that
archive impls inherit from ArchiveBase so we need to make them happy (at least the ConfigurableArchiveImpl does).| Constructor and Description |
|---|
FilteredViewImpl(org.jboss.shrinkwrap.api.Archive<?> archive) |
| Modifier and Type | Method and Description |
|---|---|
FilteredView |
add(org.jboss.shrinkwrap.api.Archive<?> archive,
org.jboss.shrinkwrap.api.ArchivePath path,
Class<? extends org.jboss.shrinkwrap.api.exporter.StreamExporter> exporter) |
FilteredView |
add(org.jboss.shrinkwrap.api.Archive<?> archive,
String path,
Class<? extends org.jboss.shrinkwrap.api.exporter.StreamExporter> exporter) |
FilteredView |
add(org.jboss.shrinkwrap.api.asset.Asset asset,
org.jboss.shrinkwrap.api.ArchivePath target) |
FilteredView |
add(org.jboss.shrinkwrap.api.asset.Asset asset,
org.jboss.shrinkwrap.api.ArchivePath target,
String name) |
FilteredView |
add(org.jboss.shrinkwrap.api.asset.Asset asset,
String target) |
FilteredView |
add(org.jboss.shrinkwrap.api.asset.Asset asset,
String target,
String name) |
FilteredView |
add(org.jboss.shrinkwrap.api.asset.NamedAsset namedAsset) |
FilteredView |
addAsDirectories(org.jboss.shrinkwrap.api.ArchivePath... paths) |
FilteredView |
addAsDirectories(String... paths) |
FilteredView |
addAsDirectory(org.jboss.shrinkwrap.api.ArchivePath path) |
FilteredView |
addAsDirectory(String path) |
<T extends org.jboss.shrinkwrap.api.Assignable> |
as(Class<T> type) |
boolean |
contains(org.jboss.shrinkwrap.api.ArchivePath path) |
boolean |
contains(String path) |
org.jboss.shrinkwrap.api.Node |
delete(org.jboss.shrinkwrap.api.ArchivePath path) |
org.jboss.shrinkwrap.api.Node |
delete(String archivePath) |
FilteredView |
filterContents(org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter)
Sets the path filter.
|
org.jboss.shrinkwrap.api.Node |
get(org.jboss.shrinkwrap.api.ArchivePath path) |
org.jboss.shrinkwrap.api.Node |
get(String path) |
protected Class<FilteredView> |
getActualClass() |
protected org.jboss.shrinkwrap.api.Archive<?> |
getArchive() |
<X extends org.jboss.shrinkwrap.api.Archive<X>> |
getAsType(Class<X> type,
org.jboss.shrinkwrap.api.ArchivePath path) |
<X extends org.jboss.shrinkwrap.api.Archive<X>> |
getAsType(Class<X> type,
org.jboss.shrinkwrap.api.ArchivePath path,
org.jboss.shrinkwrap.api.ArchiveFormat archiveFormat) |
<X extends org.jboss.shrinkwrap.api.Archive<X>> |
getAsType(Class<X> type,
org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter) |
<X extends org.jboss.shrinkwrap.api.Archive<X>> |
getAsType(Class<X> type,
org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter,
org.jboss.shrinkwrap.api.ArchiveFormat archiveFormat) |
<X extends org.jboss.shrinkwrap.api.Archive<X>> |
getAsType(Class<X> type,
String path) |
<X extends org.jboss.shrinkwrap.api.Archive<X>> |
getAsType(Class<X> type,
String path,
org.jboss.shrinkwrap.api.ArchiveFormat archiveFormat) |
org.jboss.shrinkwrap.api.Configuration |
getConfiguration() |
Map<org.jboss.shrinkwrap.api.ArchivePath,org.jboss.shrinkwrap.api.Node> |
getContent() |
Map<org.jboss.shrinkwrap.api.ArchivePath,org.jboss.shrinkwrap.api.Node> |
getContent(org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter) |
FilteredView |
merge(org.jboss.shrinkwrap.api.Archive<?> source) |
FilteredView |
merge(org.jboss.shrinkwrap.api.Archive<?> source,
org.jboss.shrinkwrap.api.ArchivePath path) |
FilteredView |
merge(org.jboss.shrinkwrap.api.Archive<?> source,
org.jboss.shrinkwrap.api.ArchivePath path,
org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter) |
FilteredView |
merge(org.jboss.shrinkwrap.api.Archive<?> source,
org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter) |
FilteredView |
merge(org.jboss.shrinkwrap.api.Archive<?> source,
String path) |
FilteredView |
merge(org.jboss.shrinkwrap.api.Archive<?> source,
String path,
org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter) |
String |
toString() |
String |
toString(boolean verbose) |
String |
toString(org.jboss.shrinkwrap.api.formatter.Formatter formatter) |
void |
writeTo(OutputStream outputStream,
org.jboss.shrinkwrap.api.formatter.Formatter formatter) |
covariantReturn, equals, getArchiveFormat, getName, hashCodepublic FilteredViewImpl(org.jboss.shrinkwrap.api.Archive<?> archive)
archive - public final <T extends org.jboss.shrinkwrap.api.Assignable> T as(Class<T> type)
as in interface org.jboss.shrinkwrap.api.Assignableas in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>protected final org.jboss.shrinkwrap.api.Archive<?> getArchive()
public org.jboss.shrinkwrap.api.Configuration getConfiguration()
getConfiguration in interface org.jboss.shrinkwrap.spi.ConfigurablegetConfiguration in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public FilteredView filterContents(org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter)
FilteredViewTo see the whole contents of the archive, just call this method again with a null argument.
Casting this archive using the Assignable.as(Class) method will preserve the
filtering.
filterContents in interface FilteredViewprotected Class<FilteredView> getActualClass()
getActualClass in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public FilteredView add(org.jboss.shrinkwrap.api.asset.Asset asset, org.jboss.shrinkwrap.api.ArchivePath target) throws IllegalArgumentException
add in interface org.jboss.shrinkwrap.api.Archive<FilteredView>IllegalArgumentExceptionpublic FilteredView add(org.jboss.shrinkwrap.api.asset.Asset asset, org.jboss.shrinkwrap.api.ArchivePath target, String name) throws IllegalArgumentException
add in interface org.jboss.shrinkwrap.api.Archive<FilteredView>add in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView add(org.jboss.shrinkwrap.api.asset.Asset asset, String target, String name) throws IllegalArgumentException
add in interface org.jboss.shrinkwrap.api.Archive<FilteredView>add in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView add(org.jboss.shrinkwrap.api.asset.NamedAsset namedAsset) throws IllegalArgumentException
add in interface org.jboss.shrinkwrap.api.Archive<FilteredView>add in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView add(org.jboss.shrinkwrap.api.asset.Asset asset, String target) throws IllegalArgumentException
add in interface org.jboss.shrinkwrap.api.Archive<FilteredView>add in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView addAsDirectory(String path) throws IllegalArgumentException
addAsDirectory in interface org.jboss.shrinkwrap.api.Archive<FilteredView>addAsDirectory in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView addAsDirectories(String... paths) throws IllegalArgumentException
addAsDirectories in interface org.jboss.shrinkwrap.api.Archive<FilteredView>addAsDirectories in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView addAsDirectory(org.jboss.shrinkwrap.api.ArchivePath path) throws IllegalArgumentException
addAsDirectory in interface org.jboss.shrinkwrap.api.Archive<FilteredView>IllegalArgumentExceptionpublic FilteredView addAsDirectories(org.jboss.shrinkwrap.api.ArchivePath... paths) throws IllegalArgumentException
addAsDirectories in interface org.jboss.shrinkwrap.api.Archive<FilteredView>addAsDirectories in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic org.jboss.shrinkwrap.api.Node get(org.jboss.shrinkwrap.api.ArchivePath path)
throws IllegalArgumentException
get in interface org.jboss.shrinkwrap.api.Archive<FilteredView>IllegalArgumentExceptionpublic org.jboss.shrinkwrap.api.Node get(String path) throws IllegalArgumentException
get in interface org.jboss.shrinkwrap.api.Archive<FilteredView>get in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic <X extends org.jboss.shrinkwrap.api.Archive<X>> X getAsType(Class<X> type, String path)
getAsType in interface org.jboss.shrinkwrap.api.Archive<FilteredView>getAsType in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public <X extends org.jboss.shrinkwrap.api.Archive<X>> X getAsType(Class<X> type, org.jboss.shrinkwrap.api.ArchivePath path)
getAsType in interface org.jboss.shrinkwrap.api.Archive<FilteredView>getAsType in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public <X extends org.jboss.shrinkwrap.api.Archive<X>> Collection<X> getAsType(Class<X> type, org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter)
getAsType in interface org.jboss.shrinkwrap.api.Archive<FilteredView>getAsType in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public <X extends org.jboss.shrinkwrap.api.Archive<X>> X getAsType(Class<X> type, String path, org.jboss.shrinkwrap.api.ArchiveFormat archiveFormat)
getAsType in interface org.jboss.shrinkwrap.api.Archive<FilteredView>getAsType in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public <X extends org.jboss.shrinkwrap.api.Archive<X>> X getAsType(Class<X> type, org.jboss.shrinkwrap.api.ArchivePath path, org.jboss.shrinkwrap.api.ArchiveFormat archiveFormat)
getAsType in interface org.jboss.shrinkwrap.api.Archive<FilteredView>getAsType in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public <X extends org.jboss.shrinkwrap.api.Archive<X>> Collection<X> getAsType(Class<X> type, org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter, org.jboss.shrinkwrap.api.ArchiveFormat archiveFormat)
getAsType in interface org.jboss.shrinkwrap.api.Archive<FilteredView>getAsType in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public boolean contains(org.jboss.shrinkwrap.api.ArchivePath path)
throws IllegalArgumentException
contains in interface org.jboss.shrinkwrap.api.Archive<FilteredView>IllegalArgumentExceptionpublic boolean contains(String path) throws IllegalArgumentException
contains in interface org.jboss.shrinkwrap.api.Archive<FilteredView>IllegalArgumentExceptionpublic org.jboss.shrinkwrap.api.Node delete(org.jboss.shrinkwrap.api.ArchivePath path)
throws IllegalArgumentException
delete in interface org.jboss.shrinkwrap.api.Archive<FilteredView>IllegalArgumentExceptionpublic org.jboss.shrinkwrap.api.Node delete(String archivePath) throws IllegalArgumentException
delete in interface org.jboss.shrinkwrap.api.Archive<FilteredView>IllegalArgumentExceptionpublic Map<org.jboss.shrinkwrap.api.ArchivePath,org.jboss.shrinkwrap.api.Node> getContent()
getContent in interface org.jboss.shrinkwrap.api.Archive<FilteredView>public Map<org.jboss.shrinkwrap.api.ArchivePath,org.jboss.shrinkwrap.api.Node> getContent(org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter)
getContent in interface org.jboss.shrinkwrap.api.Archive<FilteredView>public FilteredView add(org.jboss.shrinkwrap.api.Archive<?> archive, org.jboss.shrinkwrap.api.ArchivePath path, Class<? extends org.jboss.shrinkwrap.api.exporter.StreamExporter> exporter) throws IllegalArgumentException
add in interface org.jboss.shrinkwrap.api.Archive<FilteredView>add in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView add(org.jboss.shrinkwrap.api.Archive<?> archive, String path, Class<? extends org.jboss.shrinkwrap.api.exporter.StreamExporter> exporter) throws IllegalArgumentException
add in interface org.jboss.shrinkwrap.api.Archive<FilteredView>IllegalArgumentExceptionpublic FilteredView merge(org.jboss.shrinkwrap.api.Archive<?> source) throws IllegalArgumentException
merge in interface org.jboss.shrinkwrap.api.Archive<FilteredView>merge in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView merge(org.jboss.shrinkwrap.api.Archive<?> source, org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter) throws IllegalArgumentException
merge in interface org.jboss.shrinkwrap.api.Archive<FilteredView>merge in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView merge(org.jboss.shrinkwrap.api.Archive<?> source, org.jboss.shrinkwrap.api.ArchivePath path) throws IllegalArgumentException
merge in interface org.jboss.shrinkwrap.api.Archive<FilteredView>merge in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView merge(org.jboss.shrinkwrap.api.Archive<?> source, String path) throws IllegalArgumentException
merge in interface org.jboss.shrinkwrap.api.Archive<FilteredView>merge in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView merge(org.jboss.shrinkwrap.api.Archive<?> source, org.jboss.shrinkwrap.api.ArchivePath path, org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter) throws IllegalArgumentException
merge in interface org.jboss.shrinkwrap.api.Archive<FilteredView>merge in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic FilteredView merge(org.jboss.shrinkwrap.api.Archive<?> source, String path, org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter) throws IllegalArgumentException
merge in interface org.jboss.shrinkwrap.api.Archive<FilteredView>merge in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic String toString()
toString in interface org.jboss.shrinkwrap.api.Archive<FilteredView>toString in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public String toString(boolean verbose)
toString in interface org.jboss.shrinkwrap.api.Archive<FilteredView>toString in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>public String toString(org.jboss.shrinkwrap.api.formatter.Formatter formatter) throws IllegalArgumentException
toString in interface org.jboss.shrinkwrap.api.Archive<FilteredView>toString in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionpublic void writeTo(OutputStream outputStream, org.jboss.shrinkwrap.api.formatter.Formatter formatter) throws IllegalArgumentException
writeTo in interface org.jboss.shrinkwrap.api.Archive<FilteredView>writeTo in class org.jboss.shrinkwrap.impl.base.ArchiveBase<FilteredView>IllegalArgumentExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.