Object built-in object

Object XmlNamedNodeMap

The XmlNamedNodeMap object represents an unordered list of attributes

Inheritance

#lineWidth: 1.5 #font: Helvetica,sans-Serif #fontSize: 10 #leading: 1.6 #.this: fill=lightgray #.class: fill=white [<class>object|toString();toJSON()] [<this>XmlNamedNodeMap|operator[]|length|item();getNamedItem()] [object] <:- [XmlNamedNodeMap] XmlNamedNodeMap operator[] length item() getNamedItem() object toString() toJSON()

Operator

operator[]

Can use subscripts to directly access data

1
readonly XmlAttr XmlNamedNodeMap[];

Member attributes

length

Integer, returns the number of attributes in the attribute list

1
readonly Integer XmlNamedNodeMap.length;

Member function

item

Returns the attribute at the specified index number in the attribute list

1
XmlAttr XmlNamedNodeMap.item(Integer index);

Call parameters:

  • index: Integer, specify the index to be queried

Return result:

  • XmlAttr, Specify the attribute of the index number

getNamedItem

Query the attribute of the specified name

1
XmlAttr XmlNamedNodeMap.getNamedItem(String name);

Call parameters:

  • name: String, specify the name to be queried

Return result:

  • XmlAttr, Return the queried attributes

toString

Returns the string representation of the object, generally returns "[Native Object]", the object can be re-implemented according to its own characteristics

1
String XmlNamedNodeMap.toString();

Return result:

  • String, Returns the string representation of the object

toJSON

Returns the JSON format representation of the object, generally returns a collection of readable attributes defined by the object

1
Value XmlNamedNodeMap.toJSON(String key = "");

Call parameters:

  • key: String, unused

Return result:

  • Value, Returns a value containing JSON serializable