public class ModelUriBuilder extends Object
Constructor and Description |
---|
ModelUriBuilder(String modelId,
String versionId)
Builds a model URI from modelId and versionId.
|
ModelUriBuilder(String repositoryUrl,
String filePath,
String versionId)
Builds a model URI from repository Paths and versionId
Mostly used for PMR2
|
ModelUriBuilder(String modelId,
String repositoryUrl,
String filePath,
String versionId)
Builds a model URI.
|
Modifier and Type | Method and Description |
---|---|
static String |
generateModelId(String repositoryUrl,
String filePath)
Generates a modelId from repository Paths
|
String |
getModelId()
Gets the modelId
|
URI |
getModelUri()
Gets the generated model URI
|
String |
getVersionId()
Gets the versionId
|
String |
toString()
Gets the generated model URI as String
|
public ModelUriBuilder(String modelId, String repositoryUrl, String filePath, String versionId) throws IllegalArgumentException, UnsupportedModelUriException, UnsupportedEncodingException
modelId
- repositoryUrl
- filePath
- versionId
- UnsupportedEncodingException
IllegalArgumentException
UnsupportedModelUriException
public ModelUriBuilder(String repositoryUrl, String filePath, String versionId) throws IllegalArgumentException, UnsupportedModelUriException, UnsupportedEncodingException
repositoryUrl
- filePath
- versionId
- UnsupportedEncodingException
IllegalArgumentException
UnsupportedModelUriException
public ModelUriBuilder(String modelId, String versionId) throws IllegalArgumentException, UnsupportedModelUriException, UnsupportedEncodingException
modelId
- versionId
- UnsupportedEncodingException
IllegalArgumentException
UnsupportedModelUriException
public String getModelId()
public String getVersionId()
public URI getModelUri()
public String toString()
public static String generateModelId(String repositoryUrl, String filePath) throws UnsupportedEncodingException
repositoryUrl
- filePath
- UnsupportedEncodingException
Copyright © 2013 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.