// Check that this elementType really is a requires element
if( !elementType.getLocalPart().equals("requires") ){
return null;
}
RequiresExt requires = new RequiresExt();
requires.setElementType(elementType);
String intents = theElement.getAttribute("intents");
String[] intentArray = intents.split(" +");
for (int i=0; i < intentArray.length; i++){
String intentNameString = intentArray[i];
QName intentQName = getQNameValue( def, intentNameString);
requires.getIntents().add(intentQName);
}
return requires;
}