public class Container
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Container.TYPE |
| Constructor and Description |
|---|
Container(java.io.File file,
DownloadBlocker db) |
Container(Project project,
java.io.File file) |
Container(Project project,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contributeFiles(java.util.List<java.io.File> files,
Processor reporter)
Iterate over the containers and get the files they represent
|
boolean |
equals(java.lang.Object other) |
static java.util.List<Container> |
flatten(java.util.Collection<Container> containers)
Take a container list and flatten it (e.g.
|
static void |
flatten(java.util.Collection<Container> containers,
java.util.List<Container> list)
Take a container list and flatten it (e.g.
|
static void |
flatten(Container container,
java.util.List<Container> list)
Flatten a container in the output list.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes() |
java.lang.String |
getBundleSymbolicName() |
java.lang.String |
getError() |
java.io.File |
getFile() |
java.util.jar.Manifest |
getManifest()
Answer the manifest for this container (if possible).
|
java.util.List<Container> |
getMembers()
Return the this if this is anything else but a library.
|
Project |
getProject() |
Container.TYPE |
getType() |
java.lang.String |
getVersion() |
int |
hashCode() |
void |
putAttribute(java.lang.String name,
java.lang.String value) |
java.lang.String |
toString()
Must show the file name or the error formatted as a file name
|
public Container(Project project, java.io.File file, java.util.Map<java.lang.String,java.lang.String> attributes)
public Container(Project project, java.io.File file)
public Container(java.io.File file,
DownloadBlocker db)
public java.io.File getFile()
public boolean contributeFiles(java.util.List<java.io.File> files,
Processor reporter)
throws java.lang.Exception
files - java.lang.Exceptionpublic java.lang.String getBundleSymbolicName()
public java.lang.String getVersion()
public Container.TYPE getType()
public java.lang.String getError()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Project getProject()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void putAttribute(java.lang.String name,
java.lang.String value)
public java.util.List<Container> getMembers() throws java.lang.Exception
java.lang.Exceptionpublic static void flatten(Container container, java.util.List<Container> list) throws java.lang.Exception
container - the container to flattenlist - the result listjava.lang.Exceptionpublic static java.util.List<Container> flatten(java.util.Collection<Container> containers) throws java.lang.Exception
containers - The containers to flatten, can be nulljava.lang.Exceptionpublic static void flatten(java.util.Collection<Container> containers, java.util.List<Container> list) throws java.lang.Exception
containers - The containers to flatten, can be nulljava.lang.Exceptionpublic java.util.jar.Manifest getManifest()
throws java.lang.Exception
java.lang.Exception