Package org.eclipse.aether.repository
Class LocalMetadataRequest
- java.lang.Object
-
- org.eclipse.aether.repository.LocalMetadataRequest
-
public final class LocalMetadataRequest extends Object
A query to the local repository for the existence of metadata.
-
-
Constructor Summary
Constructors Constructor Description LocalMetadataRequest()Creates an uninitialized query.LocalMetadataRequest(Metadata metadata, RemoteRepository repository, String context)Creates a query with the specified properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContext()Gets the resolution context.MetadatagetMetadata()Gets the metadata to query for.RemoteRepositorygetRepository()Gets the remote repository to use as source of the metadata.LocalMetadataRequestsetContext(String context)Sets the resolution context.LocalMetadataRequestsetMetadata(Metadata metadata)Sets the metadata to query for.LocalMetadataRequestsetRepository(RemoteRepository repository)Sets the remote repository to use as sources of the metadata.StringtoString()
-
-
-
Constructor Detail
-
LocalMetadataRequest
public LocalMetadataRequest()
Creates an uninitialized query.
-
LocalMetadataRequest
public LocalMetadataRequest(Metadata metadata, RemoteRepository repository, String context)
Creates a query with the specified properties.- Parameters:
metadata- The metadata to query for, may benull.repository- The source remote repository for the metadata, may benullfor local metadata.context- The resolution context for the metadata, may benull.
-
-
Method Detail
-
getMetadata
public Metadata getMetadata()
Gets the metadata to query for.- Returns:
- The metadata or
nullif not set.
-
setMetadata
public LocalMetadataRequest setMetadata(Metadata metadata)
Sets the metadata to query for.- Parameters:
metadata- The metadata, may benull.- Returns:
- This query for chaining, never
null.
-
getContext
public String getContext()
Gets the resolution context.- Returns:
- The resolution context, never
null.
-
setContext
public LocalMetadataRequest setContext(String context)
Sets the resolution context.- Parameters:
context- The resolution context, may benull.- Returns:
- This query for chaining, never
null.
-
getRepository
public RemoteRepository getRepository()
Gets the remote repository to use as source of the metadata.- Returns:
- The remote repositories, may be
nullfor local metadata.
-
setRepository
public LocalMetadataRequest setRepository(RemoteRepository repository)
Sets the remote repository to use as sources of the metadata.- Parameters:
repository- The remote repository, may benull.- Returns:
- This query for chaining, may be
nullfor local metadata.
-
-