DtmiConventions Class
- java.
lang. Object - com.
azure. iot. modelsrepository. DtmiConventions
- com.
public final class DtmiConventions
DtmiConventions implements the core aspects of the IoT model repo conventions which includes DTMI validation and calculating a URI path from a DTMI.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static URI |
getModelUri(String dtmi, URI repositoryUri, boolean expanded)
Generates the model URI. |
| static boolean |
isValidDtmi(String dtmi)
Indicates whether a given string DTMI value is well-formed. |
Methods inherited from java.lang.Object
Method Details
getModelUri
public static URI getModelUri(String dtmi, URI repositoryUri, boolean expanded)
Generates the model URI.
Parameters:
Returns:
isValidDtmi
public static boolean isValidDtmi(String dtmi)
Indicates whether a given string DTMI value is well-formed.
Parameters:
Returns: