azurite
Version:
An open source Azure Storage API compatible server
30 lines • 882 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.EdmString = void 0;
class EdmString {
static validate(value) {
if (typeof value !== "string") {
throw TypeError(`Not a valid string.`);
}
// TODO: Check GUID string format
return value;
}
constructor(value) {
this.value = value;
this.typedValue = EdmString.validate(value);
}
toJsonPropertyValuePair(name) {
return [name, this.typedValue];
}
toJsonPropertyValueString(name) {
return `"${name}":${JSON.stringify(this.typedValue)}`;
}
toJsonPropertyTypePair(name, annotationLevel, isSystemProperty) {
return;
}
toJsonPropertyTypeString(name, annotationLevel, isSystemProperty) {
return;
}
}
exports.EdmString = EdmString;
//# sourceMappingURL=EdmString.js.map
;