Constructor for a data model field. SDK users are not expected to invoke this constructor directly.
Constructor for a data model field. SDK users are not expected to invoke this constructor directly.
Name | Type | Description |
---|---|---|
props | Object | A dictionary of properties to set: |
init: function(props) {
props = props || {};
props.owner = props.owner || "";
this.name = props.fieldName;
this.displayName = props.displayName;
this.type = props.type;
this.multivalued = props.multivalue;
this.required = props.required;
this.hidden = props.hidden;
this.editable = props.editable;
this.comment = props.comment || null;
this.fieldSearch = props.fieldSearch;
this.lineage = props.owner.split(".");
this.owner = this.lineage[this.lineage.length - 1];
},
Is this data model field of type boolean?
True if this data model field is of type boolean.
isBoolean: function() {
return "boolean" === this.type;
}
});
Is this data model field of type child count?
True if this data model field is of type child count.
isChildcount: function() {
return "childCount" === this.type;
},
Is this data model field of type ipv4?
True if this data model field is of type ipv4.
isIPv4: function() {
return "ipv4" === this.type;
},
Is this data model field of type number?
True if this data model field is of type number.
isNumber: function() {
return "number" === this.type;
},
Is this data model field of type object count?
True if this data model field is of type object count.
isObjectcount: function() {
return "objectCount" === this.type;
},
Is this data model field of type string?
True if this data model field is of type string.
isString: function() {
return "string" === this.type;
},
Is this data model field of type timestamp?
True if this data model field is of type timestamp.
isTimestamp: function() {
return "timestamp" === this.type;
},