Book a Demo

Author Topic: Access to Property metadata  (Read 8254 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Access to Property metadata
« on: August 17, 2005, 12:13:39 am »
When you wish to expose the class attribute as a property, you tick the property box and this enables the Property information dialog.

There doesn't seem to be any way to access this via the Automation Interface.  Does anybody know how to do it?

In any event, what do the Read and Write checkboxes mean on the Property information dialog?

Inquisitively,
Paolo
« Last Edit: August 17, 2005, 12:13:56 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Access to Property metadata
« Reply #1 on: August 17, 2005, 03:29:28 pm »
Is the property you are exposing read-only, write-only or read/write?

What this looks like is dependant on the language.

I don't think that functionality is available through the automation interface, but it just creates one or two methods that link back to the attribute.

Simon

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Access to Property metadata
« Reply #2 on: August 17, 2005, 03:59:36 pm »
Quote
Is the property you are exposing read-only, write-only or read/write?

What this looks like is dependant on the language.

I don't think that functionality is available through the automation interface, but it just creates one or two methods that link back to the attribute.

Simon
Thanx Simon,
So these checkboxes determine (in theory - since I can get at them yet...) whether the setter or getter are actually created.

If you reverse engineer (at least in C#) it doesn't link back to the attribute...  It just creates some operations.  There's no linkage to the attribute...

Will this dialog be exposed in the next release?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Access to Property metadata
« Reply #3 on: August 17, 2005, 04:12:18 pm »
If the property aligns with the attribute according to the rules about how properties are created, it does link it back to the property.  (At least it just did in my test case)

I don't think the dialog is likely to be exposed in the near future.  I would recommend just creating the methods yourself.

Simon

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Access to Property metadata
« Reply #4 on: August 17, 2005, 05:15:22 pm »
Quote
If the property aligns with the attribute according to the rules about how properties are created, it does link it back to the property.  (At least it just did in my test case)

Was that C#?
You make a good point though Gunga-Din.  My code was:
Code: [Select]

private int currentLevel;
public int Level
{
 get
 {
   return currentLevel;
 }
 set
 {
   currentLevel = value;
 }
}

Which DOES not conform to the suggested format.  Since you can change the name...

Quote
I don't think the dialog is likely to be exposed in the near future.  I would recommend just creating the methods yourself.

Simon
I have developed an alternative technology for simulating missing EA functionality for my emitter.  It's just a pain to have to do it...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!