I'm looking at otest ASM_4008 which is currently failing because the
test for no property value being specified is not good enough. Looking
at the code I find that I don't understand what some of it is trying
to do so it would be useful if someone in the know could explain. In
particular I'm interested in the operation of the code in
BaseAssemblyProcessor.readPropertyValue()
This is trying to read a property value from the input stream. It
seems that the propery.value model field is always represented as a
DOM with the following model
<property>
<value>...</value>
</property>
The property element is fluffed up in a hard coded manner inside
readPropertyValue() and it then goes about trying to find property
values in various places, for example, by looking for an attribute
called "value". There is some code toward the bottom of the operation
readPropertyValue() where it is starting to look at the value of the
property element itself.
int event = reader.getEventType();
while (true) {
switch (event) {
case START_ELEMENT:
name = reader.getName();
if (PROPERTY_QNAME.equals(name)) {
isTextForProperty = true;
break;
}
isTextForProperty = false;
Under what circumstances does input element ="property" in this case,
i.e. when does isTextForProperty get set to true?
Regards
Simon