.getApplication();
List suffixes = complexValue.getSuffixes();
for (int i = 0, len = suffixes.size(); i < len; i++)
{
ValueSuffix suffix = (ValueSuffix) suffixes.get(i);
if (suffix instanceof PropertySuffix)
{
if (suffix instanceof MyPropertySuffix)
{
throw new IllegalStateException(
"Suffix is MyPropertySuffix and must not be");
}
suffixes.set(i, new MyPropertySuffix((PropertySuffix) suffix,
application));
}
else if (suffix instanceof ArraySuffix)
{
if (suffix instanceof MyArraySuffix)
{
throw new IllegalStateException(
"Suffix is MyArraySuffix and must not be");
}
suffixes.set(i, new MyArraySuffix((ArraySuffix) suffix,
application));
}
else
{
throw new IllegalStateException("Unknown suffix class: "
+ suffix.getClass().getName());
}
}
}