Skip to content

GeoObjectNode

Namespace: ThinkGeo.Core

This class represent the model of an object.

public class GeoObjectNode

Inheritance ObjectGeoObjectNode

Properties

Name

Gets or sets the Name of the node.

public string Name { get; set; }

Property Value

String

Parent

Gets or sets the Parent of the node.

public GeoObjectNode Parent { get; set; }

Property Value

GeoObjectNode

Children

Gets the Children of the node.

public Collection<GeoObjectNode> Children { get; private set; }

Property Value

Collection<GeoObjectNode>

Attributes

Gets the Attribute of the node.

public Dictionary<string, string> Attributes { get; private set; }

Property Value

Dictionary<String, String>

Value

Gets or sets the Value of the node.

public string Value { get; set; }

Property Value

String

IsDefaultValue

Gets or sets the IsDefaultValue of the node.

public bool IsDefaultValue { get; set; }

Property Value

Boolean

Constructors

GeoObjectNode()

Creates an instance of GeoObjectNode.

public GeoObjectNode()

GeoObjectNode(String)

Creates an instance of GeoObjectNode with a name.

public GeoObjectNode(string name)

Parameters

name String
The name of this node.

Methods

SetAttribute(String, String)

internal void SetAttribute(string attributeName, string attributeValue)

Parameters

attributeName String

attributeValue String

GetAttribute(String)

internal string GetAttribute(string attributeName)

Parameters

attributeName String

Returns

String

RemoveAttribute(String)

internal void RemoveAttribute(string attributeName)

Parameters

attributeName String

ToString()

Returns a string that contains the name, children count and attribute count of this node.

public string ToString()

Returns

String
The string that contains the name, children count and attribute count of this node.