@openxmldev/linq-to-ooxml
Version:
OOXML Namespace-related Classes for LINQ to XML for TypeScript
66 lines • 2.07 kB
JavaScript
/**
* @author Thomas Barnekow
* @license MIT
*/
import { XAttribute, XNamespace } from '@openxmldev/linq-to-xml';
/**
* Declares XNamespace and XName fields for the `xmlns:ds="http://schemas.openxmlformats.org/officeDocument/2006/customXml"` namespace.
*/
export class DS {
/** @internal */
constructor() {
// Ignore
}
/**
* Returns the namespace declaration `XAttribute` for this namespace.
*/
static get namespaceDeclaration() {
return new XAttribute(XNamespace.xmlns.getName('ds'), DS.ds.namespaceName);
}
}
/**
* Defines the XML namespace associated with the `ds` prefix.
*/
DS.ds = XNamespace.get('http://schemas.openxmlformats.org/officeDocument/2006/customXml');
/**
* Represents the `ds:datastoreItem` XML element.
*
* @remarks
* As an XML element, it has the following:
* - child XML elements: {@linkcode schemaRefs ds:schemaRefs}
* - XML attributes: {@linkcode itemID ds:itemID}
*/
DS.datastoreItem = DS.ds.getName('datastoreItem');
/**
* Represents the `ds:itemID` XML attribute.
*
* @remarks
* As an XML attribute, it is contained in the following XML elements: {@linkcode datastoreItem ds:datastoreItem}
*/
DS.itemID = DS.ds.getName('itemID');
/**
* Represents the `ds:schemaRef` XML element.
*
* @remarks
* As an XML element, it has the following:
* - parent XML elements: {@linkcode schemaRefs ds:schemaRefs}
* - XML attributes: {@linkcode uri ds:uri}
*/
DS.schemaRef = DS.ds.getName('schemaRef');
/**
* Represents the `ds:schemaRefs` XML element.
*
* @remarks
* As an XML element, it has the following:
* - parent XML elements: {@linkcode datastoreItem ds:datastoreItem}
* - child XML elements: {@linkcode schemaRef ds:schemaRef}
*/
DS.schemaRefs = DS.ds.getName('schemaRefs');
/**
* Represents the `ds:uri` XML attribute.
*
* @remarks
* As an XML attribute, it is contained in the following XML elements: {@linkcode schemaRef ds:schemaRef}
*/
DS.uri = DS.ds.getName('uri');
//# sourceMappingURL=DS.js.map