From 9e8251d4cba4eebb6953b8ff35acc21ba6effa57 Mon Sep 17 00:00:00 2001 From: edsilv Date: Fri, 27 Nov 2015 14:01:16 +0000 Subject: [PATCH] added physicalobject type --- dist/client/manifesto.js | 6 +++++- dist/manifesto.d.ts | 2 ++ dist/server/manifesto.js | 6 +++++- src/ElementType.ts | 7 ++++++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/dist/client/manifesto.js b/dist/client/manifesto.js index 73f446c1..f8cb300b 100644 --- a/dist/client/manifesto.js +++ b/dist/client/manifesto.js @@ -334,12 +334,16 @@ var Manifesto; ElementType.prototype.movingimage = function () { return new ElementType(ElementType.MOVINGIMAGE.toString()); }; + ElementType.prototype.physicalobject = function () { + return new ElementType(ElementType.PHYSICALOBJECT.toString()); + }; ElementType.prototype.sound = function () { return new ElementType(ElementType.SOUND.toString()); }; ElementType.DOCUMENT = new ElementType("foaf:document"); - ElementType.IMAGE = new ElementType("dcTypes:Image"); + ElementType.IMAGE = new ElementType("dcTypes:image"); ElementType.MOVINGIMAGE = new ElementType("dctypes:movingimage"); + ElementType.PHYSICALOBJECT = new ElementType("dctypes:physicalobject"); ElementType.SOUND = new ElementType("dctypes:sound"); return ElementType; })(Manifesto.StringValue); diff --git a/dist/manifesto.d.ts b/dist/manifesto.d.ts index 8cb0044f..b0dfbcda 100644 --- a/dist/manifesto.d.ts +++ b/dist/manifesto.d.ts @@ -46,10 +46,12 @@ declare module Manifesto { static DOCUMENT: ElementType; static IMAGE: ElementType; static MOVINGIMAGE: ElementType; + static PHYSICALOBJECT: ElementType; static SOUND: ElementType; document(): ElementType; image(): ElementType; movingimage(): ElementType; + physicalobject(): ElementType; sound(): ElementType; } } diff --git a/dist/server/manifesto.js b/dist/server/manifesto.js index 1bdaf592..a892c907 100644 --- a/dist/server/manifesto.js +++ b/dist/server/manifesto.js @@ -333,12 +333,16 @@ var Manifesto; ElementType.prototype.movingimage = function () { return new ElementType(ElementType.MOVINGIMAGE.toString()); }; + ElementType.prototype.physicalobject = function () { + return new ElementType(ElementType.PHYSICALOBJECT.toString()); + }; ElementType.prototype.sound = function () { return new ElementType(ElementType.SOUND.toString()); }; ElementType.DOCUMENT = new ElementType("foaf:document"); - ElementType.IMAGE = new ElementType("dcTypes:Image"); + ElementType.IMAGE = new ElementType("dcTypes:image"); ElementType.MOVINGIMAGE = new ElementType("dctypes:movingimage"); + ElementType.PHYSICALOBJECT = new ElementType("dctypes:physicalobject"); ElementType.SOUND = new ElementType("dctypes:sound"); return ElementType; })(Manifesto.StringValue); diff --git a/src/ElementType.ts b/src/ElementType.ts index dede26dd..e2c3da03 100644 --- a/src/ElementType.ts +++ b/src/ElementType.ts @@ -1,8 +1,9 @@ module Manifesto { export class ElementType extends StringValue{ public static DOCUMENT = new ElementType("foaf:document"); - public static IMAGE = new ElementType("dcTypes:Image"); + public static IMAGE = new ElementType("dcTypes:image"); public static MOVINGIMAGE = new ElementType("dctypes:movingimage"); + public static PHYSICALOBJECT = new ElementType("dctypes:physicalobject"); public static SOUND = new ElementType("dctypes:sound"); // todo: use getters when ES3 target is no longer required. @@ -19,6 +20,10 @@ module Manifesto { return new ElementType(ElementType.MOVINGIMAGE.toString()); } + physicalobject(): ElementType { + return new ElementType(ElementType.PHYSICALOBJECT.toString()); + } + sound(): ElementType { return new ElementType(ElementType.SOUND.toString()); }