get : function () {
return MANIFOLD_METADATA;
},
- // returns all fields of a given subject
- fields : function (subject) {
+ // returns all fields of a given object
+ fields : function (object) {
var result=new Array();
jQuery.each(MANIFOLD_METADATA, function(s,obj){
- if(s==subject){
+ if(s==object){
jQuery.each(obj['column'], function(i,f){
result.push(f);
});
return result;
},
// returns all properties of a given field
- field : function (subject, field) {
+ field : function (object, field) {
var result=new Array();
jQuery.each(MANIFOLD_METADATA, function(s,obj){
- if(s==subject){
+ if(s==object){
jQuery.each(obj['column'], function(i,f){
if(f['column']==field){
result.push(f);
});
return result[0];
},
- // returns the value of a property from a field within a subject (type of object : resource,node,lease,slice...)
- property : function (subject, field, property) {
+ // returns the value of a property from a field within a object (type of object : resource,node,lease,slice...)
+ property : function (object, field, property) {
var result=null;
jQuery.each(MANIFOLD_METADATA, function(s,obj){
- if(s==subject){
+ if(s==object){
jQuery.each(obj['column'], function(i,f){
if(f['column']==field){
result=f[property];