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
|
String |
getLocationType()
location type ('maven','nuts', etc.)
|
String |
getName()
location name
|
String |
getPath()
location path
|
Map<String,String> |
getProperties() |
String |
getTypeAndPath() |
int |
hashCode()
hashcode based on the string representation
|
boolean |
isBlank()
true when all of name, locationType and location are blank
|
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) |
NBootRepositoryLocation |
setLocationType(String locationType)
return a new instance with the updated location type
|
NBootRepositoryLocation |
setName(String name)
return a new instance with the updated name
|
NBootRepositoryLocation |
setPath(String path)
return a new instance with the location
|
String |
toString()
return string representation of the location
|
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 getName()
public NBootRepositoryLocation setName(String name)
name - namepublic String getPath()
public NBootRepositoryLocation setPath(String path)
path - locationpublic String getTypeAndPath()
public String getLocationType()
public NBootRepositoryLocation setLocationType(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.