XmlSchemaType schemaType,
Scope scopedName,
long bound,
Scope fullyQualifiedName) {
//create the corba sequence
Sequence corbaSeq = new Sequence();
if (bound == -1) {
bound = 0;
}
corbaSeq.setBound(bound);
corbaSeq.setQName(new QName(typeMap.getTargetNamespace(), scopedName.toString()));
corbaSeq.setType(schemaType.getQName());
//REVISIT, if we add qualification then change the below.
corbaSeq.setElemname(new QName("", ELEMENT_NAME));
if (ctype != null) {
corbaSeq.setElemtype(ctype.getQName());
} else {
SequenceDeferredAction seqAction =
new SequenceDeferredAction(corbaSeq);
wsdlVisitor.getDeferredActions().add(fullyQualifiedName, seqAction);
}
corbaSeq.setRepositoryID(scopedName.toIDLRepositoryID());
return corbaSeq;
}