Interface IObjectResolver
- All Known Implementing Classes:
DefaultObjectResolver
public interface IObjectResolver
Support for conversions between various
object identifications and representations.
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Method Summary
Modifier and TypeMethodDescriptionReturn prototype name for given prototype URI.Return object id for given SubterraURI.Return SubterraURI for given prototype name.getSubterraURIForObjectId
(IContextId contextId, ILocalId localId) Return SubterraURI for given object id.getSubterraURIForObjectId
(IObjectId id, IContextId contextId) Deprecated.Use the method without contextId instead - the contectId parameter is redundant
-
Method Details
-
getObjectIdForSubterraURI
Return object id for given SubterraURI.- Parameters:
id
- SubterraURI- Returns:
- object id
- Throws:
IllegalArgumentException
- if id is nullIllegalArgumentException
- if id can not be converted to object id
-
getSubterraURIForObjectId
Return SubterraURI for given object id.- Parameters:
id
- object id- Returns:
- SubterraURI
- Throws:
IllegalArgumentException
- if id is null
-
getSubterraURIForObjectId
-
getSubterraURIForObjectId
Deprecated.Use the method without contextId instead - the contectId parameter is redundant -
getSubterraURIForDataPrototypeName
Return SubterraURI for given prototype name.Existence of given prototype may or may not be checked.
- Parameters:
name
- prototype name- Returns:
- SubterraURI
- Throws:
IllegalArgumentException
- if name is nullIllegalArgumentException
- if prototype is not known (and implementation checks it)
-
getDataPrototypeNameForSubterraURI
Return prototype name for given prototype URI.- Parameters:
protoId
- SubterraURI- Returns:
- prototype name
- Throws:
IllegalArgumentException
- if protoId is nullIllegalArgumentException
- if protoId can not be converted to prototype name
-