public class ConvertUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<com.dnastack.bob.persistence.enumerated.Reference,String> |
REFERENCE_MAPPING |
| Constructor and Description |
|---|
ConvertUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractIdWithoutOrganizationFromBeaconId(com.dnastack.bob.persistence.entity.Beacon b)
Returns what's left of an ID of the given beacon after removing the prefix with an organization ID and a
separator.
|
static String |
extractPrefixFromBeaconId(com.dnastack.bob.persistence.entity.Beacon b,
Integer to)
Returns a prefix of an ID of the given beacon.
|
static String |
extractSubstringFromBeaconId(com.dnastack.bob.persistence.entity.Beacon b,
Integer from,
Integer to)
Returns a substring of an ID of the given beacon.
|
static String |
extractSuffixFromBeaconId(com.dnastack.bob.persistence.entity.Beacon b,
Integer from)
Returns a suffix of an ID of the given beacon.
|
static String |
replaceHgPrefix(com.dnastack.bob.persistence.enumerated.Reference r,
String newPrefix)
Replace HG prefix in reference with a custom string.
|
public static String extractSubstringFromBeaconId(com.dnastack.bob.persistence.entity.Beacon b, Integer from, Integer to)
b - beaconfrom - start indexto - end indexpublic static String extractPrefixFromBeaconId(com.dnastack.bob.persistence.entity.Beacon b, Integer to)
b - beaconto - end indexpublic static String extractSuffixFromBeaconId(com.dnastack.bob.persistence.entity.Beacon b, Integer from)
b - beaconfrom - start indexpublic static String extractIdWithoutOrganizationFromBeaconId(com.dnastack.bob.persistence.entity.Beacon b)
b - beaconCopyright © 2016 DNAstack. All rights reserved.