Skip to content

Commit

Permalink
added physicalobject type
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Nov 27, 2015
1 parent 864012b commit 9e8251d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dist/client/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions dist/manifesto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
6 changes: 5 additions & 1 deletion dist/server/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 6 additions & 1 deletion src/ElementType.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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());
}
Expand Down

0 comments on commit 9e8251d

Please sign in to comment.