public class RepositoryReference extends Object implements IRepositoryReference
IMetadataRepository.addReferences(java.util.Collection)| Constructor and Description |
|---|
RepositoryReference(URI location,
String nickname,
int type,
int options)
Creates a reference to another repository.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
URI |
getLocation()
Returns the location of the referenced repository
|
String |
getNickname()
Returns the optional nickname of the referenced repository
|
int |
getOptions()
Returns bit-wise or of option constants (currently either
IRepository.ENABLED or IRepository.NONE). |
int |
getType()
Returns the type of the referenced repository (currently either
IRepository.TYPE_METADATA
or IRepository.TYPE_ARTIFACT) |
int |
hashCode() |
public RepositoryReference(URI location, String nickname, int type, int options)
IRepository.ENABLED option flag controls whether the
referenced repository should be marked as enabled when added to the repository
manager. If this flag is set, the repository will be marked as enabled when
added to the repository manager. If this flag is missing, the repository will
be marked as disabled.location - the location of the repository to addnickname - The nickname of the repository, or nulltype - the repository type (currently either IRepository.TYPE_METADATA
or IRepository.TYPE_ARTIFACT).options - bit-wise or of option constants (currently either
IRepository.ENABLED or IRepository.NONE).IRepositoryManager.setEnabled(URI, boolean)public URI getLocation()
getLocation in interface IRepositoryReferencepublic int getType()
IRepository.TYPE_METADATA
or IRepository.TYPE_ARTIFACT)getType in interface IRepositoryReferencepublic int getOptions()
IRepository.ENABLED or IRepository.NONE).getOptions in interface IRepositoryReferencepublic String getNickname()
getNickname in interface IRepositoryReferencenull
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.