CorbaTypeImpl corbaTypeImpl = null;
//schematypeName = checkPrefix(schematypeName);
if (!anonymous) {
// Create a Sequence
Sequence corbaSeq = new Sequence();
corbaSeq.setName(name.getLocalPart());
corbaSeq.setQName(name);
corbaSeq.setType(schematypeName);
corbaSeq.setElemtype(arrayType);
corbaSeq.setElemname(elName);
corbaSeq.setBound(bound);
corbaSeq.setRepositoryID(WSDLToCorbaHelper.REPO_STRING
+ name.getLocalPart().replace('.', '/')
+ WSDLToCorbaHelper.IDL_VERSION);
corbaTypeImpl = corbaSeq;
} else {
// Create a Anonymous Sequence
Anonsequence corbaSeq = new Anonsequence();
corbaSeq.setName(name.getLocalPart());
corbaSeq.setQName(name);
corbaSeq.setType(schematypeName);
corbaSeq.setElemtype(arrayType);
corbaSeq.setElemname(elName);
corbaSeq.setBound(bound);
corbaTypeImpl = corbaSeq;
}
return corbaTypeImpl;
}