public ExtensibilityElement unmarshall(Class parentType, QName elementType,
Element el, Definition def, ExtensionRegistry extReg)
throws WSDLException {
BindingType bindType = new BindingType();
bindType.setElementType(elementType);
// Store the repository ids of the interface and bases
NamedNodeMap bindAttributes = el.getAttributes();
for (int i = 0; i < bindAttributes.getLength(); ++i) {
if (bindAttributes.item(i).getNodeName().equals("repositoryID")) {
bindType.setRepositoryID(bindAttributes.item(i).getNodeValue());
} else if (bindAttributes.item(i).getNodeName().equals("bases")) {
String allBases = bindAttributes.item(i).getNodeValue();
String[] bases = allBases.split(" ");
for (int j = 0; j < bases.length; ++j) {
bindType.getBases().add(bases[j]);
}
}
}
return bindType;