*/
private static void readAssign(final XMLStreamReader reader, final Configuration configuration,
final Executable executable, final ActionsContainer parent)
throws XMLStreamException, ModelException {
Assign assign = new Assign();
assign.setExpr(readAV(reader, ATTR_EXPR));
assign.setName(readAV(reader, ATTR_NAME));
if (assign.getName() != null && assign.getName().trim().length() > 0) {
// if 'non-standard' name attribute is defined, don't require location (as per the spec. 20130831)
assign.setLocation(readAV(reader, ATTR_LOCATION));
}
else {
assign.setLocation(readRequiredAV(reader, ELEM_ASSIGN, ATTR_LOCATION));
}
assign.setSrc(readAV(reader, ATTR_SRC));
assign.setPathResolver(configuration.pathResolver);
readNamespaces(configuration, assign);
assign.setParent(executable);
if (parent != null) {
parent.addAction(assign);
} else {
executable.addAction(assign);
}