MetaDone
metadone.plugin.grasyla.generator.GrasylaGenerator Class Reference
Inheritance diagram for metadone.plugin.grasyla.generator.GrasylaGenerator:
Collaboration diagram for metadone.plugin.grasyla.generator.GrasylaGenerator:

List of all members.

Public Member Functions

JMenu createMenu ()

Protected Member Functions

GrasylaScript createPropertiesScript (String name, MetaModel model, boolean metaroleGen) throws BadPreCondition

Static Protected Member Functions

static Object getDefaultValue (Class<?> type)

Static Private Member Functions

static void createMetaRoleEditors (AST_script script, MetaModel model) throws BadPreCondition
static void createAttributeEditors (AST_script script, MetaModel model) throws BadPreCondition
static AST_expression createAttributeEditorOne (MetaPropertyExt<?> prop) throws BadPreCondition
static AST_expression createAttriubteEditorOneDefault (MetaPropertyExt<?> prop, AST_expression value) throws BadPreCondition
static AST_expression createAttriubteEditorOneEnum (MetaPropertyExt<?> prop, AST_expression value) throws BadPreCondition
static String metaFunctor (Class<?> type)
static AST_expression createAttributeEditorOneBoolean (MetaPropertyExt<?> prop, AST_expression value) throws BadPreCondition
static AST_expression createAttributeEditorOneNumber (MetaPropertyExt<?> prop, AST_expression value) throws BadPreCondition
static AST_expression createAttributeEditorMulti (AST_script script, String functor, MetaPropertyExt<?> prop) throws BadPreCondition
static AST_expression createAttributeEditorMultiBool (MetaPropertyExt<?> prop)
static AST_expression createAttributeEditorMultiDefault (MetaPropertyExt<?> prop)
static AST_attribute createAttributeEditorMultiMenuDelete ()
static void createTableRows (AST_script script, MetaModel model, boolean metaroleGen) throws BadPreCondition
static void createMenuCreate (AST_script script, MetaModel model) throws BadPreCondition
static Object getDefaultValue (MetaPropertyExt<?> prop) throws BadPreCondition

Static Private Attributes

static final Logger logger = Logger.getLogger(GrasylaGenerator.class)

Detailed Description

Generates default editors for metamodels. TODO don't generate for Omega XXX autoformatting margin should be arround 120 for this to look good


Member Function Documentation

static AST_attribute metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMultiMenuDelete ( ) [static, private]
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorOneBoolean ( MetaPropertyExt<?>  prop,
AST_expression  value 
) throws BadPreCondition [static, private]
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorOneNumber ( MetaPropertyExt<?>  prop,
AST_expression  value 
) throws BadPreCondition [static, private]
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttriubteEditorOneDefault ( MetaPropertyExt<?>  prop,
AST_expression  value 
) throws BadPreCondition [static, private]
static void metadone.plugin.grasyla.generator.GrasylaGenerator.createMenuCreate ( AST_script  script,
MetaModel  model 
) throws BadPreCondition [static, private]
static Object metadone.plugin.grasyla.generator.GrasylaGenerator.getDefaultValue ( Class<?>  type) [static, protected]

Gets the default value of a given type.

Parameters:
typeThe type
Returns:
The default value

References metadone.util.ClassUtil.convert().

static Object metadone.plugin.grasyla.generator.GrasylaGenerator.getDefaultValue ( MetaPropertyExt<?>  prop) throws BadPreCondition [static, private]
static String metadone.plugin.grasyla.generator.GrasylaGenerator.metaFunctor ( Class<?>  type) [static, private]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations