|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.equinox.p2.repository.spi.RepositoryReference
public class RepositoryReference
Concrete implementation of a repository reference. This class can be used by clients to define new repository references.
IMetadataRepository.addReferences(java.util.Collection)| Constructor Summary | |
|---|---|
RepositoryReference(URI location,
String nickname,
int type,
int options)
Creates a reference to another repository. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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)| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic 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 IRepositoryReferencenullpublic int hashCode()
hashCode in class Object
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.