IRISLIB database
Element Class Reference

The <class>XML.Element</class> class defines an XML element to be used by <class>XML.Writer</class>. More...

Inheritance diagram for Element:
Collaboration diagram for Element:

Public Member Functions

_.Library.Status AddAttribute (_.Library.String name, _.Library.String value, _.Library.String namespace, _.Library.String valueNamespace)
 The <class>XML.Element</class> class defines an XML element to be used by <class>XML.Writer</class>. More...
 
_.Library.Integer AttributeCount ()
 The <method>AttributeCount</method> returns the number of attributes.
 
_.Library.String GetAttribute (_.Library.Integer index, _.Library.String name, _.Library.String namespace, _.Library.String valueNamespace)
 The <method>GetAttribute</method> returns the specified attribute.
 
- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 

Public Attributes

 Local
 The <property>Local</property> property determines how the tag is. More...
 
 Namespace
 The <property>Namespace</property> property is set to the namespace. More...
 
 Tagname
 The tagname to be used for the element. More...
 

Private Attributes

 __Attributes
 Internal array of attribute name/value pairs. More...
 

Additional Inherited Members

- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Detailed Description

The <class>XML.Element</class> class defines an XML element to be used by <class>XML.Writer</class>.

The tag name, attributes and namespace may be defined. To get a new instance of <class>XML.Element</class> call New(tag) where tag is the tagname to be used for the element. The Tagname property may alternatively be set to the tag name.

Member Function Documentation

◆ AddAttribute()

_.Library.Status AddAttribute ( _.Library.String  name,
_.Library.String  value,
_.Library.String  namespace,
_.Library.String  valueNamespace 
)

The <class>XML.Element</class> class defines an XML element to be used by <class>XML.Writer</class>.

The tag name, attributes and namespace may be defined. To get a new instance of <class>XML.Element</class> call New(tag) where tag is the tagname to be used for the element. The Tagname property may alternatively be set to the tag name.

The <method>AddAttribute</method> method adds an attribute to this

element.
The name and value arguments are required.
The namespace is the optional namespace for the attribute name. If namespace is not specified, then the default namespace is used for the attribute name.
The valueNamespace argument is the namespace for the value. If valueNamespace is not specified (the most usual case), no namespace prefix is used for the value.
valueNamespace is used for attributes like xsi:type whose value comes from an XML schema namespace.

Member Data Documentation

◆ __Attributes

__Attributes
private

Internal array of attribute name/value pairs.

 

◆ Local

Local

The <property>Local</property> property determines how the tag is.

qualified for the case of elementFormDefault="unqualified".  

◆ Namespace

Namespace

The <property>Namespace</property> property is set to the namespace.

to be used for this tag. If <property>Namespace</property> is not set then <class>XML.Writer</class> will use the default namespace or no namespace if no default is set.  

◆ Tagname

Tagname

The tagname to be used for the element.