failed("could not get test object", CONTINUE);
}
xNA = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oObj);
XNameContainer xNC = (XNameContainer) UnoRuntime.queryInterface(XNameContainer.class, oObj);
XNameReplace xNR = (XNameReplace) UnoRuntime.queryInterface(XNameReplace.class, oObj);
XFlushable xFlush = (XFlushable) UnoRuntime.queryInterface(XFlushable.class, oObj);
instance = (Object[]) xNA.getByName(filterName);
PropertyValue[] props = (PropertyValue[]) instance;
printPropertyValues(props);
boolean isMandatory = ((Boolean) getPropertyValueValue(props, "Mandatory")).booleanValue();
boolean isFinalized = ((Boolean) getPropertyValueValue(props, "Finalized")).booleanValue();
// memory if every state is available
mandantoryTrue |= isMandatory;
mandantoryFalse |= !isMandatory;
finalizedTrue |= isFinalized;
finalizedFalse |= !isFinalized;
//change the filter
setPropertyValueValue((PropertyValue[])instance, "UIName", "dummy");
// 1a.) try to change the filter in the container
try{
xNR.replaceByName(filterName, instance);
}catch (IllegalArgumentException e){
failed("could not replace filter properties ('" + filterName + "')", CONTINUE);
}
// 1b.) try to wirte the changed filter to the configuration.