StringSchemaKey Class

A SchemaKey implementation that aids in identifying Schema strings via the addition of the schemaText property. The schemaText is the full XML string representation of the Schema.

Extends

Methods

Name Description
constructor(key: SchemaKey, schemaText: string): StringSchemaKey Initializes a new StringSchemaKey object.  

Inherited methods

Name Inherited from Description
compareByName(rhs: undefined | string | SchemaKey): boolean SchemaKey Compares two schema names, case-insensitive.
compareByVersion(rhs: SchemaKey): number SchemaKey Compares two schema versions.
matches(rhs: Readonly<SchemaKey>, matchType?: SchemaMatchType): boolean SchemaKey  
toJSON(): SchemaKeyProps SchemaKey Save this SchemaKey's properties to an object for serializing to JSON.
toString(padZeroes?: boolean): string SchemaKey Creates a string, in the format 'RR.ww.mm', representing this SchemaKey.
fromJSON(props: SchemaKeyProps): SchemaKey Static SchemaKey Deserializes a SchemaKeyProps JSON object into a SchemaKey object.
parseString(fullName: string): SchemaKey Static SchemaKey  

Properties

Name Type Description
schemaText string    

Inherited properties

Name Type Inherited from Description
_version Protected ECVersion SchemaKey  
minorVersion Accessor ReadOnly number SchemaKey  
name Accessor ReadOnly string SchemaKey  
readVersion Accessor ReadOnly number SchemaKey  
version Accessor ReadOnly ECVersion SchemaKey  
writeVersion Accessor ReadOnly number SchemaKey  

Defined in

Last Updated: 16 April, 2024