C# Class MyCompanyName.SampleExcelTemplatePlugIns.SampleGraphDataProvider

This is a sample implementation of a NodeXL Excel Template plug-in that imports custom data into the Excel Template.
This implementation of the IGraphDataProvider2 simulates a graph data provider that retrieves the friends of a user from some public API. The actual public API calls are omitted.
Inheritance: IGraphDataProvider2
Datei anzeigen Open project: 2014-sed-team3/term-project

Public Methods

Method Description
TryGetGraphDataAsTemporaryFile ( String &pathToTemporaryFile ) : System.Boolean

Protected Methods

Method Description
AppendEdgeXmlNode ( XmlNode oParentXmlNode, String sVertex1ID, String sVertex2ID ) : XmlNode
AppendGraphMLAttributeValue ( XmlNode oEdgeOrVertexXmlNode, String sAttributeID, String sAttributeValue ) : void
AppendVertexXmlNode ( XmlNode oParentXmlNode, String sVertexID ) : XmlNode
AppendXmlNode ( XmlNode oParentXmlNode, String sChildName ) : XmlNode
AppendXmlNode ( XmlNode oParentXmlNode, String sChildName, String sInnerText ) : XmlNode
DefineGraphMLAttribute ( XmlNode oGraphMLXmlNode, System.Boolean bForEdge, String sAttributeID, String sAttributeName, String sAttributeType, String sDefaultAttributeValue ) : void
SetXmlNodeAttributes ( XmlNode oXmlNode ) : void

Method Details

AppendEdgeXmlNode() protected method

protected AppendEdgeXmlNode ( XmlNode oParentXmlNode, String sVertex1ID, String sVertex2ID ) : XmlNode
oParentXmlNode System.Xml.XmlNode
sVertex1ID String
sVertex2ID String
return System.Xml.XmlNode

AppendGraphMLAttributeValue() protected method

protected AppendGraphMLAttributeValue ( XmlNode oEdgeOrVertexXmlNode, String sAttributeID, String sAttributeValue ) : void
oEdgeOrVertexXmlNode System.Xml.XmlNode
sAttributeID String
sAttributeValue String
return void

AppendVertexXmlNode() protected method

protected AppendVertexXmlNode ( XmlNode oParentXmlNode, String sVertexID ) : XmlNode
oParentXmlNode System.Xml.XmlNode
sVertexID String
return System.Xml.XmlNode

AppendXmlNode() protected method

protected AppendXmlNode ( XmlNode oParentXmlNode, String sChildName ) : XmlNode
oParentXmlNode System.Xml.XmlNode
sChildName String
return System.Xml.XmlNode

AppendXmlNode() protected method

protected AppendXmlNode ( XmlNode oParentXmlNode, String sChildName, String sInnerText ) : XmlNode
oParentXmlNode System.Xml.XmlNode
sChildName String
sInnerText String
return System.Xml.XmlNode

DefineGraphMLAttribute() protected method

protected DefineGraphMLAttribute ( XmlNode oGraphMLXmlNode, System.Boolean bForEdge, String sAttributeID, String sAttributeName, String sAttributeType, String sDefaultAttributeValue ) : void
oGraphMLXmlNode System.Xml.XmlNode
bForEdge System.Boolean
sAttributeID String
sAttributeName String
sAttributeType String
sDefaultAttributeValue String
return void

SetXmlNodeAttributes() protected method

protected SetXmlNodeAttributes ( XmlNode oXmlNode ) : void
oXmlNode System.Xml.XmlNode
return void

TryGetGraphDataAsTemporaryFile() public method

public TryGetGraphDataAsTemporaryFile ( String &pathToTemporaryFile ) : System.Boolean
pathToTemporaryFile String
return System.Boolean