public final class LocalMetadataRegistration extends java.lang.Object
| Constructor | Description |
|---|---|
LocalMetadataRegistration() |
Creates an uninitialized registration.
|
LocalMetadataRegistration(Metadata metadata) |
Creates a registration request for the specified metadata accompanying a locally installed artifact.
|
LocalMetadataRegistration(Metadata metadata,
RemoteRepository repository,
java.util.Collection<java.lang.String> contexts) |
Creates a registration request for the specified metadata.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Collection<java.lang.String> |
getContexts() |
Gets the resolution contexts in which the metadata is available.
|
Metadata |
getMetadata() |
Gets the metadata to register.
|
RemoteRepository |
getRepository() |
Gets the remote repository from which the metadata was resolved.
|
LocalMetadataRegistration |
setContexts(java.util.Collection<java.lang.String> contexts) |
Sets the resolution contexts in which the metadata is available.
|
LocalMetadataRegistration |
setMetadata(Metadata metadata) |
Sets the metadata to register.
|
LocalMetadataRegistration |
setRepository(RemoteRepository repository) |
Sets the remote repository from which the metadata was resolved.
|
public LocalMetadataRegistration()
public LocalMetadataRegistration(Metadata metadata)
metadata - The metadata to register, may be null.public LocalMetadataRegistration(Metadata metadata, RemoteRepository repository, java.util.Collection<java.lang.String> contexts)
metadata - The metadata to register, may be null.repository - The remote repository from which the metadata was resolved or null if the metadata
accompanies a locally installed artifact.contexts - The resolution contexts, may be null.public Metadata getMetadata()
null if not set.public LocalMetadataRegistration setMetadata(Metadata metadata)
metadata - The metadata, may be null.null.public RemoteRepository getRepository()
null if the metadata was locally installed.public LocalMetadataRegistration setRepository(RemoteRepository repository)
repository - The remote repository or null if the metadata accompanies a locally installed artifact.null.public java.util.Collection<java.lang.String> getContexts()
null.public LocalMetadataRegistration setContexts(java.util.Collection<java.lang.String> contexts)
contexts - The resolution contexts, may be null.null.