}
do {
XmlObject xmlObject = cursor.getObject();
if (ProfileSelectType.type.isAssignableFrom(xmlObject.schemaType())) {
ProfileSelectType nodeData = (ProfileSelectType)xmlObject;
SelectProfileSelector selector = new SelectProfileSelectorImpl(this, nodeData.getIdref(), nodeData.getSelected());
result.add(selector);
} else if (ProfileRefineValueType.type.isAssignableFrom(xmlObject.schemaType())) {
ProfileRefineValueType nodeData = (ProfileRefineValueType)xmlObject;
RefineValueProfileSelector selector = new RefineValueProfileSelectorImpl(this, nodeData.getIdref());
selector.setSelector(nodeData.getSelector());
selector.setOperator(ValueImpl.mapOperator(nodeData.getOperator()));
result.add(selector);
} else if (ProfileRefineRuleType.type.isAssignableFrom(xmlObject.schemaType())) {
ProfileRefineRuleType nodeData = (ProfileRefineRuleType)xmlObject;
RefineRuleProfileSelector selector = new RefineRuleProfileSelectorImpl(this, nodeData.getIdref());
selector.setWeight(nodeData.getWeight());
selector.setSelector(nodeData.getSelector());
selector.setSeverity(RuleImpl.mapSeverity(nodeData.getSeverity()));
selector.setRole(RuleImpl.mapRole(nodeData.getRole()));
result.add(selector);
} else if (ProfileSetValueType.type.isAssignableFrom(xmlObject.schemaType())) {
ProfileSetValueType nodeData = (ProfileSetValueType)xmlObject;
SetValueProfileSelector selector = new SetValueProfileSelectorImpl(this, nodeData.getIdref(), nodeData.getStringValue());
result.add(selector);
} else if (ProfileSetComplexValueType.type.isAssignableFrom(xmlObject.schemaType())) {
ProfileSetComplexValueType nodeData = (ProfileSetComplexValueType)xmlObject;
SetComplexValueProfileSelector selector = new SetComplexValueProfileSelectorImpl(this, nodeData.getIdref(), nodeData.getItemList());
result.add(selector);
}
} while (cursor.toNextSibling());
return result;
}