public class NBootRepositoryLocation extends Object implements Comparable<NBootRepositoryLocation>, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
FULL_PATTERN |
| Modifier | Constructor and Description |
|---|---|
protected |
NBootRepositoryLocation(String locationString)
Create a new NutsRepositoryLocation
|
| Modifier and Type | Method and Description |
|---|---|
protected NBootRepositoryLocation |
clone() |
int |
compareTo(NBootRepositoryLocation o)
compare string representations of the locations
|
NBootRepositoryLocation |
copy() |
boolean |
equals(Object o)
true when the string representation is equivalent
|
String |
getFullLocation()
return location prefixed with location locationType if specified
|
Map<String,String> |
getProperties() |
int |
hashCode()
hashcode based on the string representation
|
boolean |
isBlank()
true when all of name, locationType and location are blank
|
String |
locationType()
location type ('maven','nuts', etc.)
|
NBootRepositoryLocation |
locationType(String locationType)
return a new instance with the updated location type
|
String |
name()
location name
|
NBootRepositoryLocation |
name(String name)
return a new instance with the updated name
|
static NBootRepositoryLocation |
of(String locationString)
Create a new NutsRepositoryLocation
|
static NBootRepositoryLocation |
of(String locationString,
NBootRepositoryDB db)
Create a new NutsRepositoryLocation.
|
static NBootRepositoryLocation[] |
of(String repositorySelectionExpression,
NBootRepositoryLocation[] available,
NBootRepositoryDB db) |
static NBootRepositoryLocation |
of(String name,
String fullLocation)
Create a new NutsRepositoryLocation.
|
static NBootRepositoryLocation |
of(String name,
String locationType,
String path) |
static NBootRepositoryLocation |
of(String name,
String locationType,
String path,
Map<String,String> properties) |
static NBootRepositoryLocation |
ofName(String name) |
String |
path()
location path
|
NBootRepositoryLocation |
path(String path)
return a new instance with the location
|
String |
toString()
return string representation of the location
|
String |
typeAndPath() |
protected static final Pattern FULL_PATTERN
protected NBootRepositoryLocation(String locationString)
locationString - location string in the format
name=locationType:pathpublic static NBootRepositoryLocation of(String name, String locationType, String path)
public static NBootRepositoryLocation of(String name, String locationType, String path, Map<String,String> properties)
public static NBootRepositoryLocation of(String locationString)
locationString - location string in the format
name=locationType:pathpublic static NBootRepositoryLocation ofName(String name)
public static NBootRepositoryLocation of(String name, String fullLocation)
fullLocation will preserve any existing name (where
fullLocation is entered as a locationString)name - new name (or null)fullLocation - location string in the format
locationType:pathpublic static NBootRepositoryLocation of(String locationString, NBootRepositoryDB db)
fullLocation will preserve any existing name (where
fullLocation is entered as a locationString)locationString - location string in the format
name=locationType:pathdb - repository databasepublic static NBootRepositoryLocation[] of(String repositorySelectionExpression, NBootRepositoryLocation[] available, NBootRepositoryDB db)
repositorySelectionExpression - expression in the form +a,-b,=cavailable - available (default) locationsdb - repository databaserepositorySelectionExpressionpublic String name()
public NBootRepositoryLocation name(String name)
name - namepublic String path()
public NBootRepositoryLocation path(String path)
path - locationpublic String typeAndPath()
public String locationType()
public NBootRepositoryLocation locationType(String locationType)
locationType - locationTypepublic int hashCode()
public boolean equals(Object o)
public String getFullLocation()
public String toString()
public boolean isBlank()
public int compareTo(NBootRepositoryLocation o)
compareTo in interface Comparable<NBootRepositoryLocation>o - other locationpublic NBootRepositoryLocation copy()
protected NBootRepositoryLocation clone()
Copyright © 2026 vpc open source initiative. All rights reserved.