A Swiss Army Knife for OSGi

aQute.bnd.build
Class Container

java.lang.Object
  extended by aQute.bnd.build.Container

public class Container
extends java.lang.Object


Nested Class Summary
static class Container.TYPE
           
 
Constructor Summary
Container(java.io.File file)
           
Container(Project project, java.io.File file)
           
 
Method Summary
 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)
           
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Container

public Container(Project project,
                 java.io.File file)

Container

public Container(java.io.File file)
Method Detail

getFile

public java.io.File getFile()

contributeFiles

public boolean contributeFiles(java.util.List<java.io.File> files,
                               Processor reporter)
                        throws java.lang.Exception
Iterate over the containers and get the files they represent

Parameters:
files -
Returns:
Throws:
java.lang.Exception

getBundleSymbolicName

public java.lang.String getBundleSymbolicName()

getVersion

public java.lang.String getVersion()

getType

public Container.TYPE getType()

getError

public java.lang.String getError()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getProject

public Project getProject()

toString

public java.lang.String toString()
Must show the file name or the error formatted as a file name

Overrides:
toString in class java.lang.Object
Returns:

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()

putAttribute

public void putAttribute(java.lang.String name,
                         java.lang.String value)

getMembers

public java.util.List<Container> getMembers()
                                     throws java.lang.Exception
Return the this if this is anything else but a library. If it is a library, return the members. This could work recursively, e.g., libraries can point to libraries.

Returns:
Throws:
java.lang.Exception

getManifest

public java.util.jar.Manifest getManifest()
                                   throws java.lang.Exception
Answer the manifest for this container (if possible). Manifest is cached until the file is renewed.

Throws:
java.lang.Exception

Licensed under Apache Software License 2.0

Copyright å© aQute SARL (2000, 2011). All Rights Reserved.