我目前面临Adobe Flash Builder的问题,我正在开发一个带有Java核心和服务的项目,以便与Flex客户端进行通信。 (BlazeDS频道)
我决定删除对象中的数组列表,因为它不再有用,所以我在对象值中注释了以下几行,以删除ArrayList
命名的" unitFactors"
public class UnitValue extends PhysicalQuantityObjectValue{
String symbol;
String name;
String description;
String physicalQuantityName;
//UnitFactorValue[] unitFactors;
UnitConstraintValue unitConstraint;
public UnitValue(AdnUnit unit) {
super(unit.getId());
//Constructor code ...
}
public UnitValue() {}
public String getSymbol() {
return symbol;
}
public void setSymbol(String symbol) {
this.symbol = symbol;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getPhysicalQuantityName() {
return physicalQuantityName;
}
public UnitValue(String symbol, String name, String description,
String physicalQuantityName,
UnitConstraintValue unitConstraint) {
super();
this.symbol = symbol;
this.name = name;
this.description = description;
this.physicalQuantityName = physicalQuantityName;
//this.unitFactors = unitFactors;
this.unitConstraint = unitConstraint;
}
public void setPhysicalQuantityName(String physicalQuantityName) {
this.physicalQuantityName = physicalQuantityName;
}
//public UnitFactorValue[] getUnitFactors() {
//return unitFactors;
//}
//public void setUnitFactors(UnitFactorValue[] unitFactors) {
//this.unitFactors = unitFactors;
//}
public UnitConstraintValue getUnitConstraint() {
return unitConstraint;
}
public void setUnitConstraint(UnitConstraintValue unitConstraint) {
this.unitConstraint = unitConstraint;
}
嗯,Java部分没问题。我用SoapUI测试了它,一切都很好。
但是当我打开我的Flex客户端代码来刷新valueObjects时,似乎无法刷新UnitValue,unitFactors仍然存在,并且显然不可能使我的应用程序在该特定点上没有错误地工作。 。找不到getUnitFactors()
。
有人遇到与AdobeFlashBuilder相同的问题吗?