Hi flexcoders,

we have a problem with the new webservice generator in Flash Builder 4
release
version and we wonder if somebody could help us out. We would love to be
able
to generate value objects which themselves inherite from other value
objects. With
Flex Builder 3 this was possible ... see the following:

FLEX BUILDER 3 GENERATED AS-CODE:

public class TemplateDataComponentVO extends DataComponentVO

{

public function TemplateDataComponentVO() {}



[ArrayElementType("DataComponentVO")]

public var structuredComponents:Array;

[ArrayElementType("LogoVO")]

public var logoPool:Array;

[ArrayElementType("TemplateVO")]

public var framePool:Array;

}

public class DataComponentVO

{

public function DataComponentVO() {}



public var name:String;

public var labelText:String;

public var type:String;

public var data:Object;

public var dataType:String;

}

... here is the
JAVA-CODE FOR WEBSERVICE:

public class TemplateDataComponentVO extends DataComponentVO
{
public Collection<DataComponentVO> structuredComponents;
public Collection<LogoVO> logoPool;
public Collection<TemplateVO> framePool;
 public TemplateDataComponentVO()
{
super();
}
}

public class DataComponentVO
{
public String name = "";
public String labelText = "";
public String type = "";
public Object data = "";
public String dataType = "";

[...]

public DataComponentVO() {}
}

So ... inheritance was working in Flex Builder 3 but not in
Flash Builder 4 anymore ... see the following, confusing ...

FLASH BUILDER 4 GENERATED AS-CODE:

public class TemplateDataComponentVO extends_Super_TemplateDataComponentVO {
[...] }

[ExcludeClass]

public class _Super_TemplateDataComponentVO extends EventDispatcher
implements IValueObject { [...] }


public class DataComponentVO extends _Super_DataComponentVO { [...] }


[ExcludeClass]

public class _Super_DataComponentVO extends EventDispatcher
implementsIValueObject {
[...] }


...

Does anybody know how I can force Flash Builder 4
to generate inherited value objects? We would like to
be able to generate the following inheritance chain:

public class TemplateDataComponentVO extends DataComponentVO { [...] }

public class DataComponentVO extends _Super_DataComponentVO { [...] }


[ExcludeClass]

public class _Super_DataComponentVO extends EventDispatcher implements
 IValueObject { [...] }

...

We know a lot has moved forward in Flash Builder 4 but,
for us, this restriction seems to be one step back.


Thanks and cheers,
masu

Reply via email to