}
return arrayType;
}
public Sequence getSequenceDefinition(Node node, Definition def) {
Sequence sequenceType = new Sequence();
// Store information about the sequence
NamedNodeMap sequenceAttributes = node.getAttributes();
for (int i = 0; i < sequenceAttributes.getLength(); ++i) {
if (sequenceAttributes.item(i).getNodeName().equals("name")) {
sequenceType.setName(sequenceAttributes.item(i).getNodeValue());
} else if (sequenceAttributes.item(i).getNodeName().equals("repositoryID")) {
sequenceType.setRepositoryID(sequenceAttributes.item(i).getNodeValue());
} else if (sequenceAttributes.item(i).getNodeName().equals("elemtype")) {
String elemType = sequenceAttributes.item(i).getNodeValue();
int seperatorIndex = elemType.indexOf(':');
String prefix = elemType.substring(0, seperatorIndex);
String localPart = elemType.substring(seperatorIndex + 1, elemType.length());
sequenceType.setElemtype(new QName(def.getNamespace(prefix), localPart, prefix));
} else if (sequenceAttributes.item(i).getNodeName().equals("bound")) {
sequenceType.setBound(Long.parseLong(sequenceAttributes.item(i).getNodeValue()));
}
}
return sequenceType;
}