Skip to main content


persistent class HS.Data.MimeTypes extends %Library.Persistent, HS.Sync.BaseClass, %XML.Adaptor, %Library.GlobalIdentifier

SQL Table Name: HS_Data.MimeTypes

Property Inventory

Method Inventory


If XMLIGNOREINVALIDTAG is set = 1, then unexpected elements will be ignored. We use this to allow our web services to be extensible and to work across version boundaries. With this set to one, we can, for instance, update the hub/registry to a new version, where some of the xml messages have new properties, and have that communicate with a gateway running a previous version, where the properties aren't there.
parameter XMLIGNORENULL = inputonly;
If XMLIGNORENULL is set = "inputonly", then both missing tags in the XML and empty strings are input as "". Output of "" and $c(0) are for XMLIGNORENULL = 0: $c(0) is output as an empty tag (i.e. <tag></tag>) and "" is output as no tag.

parameter XMLNAME = MimeTypes;
Inherited description: This parameter provides the default XMLNAME for the class. If it is empty then the class name will be used to construct a default XML name. The default XMLNAME is used as the top level tag when exporting objects and the export context did not provide an XML container name.


property Extension as %String (MAXLEN = 20);
Extension without the leading period (i.e. "xml" not ".xml")
Property methods: ExtensionDisplayToLogical(), ExtensionForMimeType(), ExtensionGet(), ExtensionGetStored(), ExtensionIsValid(), ExtensionLogicalToDisplay(), ExtensionLogicalToOdbc(), ExtensionNormalize(), ExtensionSet()
property MimeType as %String (MAXLEN = 255);
Mime type in lower case
Property methods: MimeTypeDisplayToLogical(), MimeTypeForExtension(), MimeTypeGet(), MimeTypeGetStored(), MimeTypeIsValid(), MimeTypeLogicalToDisplay(), MimeTypeLogicalToOdbc(), MimeTypeNormalize(), MimeTypeSet()
property Preferred as %Boolean;
Use preferred to deal with multiple extensions or mime types
Property methods: PreferredDisplayToLogical(), PreferredGet(), PreferredGetStored(), PreferredIsValid(), PreferredLogicalToDisplay(), PreferredLogicalToXSD(), PreferredNormalize(), PreferredSet(), PreferredXSDToLogical()


classmethod ExtensionForMimeType(pMimeType As %String) as %String
classmethod LoadDefaultValues(pFileName="") as %Status
classmethod MimeTypeForExtension(pExtension As %String) as %String


index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods


Storage Model: Storage (HS.Data.MimeTypes)

FeedbackOpens in a new tab