result.stackName = getSimpleValue(compVal, "stackName", String.class);
MetaValue mv = compVal.get("protocolStackConfiguration");
assertNotNull(result.stackName + " has a protocolStackConfiguration", mv);
assertTrue("protocolStackConfiguration (" + mv.getClass().getSimpleName() + ") is a CollectionValue",mv instanceof CollectionValue);
CollectionValue config = (CollectionValue) mv;
MetaValue[] elements = config.getElements();
for (MetaValue element : elements)
{
ManagedObjectTestUtil.validateProtocolStackConfiguration(element);
}
mv = compVal.get("channelObjectName");
validateObjectNameMetaValue(mv);
mv = compVal.get("protocolObjectNames");
assertNotNull(result.stackName + " has protocolObjectNames", mv);
assertTrue("protocolObjectNames (" + mv.getClass().getSimpleName() + ") is a CollectionValue", mv instanceof CollectionValue);
CollectionValue protocolNames = (CollectionValue) mv;
elements = protocolNames.getElements();
for (MetaValue element : elements)
{
validateObjectNameMetaValue(element);
}