Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Spaider

Pages: [1]
1
General Board / Type of aggregation in code templates?
« on: September 02, 2003, 11:49:41 pm »
Is there any way to know which type of aggregation used in association. I.e. something like

%linkAttAggregation%

2
General Board / Re: Quotation mark in template output (EA 3.6)
« on: September 02, 2003, 10:12:11 pm »
Many thanks!

This time everything is OK.

3
General Board / Re: Quotation mark in template output (EA 3.6)
« on: September 02, 2003, 02:03:22 am »
Quote
Hope this helps.


Unfortunately, it doesn't :(

I have slightly different situation. Here's an example: suppose, I want to notify that some property has changed. I had method NotifyPropertyChanged () for this. It takes one argument of type System.String (I'm writing in C#).  I.e. the code snippet for property setter will be something like:


public double Amount
{
  set
  {
      m_Amount=value;
      NotifyPropertyChanged ("Abount");
  }
}


How should I modify default template


$att=%opTag:"attribute_name"=="" ? "<unknown>" : value%
%if opTag:"writeonly" == ""%
$read="\tget{\n\t\treturn " + $att + ";\n\t}"
%endIf%
%if opTag:"readonly" == ""%
$write="\tset{\n\t\t" + $att + " = value;\n\t}"
%endIf%


to achive this?

PS Don't treat me lazy :) I've tried all variants I can imagine (not forgetting RTFM)

4
General Board / Quotation mark in template output (EA 3.6)
« on: September 01, 2003, 08:02:52 am »
Now I'm studying code templates and faced with unexpected trouble:

How can I generate quotation marks in resulting code?

(e.g. for generating string parameters).
Most common escape sequences doesn't work. I've tried \", \034, \0x22, I've tried doubling quotation marks. No positive results :(

Thanks in advance!

Pages: [1]