public final class LocalMetadataRequest extends java.lang.Object
| Constructor | Description |
|---|---|
LocalMetadataRequest() |
Creates an uninitialized query.
|
LocalMetadataRequest(Metadata metadata,
RemoteRepository repository,
java.lang.String context) |
Creates a query with the specified properties.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getContext() |
Gets the resolution context.
|
Metadata |
getMetadata() |
Gets the metadata to query for.
|
RemoteRepository |
getRepository() |
Gets the remote repository to use as source of the metadata.
|
LocalMetadataRequest |
setContext(java.lang.String context) |
Sets the resolution context.
|
LocalMetadataRequest |
setMetadata(Metadata metadata) |
Sets the metadata to query for.
|
LocalMetadataRequest |
setRepository(RemoteRepository repository) |
Sets the remote repository to use as sources of the metadata.
|
java.lang.String |
toString() |
public LocalMetadataRequest()
public LocalMetadataRequest(Metadata metadata, RemoteRepository repository, java.lang.String context)
metadata - The metadata to query for, may be null.repository - The source remote repository for the metadata, may be null for local metadata.context - The resolution context for the metadata, may be null.public Metadata getMetadata()
null if not set.public LocalMetadataRequest setMetadata(Metadata metadata)
metadata - The metadata, may be null.null.public java.lang.String getContext()
null.public LocalMetadataRequest setContext(java.lang.String context)
context - The resolution context, may be null.null.public RemoteRepository getRepository()
null for local metadata.public LocalMetadataRequest setRepository(RemoteRepository repository)
repository - The remote repository, may be null.null for local metadata.public java.lang.String toString()
toString in class java.lang.Object