- All Superinterfaces:
Dumpable
public interface ArtifactSet
extends Dumpable
ArtifactSet
...
-
Method Summary
void
void
Adds a collection of artifacts
void
Returns the item filter set that defines the coverage of the items in
this artifact set.
Returns the directory artifact or null
.
Returns the primary data artifact or null
.
boolean
Checks if this set is empty.
Returns the collection of removed artifacts
int
Returns the number of artifacts in this set.
Returns a collection of all artifacts
Returns a collection of all artifacts that have the given type.
Methods inherited from interface org.apache.jackrabbit.vault.fs.api.Dumpable
dump
-
Method Details
-
getCoverage
Returns the item filter set that defines the coverage of the items in
this artifact set.
- Returns:
- the item filter set.
-
addAll
Adds a collection of artifacts
- Parameters:
artifacts
- the artifacts collection
-
addAll
Adds a set of artifacts
- Parameters:
artifacts
- the artifacts set
-
add
Adds an artifacts
- Parameters:
artifact
- the artifact to add
- Throws:
IllegalArgumentException
- if more than 1 primary data artifact is added
-
getPrimaryData
Returns the primary data artifact or null
.
- Returns:
- the primary data artifact or
null
.
-
getDirectory
Returns the directory artifact or null
.
- Returns:
- the directory artifact or
null
.
-
isEmpty
boolean isEmpty()
Checks if this set is empty.
- Returns:
true
if this set is empty.
-
size
int size()
Returns the number of artifacts in this set.
- Returns:
- the number of artifacts in this set.
-
values
Returns a collection of all artifacts that have the given type.
- Parameters:
type
- the type of the artifacts to return
- Returns:
- the artifacts
-
values
Returns a collection of all artifacts
- Returns:
- the artifacts
-
removed
Returns the collection of removed artifacts
- Returns:
- the removed artifacts