Class | EstraierPure::Document |
In: |
estraierpure.rb
|
Parent: | Object |
Abstraction of document.
Add an attribute. `name’ specifies the name of an attribute. `value’ specifies the value of the attribute. If it is `nil’, the attribute is removed. The return value is always `nil’.
Get the value of an attribute. `name’ specifies the name of an attribute. The return value is the value of the attribute or `nil’ if it does not exist.
Get an array of attribute names of a document object. The return value is an array object of attribute names.
Get the ID number. The return value is the ID number of the document object. If the object has never been registered, -1 is returned.