Skip to content
Snippets Groups Projects
Commit 5542bcbe authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added StructuredDataNode support

parent bbfd5630
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ import javax.sql.DataSource; ...@@ -16,6 +16,7 @@ import javax.sql.DataSource;
import net.ivoa.xml.vospace.v2.ContainerNode; import net.ivoa.xml.vospace.v2.ContainerNode;
import net.ivoa.xml.vospace.v2.DataNode; import net.ivoa.xml.vospace.v2.DataNode;
import net.ivoa.xml.vospace.v2.Property; import net.ivoa.xml.vospace.v2.Property;
import net.ivoa.xml.vospace.v2.StructuredDataNode;
import net.ivoa.xml.vospace.v2.View; import net.ivoa.xml.vospace.v2.View;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
...@@ -211,6 +212,9 @@ public class NodeDAO { ...@@ -211,6 +212,9 @@ public class NodeDAO {
case "data": case "data":
node = new DataNode(); node = new DataNode();
break; break;
case "structured":
node = new StructuredDataNode();
break;
default: default:
throw new UnsupportedOperationException("Node type " + type + " not supported yet"); throw new UnsupportedOperationException("Node type " + type + " not supported yet");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment