Class Entry
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.kgml.Entry
public class Entry extends Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddComponent(IdRef component)NodeaddGraphNode(Graph graph)voidaddReaction(KeggId reaction)Collection<IdRef>getComponents()static Collection<Entry>getEntryElementsFromGraphNodes(de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.kgml.KgmlIdGenerator idGenerator, List<Node> nodes, Collection<Gml2PathwayWarningInformation> warnings, Collection<Gml2PathwayErrorInformation> errors, HashMap<Entry,Node> entry2graphNode)static EntrygetEntryFromKgmlEntryElement(Collection<IdRef> mapLinksWhichNeedToBeUpdated, Collection<IdRef> componentsWhichNeedToBeUpdated, org.jdom2.Element entryElement, String sourcePathwayId)GraphicsgetGraphics()IdgetId()org.jdom2.ElementgetKgmlEntryElement(boolean addSourcePathwayInformation)UrlgetLink()IdRefgetMapRef()KeggIdgetName()Collection<KeggId>getReactions()NodegetSourceGraphNode()In case this entry has been created from a Graph node, the souce graph node may be retrieved with this function.StringgetSourcePathwayKeggId()EntryTypegetType()StringgetVisibleName()booleanhasCompoundName()booleanhasGlycanName()booleanisPartOfGroup()voidremoveReaction(Reaction r)voidsetGraphics(Graphics graphics)voidsetIsPartOfGroup(boolean partOfGroup)voidsetLink(String url)voidsetMapRef(IdRef map)voidsetSourcePathwayKeggId(String id)voidsetType(EntryType et)StringtoString()
-
Constructor Details
-
Entry
public Entry(Id id, KeggId name, EntryType type, Url link, IdRef map, Collection<KeggId> reactions, Collection<IdRef> components, Graphics graphics)
-
-
Method Details
-
setSourcePathwayKeggId
-
getSourcePathwayKeggId
-
hasGlycanName
public boolean hasGlycanName() -
hasCompoundName
public boolean hasCompoundName() -
getType
-
getName
-
getId
-
getMapRef
-
setMapRef
-
getGraphics
-
setGraphics
-
getEntryFromKgmlEntryElement
public static Entry getEntryFromKgmlEntryElement(Collection<IdRef> mapLinksWhichNeedToBeUpdated, Collection<IdRef> componentsWhichNeedToBeUpdated, org.jdom2.Element entryElement, String sourcePathwayId) -
getReactions
-
addReaction
-
getComponents
-
addComponent
-
getLink
-
getKgmlEntryElement
public org.jdom2.Element getKgmlEntryElement(boolean addSourcePathwayInformation) -
addGraphNode
-
toString
-
getEntryElementsFromGraphNodes
public static Collection<Entry> getEntryElementsFromGraphNodes(de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.kgml.KgmlIdGenerator idGenerator, List<Node> nodes, Collection<Gml2PathwayWarningInformation> warnings, Collection<Gml2PathwayErrorInformation> errors, HashMap<Entry,Node> entry2graphNode) -
getSourceGraphNode
In case this entry has been created from a Graph node, the souce graph node may be retrieved with this function. More than one Entry may be created from a single Graph node.- Returns:
- Souce Graph Node (if Entry is created from a Graph)
-
setIsPartOfGroup
public void setIsPartOfGroup(boolean partOfGroup) -
isPartOfGroup
public boolean isPartOfGroup() -
getVisibleName
-
setLink
-
setType
-
removeReaction
-