public class QNameImport extends java.lang.Object implements Import
| Constructor and Description |
|---|
QNameImport(java.lang.String namespace,
java.net.URI location)
Constructor.
|
| 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.
|
java.lang.String |
getNamespace() |
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 QNameImport(java.lang.String namespace,
java.net.URI location)
namespace - the imported namespacelocation - the location of the contribution exporting the namespace or null if the contribution should be resolvedpublic javax.xml.namespace.QName getType()
Importpublic java.lang.String getNamespace()
public java.net.URI getLocation()
ImportgetLocation in interface Importpublic 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