}
return mappingType;
}
public Const getConstDefinition(Node node, Definition def) {
Const constType = new Const();
NamedNodeMap constAttributes = node.getAttributes();
// Store information about the const
for (int i = 0; i < constAttributes.getLength(); ++i) {
if (constAttributes.item(i).getNodeName().equals("name")) {
constType.setName(constAttributes.item(i).getNodeValue());
} else if (constAttributes.item(i).getNodeName().equals("value")) {
constType.setValue(constAttributes.item(i).getNodeValue());
} else if (constAttributes.item(i).getNodeName().equals("idltype")) {
String idlType = constAttributes.item(i).getNodeValue();
int seperatorIndex = idlType.indexOf(':');
String prefix = idlType.substring(0, seperatorIndex);
String localPart = idlType.substring(seperatorIndex + 1, idlType.length());
constType.setIdltype(new QName(def.getNamespace(prefix), localPart, prefix));
}
}
return constType;
}