om.SaxAttributes methods

Methods of the om.SaxAttributes class.

Table 1. Class methods
Name Description
copy(
   attrs om.SaxAttributes )
  RETURNING result om.SaxAttributes
Clones an existing SAX attributes object.
create()
  RETURNING result om.SaxAttributes
Create a new SAX attributes object.
Table 2. Object methods
Name Description
addAttribute(
   name STRING,
   value STRING )
Appends a new attribute to the end of the list.
clear()
Clears the SAX attribute list.
getLength()
  RETURNING result INTEGER
Returns the number of attributes in the list.
getName(
   index INTEGER )
  RETURNING result STRING
Returns the name of an attribute by position.
getValue(
   name STRING )
  RETURNING result STRING
Returns the value of an attribute by name.
getValueByIndex(
   index INTEGER )
  RETURNING result STRING
Returns an attribute value by position.
removeAttribute(
   index INTEGER )
Delete an attribute by position.
setAttributes(
   attrs om.SaxAttributes )
Clears the list and copies the attributes passed.