public class JavaImport extends java.lang.Object implements Import
import.java entry in a contribution manifest.| Constructor and Description |
|---|
JavaImport(PackageInfo packageInfo) |
JavaImport(PackageInfo packageInfo,
java.net.URI location) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResolved(java.net.URI contributionUri,
Export export)
Adds an export that satisfies the current import.
|
boolean |
equals(java.lang.Object o) |
java.net.URI |
getLocation()
A URI representing the import artifact location.
|
PackageInfo |
getPackageInfo() |
java.util.Map<java.net.URI,Export> |
getResolved()
Returns the collection of resolved exports for this import.
|
javax.xml.namespace.QName |
getType()
Returns the export type.
|
int |
hashCode() |
boolean |
isMultiplicity()
Returns true if this import supports wiring to multiple exports.
|
boolean |
isRequired()
True if this import must be resolved.
|
java.lang.String |
toString() |
public JavaImport(PackageInfo packageInfo)
public JavaImport(PackageInfo packageInfo, java.net.URI location)
public javax.xml.namespace.QName getType()
Importpublic java.net.URI getLocation()
ImportgetLocation in interface Importpublic PackageInfo getPackageInfo()
public boolean isMultiplicity()
ImportisMultiplicity in interface Importpublic boolean isRequired()
ImportisRequired in interface Importpublic java.util.Map<java.net.URI,Export> getResolved()
ImportgetResolved in interface Importpublic void addResolved(java.net.URI contributionUri,
Export export)
ImportaddResolved in interface ImportcontributionUri - the exporting contribution URIexport - the exportpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object