} else {
// unbounded string type is already in the XmlSchema and only needs to be added
// to the CorbaTypeMap, therefore we cannot use DeclaratorVisitor here.
while (identifierNode != null) {
Alias corbaString = new Alias();
if (typeDeclaratorNode.getType() == IDLTokenTypes.LITERAL_string) {
corbaString.setBasetype(CorbaConstants.NT_CORBA_STRING);
} else if (typeDeclaratorNode.getType() == IDLTokenTypes.LITERAL_wstring) {
corbaString.setBasetype(CorbaConstants.NT_CORBA_WSTRING);
} else {
// should never get here
throw new RuntimeException("[TypedefVisitor] Attempted to visit an invalid node: "
+ typeDeclaratorNode.toString());
}
Scope newScope = new Scope(typedefScope.getParent(), identifierNode);
corbaString.setQName(new QName(typeMap.getTargetNamespace(), newScope.toString()));
corbaString.setType(Constants.XSD_STRING);
corbaString.setRepositoryID(newScope.toIDLRepositoryID());
typeMap.getStructOrExceptionOrUnion().add(corbaString);
identifierNode = identifierNode.getNextSibling();
}