C# Class Smrf.NodeXL.Adapters.GraphMLAttribute

Represents a GraphML vertex or edge attribute parsed from a GraphML file.
This class is used by GraphMLGraphAdapter while it is parsing a GraphML file.

In GraphML, a "key" XML node defines an edge or vertex attribute, which GraphML calls a "Graph-ML attribute," and a "data" XML node specifies the GraphML-attribute's value for a specific vertex or edge. The constructor parses the "key" XML node, and the GetAttributeValue parses a "data" XML node. provides a default value for the GraphML-attribute, if one was specified.

NodeXL doesn't support the for="graph" or for="all" attribute values allowed by the GraphML specification. The caller should filter out such "key" XML nodes before using this class to parse them.

Inheritance: Object
Mostrar archivo Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_bIsForVertex System.Boolean
m_eType AttributeType
m_oDefaultAttributeValue Object
m_sID String
m_sName String

Public Methods

Method Description
GetAttributeValue ( XmlNode dataXmlNode ) : Object
GraphMLAttribute ( XmlNode keyXmlNode, XmlNamespaceManager xmlNamespaceManager, String graphMLPrefix ) : System

Initializes a new instance of the GraphMLAttribute class.

TryGetDefaultAttributeValue ( Object &defaultAttributeValue ) : System.Boolean

Protected Methods

Method Description
ConvertAttributeValue ( String sAttributeValue ) : Object
ParseKeyXmlNode ( XmlNode oKeyXmlNode, XmlNamespaceManager oXmlNamespaceManager, String sGraphMLPrefix ) : void

Private Methods

Method Description
AssertValid ( ) : void

Method Details

ConvertAttributeValue() protected method

protected ConvertAttributeValue ( String sAttributeValue ) : Object
sAttributeValue String
return Object

GetAttributeValue() public method

public GetAttributeValue ( XmlNode dataXmlNode ) : Object
dataXmlNode System.Xml.XmlNode
return Object

GraphMLAttribute() public method

Initializes a new instance of the GraphMLAttribute class.
public GraphMLAttribute ( XmlNode keyXmlNode, XmlNamespaceManager xmlNamespaceManager, String graphMLPrefix ) : System
keyXmlNode System.Xml.XmlNode /// A "key" XML node representing a Graph-ML attribute. ///
xmlNamespaceManager System.Xml.XmlNamespaceManager /// XML namespace manager. ///
graphMLPrefix String /// The prefix specified for the GraphML namespace when was created. ///
return System

ParseKeyXmlNode() protected method

protected ParseKeyXmlNode ( XmlNode oKeyXmlNode, XmlNamespaceManager oXmlNamespaceManager, String sGraphMLPrefix ) : void
oKeyXmlNode System.Xml.XmlNode
oXmlNamespaceManager System.Xml.XmlNamespaceManager
sGraphMLPrefix String
return void

TryGetDefaultAttributeValue() public method

public TryGetDefaultAttributeValue ( Object &defaultAttributeValue ) : System.Boolean
defaultAttributeValue Object
return System.Boolean

Property Details

m_bIsForVertex protected_oe property

protected Boolean,System m_bIsForVertex
return System.Boolean

m_eType protected_oe property

protected AttributeType m_eType
return AttributeType

m_oDefaultAttributeValue protected_oe property

protected Object m_oDefaultAttributeValue
return Object

m_sID protected_oe property

protected String m_sID
return String

m_sName protected_oe property

protected String m_sName
return String