else if (getUserObject() instanceof MultinameLA) {
final MultinameLA cname = (MultinameLA) getUserObject();
addNode("ns_set", cname.getNsSet());
}
else if (getUserObject() instanceof QName) {
final QName cname = (QName) getUserObject();
addNode("ns", cname.getNs());
addNode("name", cname.getName());
}
else if (getUserObject() instanceof QNameA) {
final QNameA cname = (QNameA) getUserObject();
addNode("ns", cname.getNs());
addNode("name", cname.getName());
}
else if (getUserObject() instanceof RTQName) {
final RTQName cname = (RTQName) getUserObject();
addNode("name", cname.getName());
}
else if (getUserObject() instanceof RTQNameA) {
final RTQNameA cname = (RTQNameA) getUserObject();
addNode("name", cname.getName());
}
else if (getUserObject() instanceof RTQNameL) {
// Nothing to do
}
else if (getUserObject() instanceof RTQNameLA) {
// Nothing to do
}
else if (getUserObject() instanceof GenericVector) {
final GenericVector cname = (GenericVector) getUserObject();
addNode("type_definition", cname.getTypeDefinition());
addNode("param_count", cname.getParamCount());
addNode("params", cname.getParams());
}
else {
throw new IllegalStateException("Error: Unknown multiname");
}
}