return XMLUtil.getReqStringAttr(element, "channel");
}
public void handleElement(Element connectionElement, String sChannel)
{
Channel channel = m_metadata.getChannel(sChannel);
String sExpectedElement = m_metadata.getChannelTypeElement(channel.getType()) + "Connection";
if (!sExpectedElement.equals(connectionElement.getNodeName()))
{
throw new MetadataException("err.meta.channelConnectionElement",
new Object[]{connectionElement.getNodeName(), channel.getName(),
sConnectionsName, sExpectedElement});
}
if (!connectionSet.add(channel))
{
throw new MetadataException("err.meta.dupChannelConnection", new Object[]{sChannel});
}
//Load Channel-specific attributes
((XMLIntegrationMetadataLoader)m_helper.getClassInstance(channel.getType().getLoader()))
.loadConnection(connectionElement, channel, XMLMetadataLoader.this);
}
});
}
});
}
//Call loadConnection to initialize Channels with no entry in the .connections file.
for (Iterator itr = m_metadata.getChannelIterator(); itr.hasNext();)
{
Channel channel = (Channel)itr.next();
if (!connectionSet.contains(channel))
{
int nCookie = getHelper().pushMarker(MetadataValidationException.TYPE_NAME, "ChannelConnection");
getHelper().pushMarker("channelConnection", channel.getName());
try
{
((XMLIntegrationMetadataLoader)m_helper.getClassInstance(channel.getType().getLoader()))
.loadConnection(null, channel, XMLMetadataLoader.this);
}
catch (MetadataException e)
{
m_helper.addException(e);