From 53684261b0ecdfdb3b9bdc6dc2f44860e2e42180 Mon Sep 17 00:00:00 2001 From: jjrv Date: Mon, 25 Jan 2016 16:54:24 +0200 Subject: [PATCH] Rename to cxsd and spin a part off under previous cxml name. --- README.md | 10 +- package.json | 5 +- src/cli.ts | 2 +- src/cxml.ts | 110 ------------------- src/schema.ts | 2 +- src/schema/Member.ts | 2 +- src/schema/Namespace.ts | 2 +- src/schema/NamespaceRef.ts | 2 +- src/schema/Type.ts | 2 +- src/schema/exporter.ts | 2 +- src/schema/exporter/Exporter.ts | 2 +- src/schema/exporter/JS.ts | 2 +- src/schema/exporter/TS.ts | 2 +- src/schema/transform/AddImports.ts | 2 +- src/schema/transform/ListImports.ts | 2 +- src/schema/transform/Sanitize.ts | 2 +- src/schema/transform/Transform.ts | 2 +- src/xml.ts | 5 - src/xml/Namespace.ts | 95 ---------------- src/xml/Type.ts | 145 ------------------------- src/xsd/Exporter.ts | 2 +- src/xsd/Loader.ts | 2 +- src/xsd/Namespace.ts | 2 +- src/xsd/Parser.ts | 2 +- src/xsd/QName.ts | 2 +- src/xsd/Scope.ts | 2 +- src/xsd/Source.ts | 2 +- src/xsd/State.ts | 2 +- src/xsd/types.ts | 2 +- src/xsd/types/Annotation.ts | 2 +- src/xsd/types/AnyAttribute.ts | 2 +- src/xsd/types/Attribute.ts | 2 +- src/xsd/types/AttributeGroup.ts | 2 +- src/xsd/types/Base.ts | 2 +- src/xsd/types/ComplexType.ts | 2 +- src/xsd/types/DerivationBase.ts | 2 +- src/xsd/types/Documentation.ts | 2 +- src/xsd/types/Element.ts | 2 +- src/xsd/types/Enumeration.ts | 2 +- src/xsd/types/Extension.ts | 2 +- src/xsd/types/Group.ts | 2 +- src/xsd/types/Import.ts | 2 +- src/xsd/types/MemberBase.ts | 2 +- src/xsd/types/MissingReferenceError.ts | 2 +- src/xsd/types/Primitive.ts | 2 +- src/xsd/types/Restriction.ts | 2 +- src/xsd/types/Schema.ts | 2 +- src/xsd/types/TypeBase.ts | 2 +- tsconfig.json | 1 - 49 files changed, 47 insertions(+), 408 deletions(-) delete mode 100644 src/cxml.ts delete mode 100644 src/xml.ts delete mode 100644 src/xml/Namespace.ts delete mode 100644 src/xml/Type.ts diff --git a/README.md b/README.md index 8a192cd..06bb6fd 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ -cxml +cxsd ==== -(Currently incomplete and not operational) streaming XML parser using node-expat (requires node-gyp to compile). - -Uses XSD schema information to read XML into nice JavaScript structures. +(Currently incomplete and not operational) streaming XSD parser using node-expat (requires node-gyp to compile). Downloads schema files and keeps a local cache in the file system. @@ -32,11 +30,9 @@ The XSD parser proceeds in stages (the parser and all syntax element classes hav - `resolve` which resolves references by name and finds out how many times they may appear. Because possible attributes and child elements can be defined through deeply nested references that can point to other namespaces, it's generally impossible to know them all before all references in all namespaces have been resolved. - TODO: `transform` which renames things to avoid naming conflicts between child elements and attributes (which will be merged into members of a single JSON object) and possibly deals with scope issues for TypeScript definition output. -TODO: after parsing, the resulting data structure should be exportable as JSON or a TypeScript definition file with ambient declarations of the XML namespaces. - License ======= -[The MIT License](https://raw.githubusercontent.com/charto/fast-xml/master/LICENSE) +[The MIT License](https://raw.githubusercontent.com/charto/cxsd/master/LICENSE) Copyright (c) 2015-2016 BusFaster Ltd diff --git a/package.json b/package.json index 7d4a052..78714f6 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,9 @@ { - "name": "cxml", + "name": "cxsd", "version": "0.0.3", "description": "(incomplete) fast schema-aware XML parser with XSD support", - "main": "dist/cxml.js", "bin": { - "cxml": "dist/cli.js" + "cxsd": "dist/cli.js" }, "scripts": { "tsc": "tsc", diff --git a/src/cli.ts b/src/cli.ts index 8ee3420..e5f7892 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Cache} from 'cget'; diff --git a/src/cxml.ts b/src/cxml.ts deleted file mode 100644 index dff60c8..0000000 --- a/src/cxml.ts +++ /dev/null @@ -1,110 +0,0 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. -// Released under the MIT license, see LICENSE. - -import * as xml from './xml'; - -/** Tuple: parent type ID, child element list, attribute list */ -export type RawTypeSpec = [ number, xml.MemberSpec[], xml.MemberSpec[] ]; - -var pendingNamespaceList: xml.ModuleExports[] = []; -var pendingTypeList: xml.TypeSpec[] = []; -var pendingCount = 0; - -var namespaceList: xml.Namespace[] = []; -var typeList: xml.TypeSpec[] = []; - -function mark(exports: xml.ModuleExports, namespace?: xml.Namespace) { - if(!exports._cxml) { - exports._cxml = [null]; - pendingNamespaceList.push(exports); - ++pendingCount; - } - - if(namespace) exports._cxml[0] = namespace; -} - -function process(pendingNamespaceList: xml.ModuleExports[], pendingTypeList: xml.TypeSpec[]) { - // Link types to their parents. - - for(var exportObject of pendingNamespaceList) { - var namespace = exportObject._cxml[0]; - namespace.link(); - } - - // Create classes for all types. - // This is effectively Kahn's algorithm for topological sort - // (the rest is in the TypeSpec class). - - for(var typeSpec of pendingTypeList) { - if(!typeSpec.parent || typeSpec.parent == typeSpec) { - typeSpec.defineType(); - } - } - - for(var typeSpec of pendingTypeList) { - typeSpec.defineMembers(); - } - - for(var exportObject of pendingNamespaceList) { - var namespace = exportObject._cxml[0]; - - namespace.exportTypes(exportObject); - namespace.exportDocument(exportObject); - } -} - -export function register( - name: string, - exportObject: xml.ModuleExports, - importSpecList: xml.ImportSpec[], - exportTypeNameList: string[], - rawTypeSpecList: RawTypeSpec[] -) { - var typeSpecList: xml.TypeSpec[] = []; - var exportTypeCount = exportTypeNameList.length; - var typeCount = rawTypeSpecList.length; - var typeName: string; - - var namespace = new xml.Namespace(name, importSpecList); - namespaceList.push(namespace); - - for(var typeNum = 0; typeNum < typeCount; ++typeNum) { - var rawSpec = rawTypeSpecList[typeNum]; - - if(typeNum > 0 && typeNum <= exportTypeCount) { - typeName = exportTypeNameList[typeNum - 1]; - } else typeName = null; - - var typeSpec = new xml.TypeSpec(namespace, typeName, rawSpec[0], rawSpec[1], rawSpec[2]); - - namespace.addType(typeSpec); - pendingTypeList.push(typeSpec); - typeList.push(typeSpec); - } - - mark(exportObject, namespace); - - for(var spec of importSpecList) mark(spec[0]); - if(--pendingCount == 0) { - process(pendingNamespaceList, pendingTypeList); - - pendingNamespaceList = []; - pendingTypeList = []; - } -} - -export function init(strict?: boolean) { - for(var namespace of namespaceList) { - namespace.importSpecList = null; - namespace.exportTypeNameList = null; - namespace.typeSpecList = null; - namespace.exportTypeTbl = null; - } - - for(var typeSpec of typeList) { - typeSpec.cleanPlaceholders(strict); - } - - namespaceList = null; - typeList = null; -} diff --git a/src/schema.ts b/src/schema.ts index 9b2db19..6056f33 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. export {Namespace} from './schema/Namespace'; diff --git a/src/schema/Member.ts b/src/schema/Member.ts index b42d669..caa75ff 100644 --- a/src/schema/Member.ts +++ b/src/schema/Member.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Namespace} from './Namespace'; diff --git a/src/schema/Namespace.ts b/src/schema/Namespace.ts index 1f3665f..308d446 100644 --- a/src/schema/Namespace.ts +++ b/src/schema/Namespace.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as path from 'path'; diff --git a/src/schema/NamespaceRef.ts b/src/schema/NamespaceRef.ts index f86cf40..ec2b2bd 100644 --- a/src/schema/NamespaceRef.ts +++ b/src/schema/NamespaceRef.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Namespace} from './Namespace'; diff --git a/src/schema/Type.ts b/src/schema/Type.ts index 161fdcb..8271549 100644 --- a/src/schema/Type.ts +++ b/src/schema/Type.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Namespace} from './Namespace'; diff --git a/src/schema/exporter.ts b/src/schema/exporter.ts index c65ecad..5d14cb1 100644 --- a/src/schema/exporter.ts +++ b/src/schema/exporter.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. export {TS} from './exporter/TS'; diff --git a/src/schema/exporter/Exporter.ts b/src/schema/exporter/Exporter.ts index 3409953..294f141 100644 --- a/src/schema/exporter/Exporter.ts +++ b/src/schema/exporter/Exporter.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as path from 'path'; diff --git a/src/schema/exporter/JS.ts b/src/schema/exporter/JS.ts index 514947a..a815b98 100644 --- a/src/schema/exporter/JS.ts +++ b/src/schema/exporter/JS.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as Promise from 'bluebird'; diff --git a/src/schema/exporter/TS.ts b/src/schema/exporter/TS.ts index 0d77fc5..349b5ec 100644 --- a/src/schema/exporter/TS.ts +++ b/src/schema/exporter/TS.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Cache} from 'cget' diff --git a/src/schema/transform/AddImports.ts b/src/schema/transform/AddImports.ts index 7189cde..d44f389 100644 --- a/src/schema/transform/AddImports.ts +++ b/src/schema/transform/AddImports.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Type} from '../Type'; diff --git a/src/schema/transform/ListImports.ts b/src/schema/transform/ListImports.ts index a38617c..0232332 100644 --- a/src/schema/transform/ListImports.ts +++ b/src/schema/transform/ListImports.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Type} from '../Type'; diff --git a/src/schema/transform/Sanitize.ts b/src/schema/transform/Sanitize.ts index 5a710ba..e729c75 100644 --- a/src/schema/transform/Sanitize.ts +++ b/src/schema/transform/Sanitize.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Type} from '../Type'; diff --git a/src/schema/transform/Transform.ts b/src/schema/transform/Transform.ts index 7f7703d..8291315 100644 --- a/src/schema/transform/Transform.ts +++ b/src/schema/transform/Transform.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as Promise from 'bluebird'; diff --git a/src/xml.ts b/src/xml.ts deleted file mode 100644 index cda3419..0000000 --- a/src/xml.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. -// Released under the MIT license, see LICENSE. - -export {Namespace, ModuleExports, ImportSpec} from './xml/Namespace'; -export {Type, TypeSpec, MemberSpec} from './xml/Type'; diff --git a/src/xml/Namespace.ts b/src/xml/Namespace.ts deleted file mode 100644 index 38a7eb9..0000000 --- a/src/xml/Namespace.ts +++ /dev/null @@ -1,95 +0,0 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. -// Released under the MIT license, see LICENSE. - -import {Type, TypeSpec, TypeClassMembers} from './Type'; - -export interface ModuleExports { - [name: string]: any; - _cxml: [ Namespace ]; -} - -/** Tuple: module exports object, list of imported type names */ -export type ImportSpec = [ ModuleExports, string[] ]; - -export class Namespace { - constructor(name: string, importSpecList: ImportSpec[]) { - this.name = name; - this.importSpecList = importSpecList; - - // Skip the document type. - var importOffset = 1; - - for(var importSpec of importSpecList) { - importOffset += importSpec[1].length; - } - - this.typeSpecList.length = importOffset; - } - - addType(spec: TypeSpec) { - if(this.typeSpecList[0]) this.typeSpecList.push(spec); - else { - // First type added after imports is number 0, the document type. - this.typeSpecList[0] = spec; - } - - if(spec.safeName) this.exportTypeTbl[spec.safeName] = spec; - } - - typeByNum(num: number) { - return(this.typeSpecList[num]); - } - - link() { - // Skip the document type. - var typeNum = 1; - - for(var importSpec of this.importSpecList) { - var other = importSpec[0]._cxml[0]; - - for(var typeName of importSpec[1]) { - this.typeSpecList[typeNum++] = other.exportTypeTbl[typeName]; - } - } - - this.exportOffset = typeNum; - - var typeSpecList = this.typeSpecList; - var typeCount = typeSpecList.length; - - while(typeNum < typeCount) { - var typeSpec = typeSpecList[typeNum++]; - - if(typeSpec.parentNum) { - typeSpec.setParent(typeSpecList[typeSpec.parentNum]); - } - } - } - - exportTypes(exports: ModuleExports) { - var typeSpecList = this.typeSpecList; - var typeCount = typeSpecList.length; - - for(var typeNum = this.exportOffset; typeNum < typeCount; ++typeNum) { - var typeSpec = typeSpecList[typeNum]; - - exports[typeSpec.safeName] = typeSpec.type; - } - } - - exportDocument(exports: ModuleExports) { - var doc = this.typeSpecList[0].type.prototype as TypeClassMembers; - - for(var safeName of Object.keys(doc)) { - exports[safeName] = doc[safeName]; - } - } - - name: string; - importSpecList: ImportSpec[]; - exportTypeNameList: string[]; - typeSpecList: TypeSpec[] = []; - exportOffset: number; - - exportTypeTbl: { [name: string]: TypeSpec } = {}; -} diff --git a/src/xml/Type.ts b/src/xml/Type.ts deleted file mode 100644 index 2d1795d..0000000 --- a/src/xml/Type.ts +++ /dev/null @@ -1,145 +0,0 @@ -// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. -// Released under the MIT license, see LICENSE. - -import {Namespace} from './Namespace'; - -/** Tuple: name, flags, type ID list */ -export type MemberSpec = [ string, number, number[] ]; - -function parseName(name: string) { - var splitPos = name.indexOf(':'); - var safeName: string - - if(splitPos >= 0) { - safeName = name.substr(0, splitPos); - name = name.substr(splitPos + 1); - } else safeName = name; - - return({ - name: name, - safeName: safeName - }); -} - -/** Tuple: parent type ID, child element list, attribute list */ -export class TypeSpec { - constructor( - namespace: Namespace, - name: string, - parentNum: number, - childSpecList: MemberSpec[], - attributeSpecList: MemberSpec[] - ) { - if(name) { - var parts = parseName(name); - this.name = parts.name; - this.safeName = parts.safeName; - } - - this.namespace = namespace; - this.parentNum = parentNum; - this.childSpecList = childSpecList; - this.attributeSpecList = attributeSpecList; - } - - setParent(spec: TypeSpec) { - this.parent = spec; - - if(spec.type) { - // Entire namespace for parent type is already fully defined, - // so the parent type's dependentList won't get processed any more - // and we should process this type immediately. - - this.defineType(); - } else if(spec != this) spec.dependentList.push(this); - } - - defineType() { - if(!this.type) { - // This function hasn't been called for this type yet by setParent, - // but something must by now have called it for the parent type. - - var parent = (this.parent && this.parent != this) ? this.parent.type : Type; - - this.type = class XmlType extends parent {}; - } - - for(var dependent of this.dependentList) { - dependent.defineType(); - } - - this.dependentList = []; - } - - private defineMember(spec: MemberSpec) { - var parts = parseName(spec[0]); - var flags = spec[1]; - var typeNumList = spec[2]; - - if(typeNumList.length == 1) { - var safeName = parts.safeName; - var type = (this.type.prototype) as TypeClassMembers; - var memberType = new (this.namespace.typeByNum(typeNumList[0]).type); - - if(flags & TypeSpec.arrayFlag) type[safeName] = [memberType]; - else type[safeName] = memberType; - - if(flags & TypeSpec.optionalFlag) this.optionalList.push(safeName); - else this.requiredList.push(safeName); - } else { - // TODO: What now? Make sure this is not reached. - // Different types shouldn't be joined with | in .d.ts, instead - // they should be converted to { TypeA: TypeA, TypeB: TypeB... } - } - } - - defineMembers() { - var spec: MemberSpec; - - for(spec of this.childSpecList) this.defineMember(spec); - for(spec of this.attributeSpecList) this.defineMember(spec); - } - - cleanPlaceholders(strict?: boolean) { - var type = (this.type.prototype) as TypeClassMembers; - var nameList = this.optionalList; - - if(strict) nameList = nameList.concat(this.requiredList); - - for(var name of nameList) { - delete(type[name]); - } - } - - namespace: Namespace; - name: string; - safeName: string; - - parentNum: number; - parent: TypeSpec; - childSpecList: MemberSpec[]; - attributeSpecList: MemberSpec[]; - - optionalList: string[] = []; - requiredList: string[] = []; - - // Track dependents for Kahn's topological sort algorithm. - dependentList: TypeSpec[] = []; - - type: TypeClass; - - static optionalFlag = 1; - static arrayFlag = 2; -} - -export interface TypeClass { - new(): Type; -} - -export interface TypeClassMembers { - [name: string]: Type | Type[]; -} - -export class Type { - static name: string; -} diff --git a/src/xsd/Exporter.ts b/src/xsd/Exporter.ts index 1fb1b73..a9bd7aa 100644 --- a/src/xsd/Exporter.ts +++ b/src/xsd/Exporter.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Namespace} from './Namespace'; diff --git a/src/xsd/Loader.ts b/src/xsd/Loader.ts index 1f36661..adcaa50 100644 --- a/src/xsd/Loader.ts +++ b/src/xsd/Loader.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Address, FetchOptions, Cache, CacheResult, util} from 'cget' diff --git a/src/xsd/Namespace.ts b/src/xsd/Namespace.ts index d52f695..a1a3bf2 100644 --- a/src/xsd/Namespace.ts +++ b/src/xsd/Namespace.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Loader} from './Loader'; diff --git a/src/xsd/Parser.ts b/src/xsd/Parser.ts index a90ceae..db690dc 100644 --- a/src/xsd/Parser.ts +++ b/src/xsd/Parser.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as expat from 'node-expat'; diff --git a/src/xsd/QName.ts b/src/xsd/QName.ts index fd91cb0..d2c3a1f 100644 --- a/src/xsd/QName.ts +++ b/src/xsd/QName.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Namespace} from './Namespace' diff --git a/src/xsd/Scope.ts b/src/xsd/Scope.ts index bb3f737..aca9de8 100644 --- a/src/xsd/Scope.ts +++ b/src/xsd/Scope.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as types from './types'; diff --git a/src/xsd/Source.ts b/src/xsd/Source.ts index ddf0c57..8b29126 100644 --- a/src/xsd/Source.ts +++ b/src/xsd/Source.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as url from 'url'; diff --git a/src/xsd/State.ts b/src/xsd/State.ts index e412a9c..c1e51a9 100644 --- a/src/xsd/State.ts +++ b/src/xsd/State.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as expat from 'node-expat'; diff --git a/src/xsd/types.ts b/src/xsd/types.ts index 3c42f3c..0f81286 100644 --- a/src/xsd/types.ts +++ b/src/xsd/types.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. export {Base, BaseClass} from './types/Base'; diff --git a/src/xsd/types/Annotation.ts b/src/xsd/types/Annotation.ts index 86ea3aa..c4c2457 100644 --- a/src/xsd/types/Annotation.ts +++ b/src/xsd/types/Annotation.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as types from '../types'; diff --git a/src/xsd/types/AnyAttribute.ts b/src/xsd/types/AnyAttribute.ts index 731a83c..6be468e 100644 --- a/src/xsd/types/AnyAttribute.ts +++ b/src/xsd/types/AnyAttribute.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/Attribute.ts b/src/xsd/types/Attribute.ts index 91adfb2..356a7b9 100644 --- a/src/xsd/types/Attribute.ts +++ b/src/xsd/types/Attribute.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/AttributeGroup.ts b/src/xsd/types/AttributeGroup.ts index 0a2ebb1..1189a10 100644 --- a/src/xsd/types/AttributeGroup.ts +++ b/src/xsd/types/AttributeGroup.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/Base.ts b/src/xsd/types/Base.ts index c78dbd1..df7149a 100644 --- a/src/xsd/types/Base.ts +++ b/src/xsd/types/Base.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State, Rule} from '../State'; diff --git a/src/xsd/types/ComplexType.ts b/src/xsd/types/ComplexType.ts index d590577..0603b82 100644 --- a/src/xsd/types/ComplexType.ts +++ b/src/xsd/types/ComplexType.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/DerivationBase.ts b/src/xsd/types/DerivationBase.ts index 9be97aa..ca90c2e 100644 --- a/src/xsd/types/DerivationBase.ts +++ b/src/xsd/types/DerivationBase.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/Documentation.ts b/src/xsd/types/Documentation.ts index b3cb63f..6493532 100644 --- a/src/xsd/types/Documentation.ts +++ b/src/xsd/types/Documentation.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/Element.ts b/src/xsd/types/Element.ts index 7d879cc..d338c50 100644 --- a/src/xsd/types/Element.ts +++ b/src/xsd/types/Element.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/Enumeration.ts b/src/xsd/types/Enumeration.ts index 90e5eb8..2b74442 100644 --- a/src/xsd/types/Enumeration.ts +++ b/src/xsd/types/Enumeration.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/Extension.ts b/src/xsd/types/Extension.ts index cb28a20..6cd1077 100644 --- a/src/xsd/types/Extension.ts +++ b/src/xsd/types/Extension.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {DerivationBase} from './DerivationBase'; diff --git a/src/xsd/types/Group.ts b/src/xsd/types/Group.ts index 17dc064..5618803 100644 --- a/src/xsd/types/Group.ts +++ b/src/xsd/types/Group.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/Import.ts b/src/xsd/types/Import.ts index 719561b..69a26ba 100644 --- a/src/xsd/types/Import.ts +++ b/src/xsd/types/Import.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/MemberBase.ts b/src/xsd/types/MemberBase.ts index 7bd1ee6..1ba1a67 100644 --- a/src/xsd/types/MemberBase.ts +++ b/src/xsd/types/MemberBase.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/MissingReferenceError.ts b/src/xsd/types/MissingReferenceError.ts index f44efc0..9dd4456 100644 --- a/src/xsd/types/MissingReferenceError.ts +++ b/src/xsd/types/MissingReferenceError.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/Primitive.ts b/src/xsd/types/Primitive.ts index 3be21e2..1522b0e 100644 --- a/src/xsd/types/Primitive.ts +++ b/src/xsd/types/Primitive.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {TypeBase} from './TypeBase'; diff --git a/src/xsd/types/Restriction.ts b/src/xsd/types/Restriction.ts index a57ba45..2405b0d 100644 --- a/src/xsd/types/Restriction.ts +++ b/src/xsd/types/Restriction.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/Schema.ts b/src/xsd/types/Schema.ts index 22c5240..615232c 100644 --- a/src/xsd/types/Schema.ts +++ b/src/xsd/types/Schema.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {State} from '../State'; diff --git a/src/xsd/types/TypeBase.ts b/src/xsd/types/TypeBase.ts index cdc1bd4..783d36c 100644 --- a/src/xsd/types/TypeBase.ts +++ b/src/xsd/types/TypeBase.ts @@ -1,4 +1,4 @@ -// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. +// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Base, BaseClass} from './Base'; diff --git a/tsconfig.json b/tsconfig.json index 559fdef..5e9224b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,6 @@ "typings/tsd.d.ts", "typings-custom/node-expat.d.ts", - "src/cxml.ts", "src/cli.ts" ] }