return restriction;
}
private Join parseJoin(Node node) throws TableEngineException {
Join join = new Join();
NamedNodeMap attributes = node.getAttributes();
for(int i=0; i<attributes.getLength(); i++) {
Node attributeNode = attributes.item(i);
if(attributeNode.getNodeType() == Node.ATTRIBUTE_NODE) {
String name = attributeNode.getNodeName();
if("name".equals(name)) {
join.setName(attributeNode.getNodeValue());
} else if("alias".equals(name)) {
join.setAlias(attributeNode.getNodeValue());
} else if("type".equals(name)) {
join.setType(EnumUtility.valueOf(Join.Type.class, attributeNode.getNodeValue()));
} else if("messageKey".equals(name)) {
join.setMessageKey(attributeNode.getNodeValue());
}
}
}
return join;