All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.getperka.flatpack.fast.js.stg Maven / Gradle / Ivy

There is a newer version: 2.21.0
Show newest version
/*
 * #%L
 * FlatPack Automatic Source Tool
 * %%
 * Copyright (C) 2012 Perka Inc.
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
entity(entity) ::= <<
// Generated File - DO NOT EDIT

goog.provide('');

goog.require('com.getperka.flatpack.core.EntityDescription');
goog.require('com.getperka.flatpack.core.Property');
goog.require('');

(function() {

  /** @const */
  var ENTITY_NAME = '';
  
  var Property = com.getperka.flatpack.core.Property;
  var allProperties = [
    
    
    
  ];
  
  var entityDescription = new com.getperka.flatpack.core.EntityDescription({
    superType : .entityDescription(),
    typeName : ENTITY_NAME,
    kind : '',
    properties : allProperties
  });
  
  com.getperka.flatpack.core.EntityDescription.setEntityDescriptionForName(
    ENTITY_NAME, entityDescription);
  
  /**
  * @class 
  * @memberof 
  * @extends 
  
  *
  
  */
   = .extend(
    {
      
      defaults : function() {
      
      
        var self = this;
      
      
      
        return {
          
        };
      },
      
    
      initialize : function() {
        .prototype.initialize.call(this, arguments);
        this.set({entityName : ENTITY_NAME});
      },
      
      entityDescription : entityDescription
    },
    
    {
      entityDescription : function() {
        return entityDescription;      
      }
    }
  );
}());


>>

collectionDeclaration(property) ::= <<
  var  = Backbone.Collection.extend({
    model : 
  });
>>

property(property) ::= <<
 : 
>>

propertyAdd(property) ::= <<
Property.setPropertyValuesForUuid(
  '', {
    name : '',
    kind : '',
    impliedPropertyUuid : '',
    listElementKind : '',
    embedded : true
    
  })
>>

api(api) ::= <<
// Generated File - DO NOT EDIT

goog.provide('.GeneratedBaseApi');

goog.require('com.getperka.flatpack.core.Flatpack');
goog.require('com.getperka.flatpack.client.FlatpackRequest');
goog.require('com.getperka.flatpack.client.BaseApi');
');}; separator="\n">

(function() {

  
  .GeneratedBaseApi = function(options) {
    this.initialize(options);
    _(this).extend(options);
  };
  
  .GeneratedBaseApi.prototype = 
    new com.getperka.flatpack.client.BaseApi();
  
  .GeneratedBaseApi.constructor = 
    .GeneratedBaseApi;
  
  /**
  * @class .GeneratedBaseApi
  * @memberof 
  * @extends com.getperka.flatpack.client.BaseApi
  * @description Generated API endpoints
  */
  _(.GeneratedBaseApi.prototype).extend(
    /** @lends .GeneratedBaseApi.prototype */
    {
      initialize : function(options) {
        com.getperka.flatpack.client.BaseApi.prototype.initialize.call(this, options);
      },
      
      
    }
  );

}());


>>

endpointRequestClass(end) ::= <<
/**
* @class 
* @extends com.getperka.flatpack.client.FlatpackRequest
* @inner
*/
 = function(options) {
  this.initialize();
  _(this).extend(options);
};
.prototype = new 
  com.getperka.flatpack.client.FlatpackRequest();
.constructor = 
  ;

_(.prototype).extend(

  /** @lends .prototype */
  {
    
  }
);

>>

endpointRequestParameter(p) ::= <<
/**
* @param {String}  
*/
with : function() {
  this.queryParams. = ;
  return this;
}
>>

endpointMethod(e) ::=<<
/**
* @returns {}


*/
 : function() {
  var request = new ({
    api : this,
    method : "",
    path : ""
  });
  
  request.pathArgs = [}; separator=", ">];
  
  request.entity = ;
  
  return request; 
}
>>

pathParameterDocs(params) ::=<<

  

>>

pathParameterDoc(param) ::=<<
* @param {String}  
>>

/**
 * Emit a doc string, reflowed to fit the current context.
 */
docString(docString) ::= <<
/** 
* 
*/
>>

propertyJsdocString(property) ::= <%
* @property {.\<>}  
%>

inlineDocString(docString) ::= <%

* @description 

%>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy