Class RepositoryReference
java.lang.Object
org.eclipse.equinox.p2.repository.spi.RepositoryReference
- All Implemented Interfaces:
IRepositoryReference
Concrete implementation of a repository reference. This class can be used
by clients to define new repository references.
- Since:
- 2.0
- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
ConstructorDescriptionRepositoryReference
(URI location, String nickname, int type, int options) Creates a reference to another repository. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the location of the referenced repositoryReturns the optional nickname of the referenced repositoryint
Returns bit-wise or of option constants (currently eitherIRepository.ENABLED
orIRepository.NONE
).int
getType()
Returns the type of the referenced repository (currently eitherIRepository.TYPE_METADATA
orIRepository.TYPE_ARTIFACT
)int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.equinox.p2.repository.IRepositoryReference
isEnabled
-
Constructor Details
-
RepositoryReference
Creates a reference to another repository. TheIRepository.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.- Parameters:
location
- the location of the repository to addnickname
- The nickname of the repository, ornull
type
- the repository type (currently eitherIRepository.TYPE_METADATA
orIRepository.TYPE_ARTIFACT
).options
- bit-wise or of option constants (currently eitherIRepository.ENABLED
orIRepository.NONE
).- See Also:
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getLocation
Description copied from interface:IRepositoryReference
Returns the location of the referenced repository- Specified by:
getLocation
in interfaceIRepositoryReference
- Returns:
- the location
-
getType
public int getType()Description copied from interface:IRepositoryReference
Returns the type of the referenced repository (currently eitherIRepository.TYPE_METADATA
orIRepository.TYPE_ARTIFACT
)- Specified by:
getType
in interfaceIRepositoryReference
- Returns:
- the repository type
-
getOptions
public int getOptions()Description copied from interface:IRepositoryReference
Returns bit-wise or of option constants (currently eitherIRepository.ENABLED
orIRepository.NONE
).- Specified by:
getOptions
in interfaceIRepositoryReference
- Returns:
- bit-wise or of option constants
-
getNickname
Description copied from interface:IRepositoryReference
Returns the optional nickname of the referenced repository- Specified by:
getNickname
in interfaceIRepositoryReference
- Returns:
- The nickname or
null
-
toString
-