protected void TraverseProperty(TestElementTraverser traverser, NetMeterProperty value) { traverser.startProperty(value); if (value is TestElementProperty) { ((TestElement)value.getObjectValue()).Traverse(traverser); } else if (value is CollectionProperty) { traverseCollection((CollectionProperty)value, traverser); } else if (value is MapProperty) { TraverseMap((MapProperty)value, traverser); } traverser.endProperty(value); }
public void SetProperty(NetMeterProperty property) { if (isRunningVersion()) { if (getProperty(property.getName()) is NullProperty) { addProperty(property); } else { getProperty(property.getName()).setObjectValue(property.getObjectValue()); } } else { propDic.Add(property.getName(), property); } }
protected void TraverseProperty(TestElementTraverser traverser, NetMeterProperty value) { traverser.startProperty(value); if (value is TestElementProperty) { ((TestElement) value.getObjectValue()).Traverse(traverser); } else if (value is CollectionProperty) { traverseCollection((CollectionProperty) value, traverser); } else if (value is MapProperty) { TraverseMap((MapProperty) value, traverser); } traverser.endProperty(value); }