Page MenuHomeSealhub

node_modules_prometheus-field-type_field-type.js.html
No OneTemporary

Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None

node_modules_prometheus-field-type_field-type.js.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: node_modules/prometheus-field-type/field-type.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: node_modules/prometheus-field-type/field-type.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>var Promise = require("bluebird");
/**
* Stores field type metadata, as well as validation methods
* @class
*/
function FieldType(){
}
FieldType.prototype = new function(){
/**
* Whether a given value can be stored in this field type instance
* @memberOf FieldType
* @abstract
* @param {any} value value of this variable will be tested for compatibility with this field
* @return {Promise}
*/
this.isProperValue = function(value){
return new Promise(function(resolve, reject){
resolve();
});
}
this.encode = function(value_in_code){
return new Promise(function(resolve, reject){
resolve(value_in_code);
})
}
this.decode = function(value_in_database){
return new Promise(function(resolve, reject){
resolve(value_in_database);
})
}
}
module.exports = FieldType;</code></pre>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-database-accessor.html">database-accessor</a></li><li><a href="module-field-type-manager.html">field-type-manager</a></li><li><a href="module-resource-type-manager.html">resource-type-manager</a></li></ul><h3>Classes</h3><ul><li><a href="AssociationInterface.html">AssociationInterface</a></li><li><a href="field-type-manager-Association.html">Association</a></li><li><a href="FieldType.html">FieldType</a></li><li><a href="Resource.html">Resource</a></li><li><a href="ResourceManager.html">ResourceManager</a></li><li><a href="ResourceType.html">ResourceType</a></li><li><a href="ResourceTypeField.html">ResourceTypeField</a></li></ul><h3>Global</h3><ul><li><a href="global.html#construct_resource_type">construct_resource_type</a></li></ul>
</nav>
<br clear="both">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha11</a> on Mon Dec 08 2014 13:12:25 GMT+0100 (CET)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>

File Metadata

Mime Type
text/html
Expires
Fri, Nov 27, 17:23 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1227636
Default Alt Text
node_modules_prometheus-field-type_field-type.js.html (2 KB)

Event Timeline