Skip to content
Snippets Groups Projects
Commit 3a346de2 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

regulation contain information about containedInPathway

parent b16f1ab5
No related branches found
No related tags found
1 merge request!44Resolve "semantic zoom"
......@@ -9,16 +9,27 @@ package lcsb.mapviewer.reactome.model;
*
*/
public class ReactomeRegulation extends ReactomeDatabaseObject {
/**
* Event param in reactome model. More information can be found <a
* href="http://wiki.reactome.org/index.php/Glossary_Data_Model">here</a>.
* Event param in reactome model. More information can be found
* <a href="http://wiki.reactome.org/index.php/Glossary_Data_Model">here</a>.
*/
private ReactomeEvent regulatedEntity;
private ReactomeEvent regulatedEntity;
/**
* DatabaseObject param in reactome model. More information can be found <a
* href="http://wiki.reactome.org/index.php/Glossary_Data_Model">here</a>.
* DatabaseObject param in reactome model. More information can be found
* <a href="http://wiki.reactome.org/index.php/Glossary_Data_Model">here</a>.
*/
private ReactomeDatabaseObject regulator;
private ReactomeDatabaseObject regulator;
/**
* If a reaction is regulated in different ways in different pathway contexts,
* the containedInPathway allows curator to specify this. More information can
* be found <a href=
* "http://wiki.reactome.org/index.php/Glossary_Data_Model#Regulation">here
* </a>.
*/
private ReactomePathway containedInPathway;
/**
* @return the regulatedEntity
......@@ -54,4 +65,21 @@ public class ReactomeRegulation extends ReactomeDatabaseObject {
this.regulator = regulator;
}
/**
* @return the containedInPathway
* @see #containedInPathway
*/
public ReactomePathway getContainedInPathway() {
return containedInPathway;
}
/**
* @param containedInPathway
* the containedInPathway to set
* @see #containedInPathway
*/
public void setContainedInPathway(ReactomePathway containedInPathway) {
this.containedInPathway = containedInPathway;
}
}
......@@ -26,6 +26,8 @@ public class RegulationColumnParser extends ColumnParser<ReactomeRegulation> {
object.setRegulatedEntity(geteParser().parseObject(node));
} else if (node.getNodeName().equalsIgnoreCase("regulator")) {
object.setRegulator(getDoParser().parseObject(node));
} else if (node.getNodeName().equalsIgnoreCase("containedInPathway")) {
object.setRegulator(getpParser().parseObject(node));
} else {
getParentParser().updateColumnFromNode(object, node);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment