@Generated public class Repository extends RepositoryBase implements Serializable, Cloneable
BaseObject.ChildrenTracking
childrenTracking, delegate
Constructor and Description |
---|
Repository() |
Repository(Repository delegate) |
Repository(Repository delegate,
BaseObject parent) |
Modifier and Type | Method and Description |
---|---|
Repository |
clone() |
boolean |
equals(Object o) |
Repository |
getDelegate() |
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input
source.
|
RepositoryPolicy |
getReleases() |
RepositoryPolicy |
getSnapshots() |
int |
hashCode() |
protected boolean |
replace(Object oldDelegate,
Object newDelegate) |
static List<Repository> |
repositoryToApiV3(List<Repository> list) |
static List<Repository> |
repositoryToApiV4(List<Repository> list) |
void |
setLocation(Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setReleases(RepositoryPolicy releases) |
void |
setSnapshots(RepositoryPolicy snapshots) |
getId, getLayout, getName, getUrl, repositoryBaseToApiV3, repositoryBaseToApiV4, setId, setLayout, setName, setUrl
update
public Repository()
public Repository(Repository delegate)
public Repository(Repository delegate, BaseObject parent)
public Repository clone()
clone
in class RepositoryBase
public Repository getDelegate()
getDelegate
in class RepositoryBase
public boolean equals(Object o)
equals
in class RepositoryBase
public int hashCode()
hashCode
in class RepositoryBase
public RepositoryPolicy getReleases()
public void setReleases(RepositoryPolicy releases)
public RepositoryPolicy getSnapshots()
public void setSnapshots(RepositoryPolicy snapshots)
public InputLocation getLocation(Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
getLocation
in class RepositoryBase
key
- The key of the field, must not be
null
.null
if unknown.public void setLocation(Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
setLocation
in class RepositoryBase
key
- The key of the field, must not be
null
.location
- The location of the field, may be
null
.protected boolean replace(Object oldDelegate, Object newDelegate)
replace
in class RepositoryBase
public static List<Repository> repositoryToApiV4(List<Repository> list)
public static List<Repository> repositoryToApiV3(List<Repository> list)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.