Class: KmlAttribute

KmlAttribute(node, name)

new KmlAttribute(node, name)

This class represents abstraction for KmlAttribute. It is possible to test its existence, retrieve value and set value.
Parameters:
Name Type Description
node Node Node on which the attribute exists
name String Name of the attribute
Source:

Methods

exists() → {boolean}

It returns true if there exists attribute with given name.
Source:
Returns:
Type
boolean

save(value)

Value which should be set to the attribute.
Parameters:
Name Type Description
value String
Source:

value() → {String|null}

It returns value of the attribute. If the attribute doesn't exists it returns null.
Source:
Returns:
Type
String | null