Last updated

API / geotoolkit / report / dom / NamedItemMap / NamedItemMap

Class: NamedItemMap

dom.NamedItemMap.NamedItemMap

The NamedItemMap interface represents a collection of Attribute objects.

Table of contents

Constructors
Accessors
Methods

Contents

Constructors

new NamedItemMap()

new NamedItemMap()

Accessors

length

get length(): number

Returns the amount of objects in the map.

Name

module:geotoolkit/report/dom/NamedItemMap~NamedItemMap#length

Returns

number

Methods

getNamedItem

getNamedItem(name): INamedItem

Returns a Attribute, corresponding to the given name.

Parameters

Name Type Description
namestringof named item

Returns

INamedItem


item

item(index): INamedItem

Returns the Attribute at the given index, or null if the index is higher or equal to the number of nodes.

Parameters

Name Type Description
indexnumberof named item

Returns

INamedItem


removeNamedItem

removeNamedItem(name): NamedItemMap

Removes the Attribute identified by the given map.

Parameters

Name Type Description
namestringnamed item name to remove

Returns

NamedItemMap


setNamedItem

setNamedItem(namedItem): NamedItemMap

Replaces, or adds, the Attribute identified in the map by the given name.

Parameters

Name Type Description
namedItemINamedItemnamed item

Returns

NamedItemMap