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