ASN1C C# Runtime Library  7.7
Classes | Public Member Functions | List of all members
XmlAttributes Class Reference

Classes

class  XmlAttribute
 

Public Member Functions

virtual void Add (System.String Uri, System.String Lname, System.String Qname, System.String Type, System.String Value)
 
virtual void Clear ()
 
virtual System.String GetFullName (int index)
 
virtual int GetIndex (System.String Qname)
 
virtual int GetIndex (System.String Uri, System.String Lname)
 
virtual int GetLength ()
 
virtual System.String GetLocalName (int index)
 
virtual System.String GetQName (int index)
 
virtual System.String GetType (int index)
 
virtual System.String GetType (System.String Qname)
 
virtual System.String GetType (System.String Uri, System.String Lname)
 
virtual System.String GetURI (int index)
 
virtual System.String GetValue (int index)
 
virtual System.String GetValue (System.String Qname)
 
virtual System.String GetValue (System.String Uri, System.String Lname)
 
virtual void RemoveAttribute (int index)
 
virtual void RemoveAttribute (System.String indexName)
 
virtual void SetAttribute (int index, System.String Uri, System.String Lname, System.String Qname, System.String Type, System.String Value)
 
virtual void SetAttributes (XmlAttributes Source)
 
virtual void SetFullName (int index, System.String FullName)
 
virtual void SetLocalName (int index, System.String LocalName)
 
virtual void SetType (int index, System.String Type)
 
virtual void SetURI (int index, System.String URI)
 
virtual void SetValue (int index, System.String Value)
 
 XmlAttributes ()
 
 XmlAttributes (XmlAttributes arrayList)
 

Detailed Description

This class will manage all the parsing operations emulating the SAX parser behavior

Constructor & Destructor Documentation

◆ XmlAttributes() [1/2]

Builds a new instance of XmlAttributes.

◆ XmlAttributes() [2/2]

XmlAttributes ( XmlAttributes  arrayList)

Creates a new instance of XmlAttributes from an ArrayList of XmlAttribute class.

Parameters
arrayListAn ArraList of XmlAttribute class instances.
Returns
A new instance of XmlAttributes

Member Function Documentation

◆ Add()

virtual void Add ( System.String  Uri,
System.String  Lname,
System.String  Qname,
System.String  Type,
System.String  Value 
)
virtual

Adds a new attribute elment to the given XmlAttributes instance.

Parameters
UriThe Uri of the attribute to be added.
LnameThe Local name of the attribute to be added.
QnameThe Long(qualify) name of the attribute to be added.
TypeThe type of the attribute to be added.
ValueThe value of the attribute to be added.

◆ Clear()

virtual void Clear ( )
virtual

Clears the list of attributes in the given AttributesSupport instance.

◆ GetFullName()

virtual System.String GetFullName ( int  index)
virtual

Returns the qualified name of the attribute indicated by the given index.

Parameters
indexThe attribute index.
Returns
The qualified name or empty string if the index is out of bounds.

◆ GetIndex() [1/2]

virtual int GetIndex ( System.String  Qname)
virtual

Obtains the index of an attribute of the AttributeSupport from its qualified (long) name.

Parameters
QnameThe qualified name of the attribute to search.
Returns
An zero-based index of the attribute if it is found, otherwise it returns -1.

◆ GetIndex() [2/2]

virtual int GetIndex ( System.String  Uri,
System.String  Lname 
)
virtual

Obtains the index of an attribute of the AttributeSupport from its namespace URI and its localname.

Parameters
UriThe namespace URI of the attribute to search.
LnameThe local name of the attribute to search.
Returns
An zero-based index of the attribute if it is found, otherwise it returns -1.

◆ GetLength()

virtual int GetLength ( )
virtual

Returns the number of attributes saved in the XmlAttributes instance.

Returns
The number of elements in the given XmlAttributes instance.

◆ GetLocalName()

virtual System.String GetLocalName ( int  index)
virtual

Returns the local name of the attribute in the given XmlAttributes instance that indicates the given index.

Parameters
indexThe attribute index.
Returns
The local name of the attribute indicated by the index or null if the index is out of bounds.

◆ GetQName()

virtual System.String GetQName ( int  index)
virtual

Returns the qualified name of the attribute indicated by the given index. This is an alias for GetFullName.

Parameters
index
Returns
The qualified name or empty string if the index is out of bounds.

◆ GetType() [1/3]

virtual System.String GetType ( int  index)
virtual

Returns the type of the attribute in the given XmlAttributes instance that indicates the given index.

Parameters
indexThe attribute index.
Returns
The type of the attribute indicated by the index or null if the index is out of bounds.

◆ GetType() [2/3]

virtual System.String GetType ( System.String  Qname)
virtual

Returns the type of the Attribute that match with the given qualified name.

Parameters
QnameThe qualified name of the attribute to search.
Returns
The type of the attribute if it exist otherwise returns null.

◆ GetType() [3/3]

virtual System.String GetType ( System.String  Uri,
System.String  Lname 
)
virtual

Returns the type of the Attribute that match with the given namespace URI and local name.

Parameters
UriThe namespace URI of the attribute to search.
LnameThe local name of the attribute to search.
Returns
The type of the attribute if it exist otherwise returns null.

◆ GetURI()

virtual System.String GetURI ( int  index)
virtual

Returns the namespace URI of the attribute in the given XmlAttributes instance that indicates the given index.

Parameters
indexThe attribute index.
Returns
The namespace URI of the attribute indicated by the index or null if the index is out of bounds.

◆ GetValue() [1/3]

virtual System.String GetValue ( int  index)
virtual

Returns the value of the attribute in the given XmlAttributes instance that indicates the given index.

Parameters
indexThe attribute index.
Returns
The value of the attribute indicated by the index or null if the index is out of bounds.

◆ GetValue() [2/3]

virtual System.String GetValue ( System.String  Qname)
virtual

Returns the value of the Attribute that match with the given qualified name.

Parameters
QnameThe qualified name of the attribute to search.
Returns
The value of the attribute if it exist otherwise returns null.

◆ GetValue() [3/3]

virtual System.String GetValue ( System.String  Uri,
System.String  Lname 
)
virtual

Returns the value of the Attribute that match with the given namespace URI and local name.

Parameters
UriThe namespace URI of the attribute to search.
LnameThe local name of the attribute to search.
Returns
The value of the attribute if it exist otherwise returns null.

◆ RemoveAttribute() [1/2]

virtual void RemoveAttribute ( int  index)
virtual

This method eliminates the XmlAttribute instance at the specified index.

Parameters
indexThe index of the attribute.

◆ RemoveAttribute() [2/2]

virtual void RemoveAttribute ( System.String  indexName)
virtual

This method eliminates the XmlAttribute instance in the specified index.

Parameters
indexNameThe index name of the attribute.

◆ SetAttribute()

virtual void SetAttribute ( int  index,
System.String  Uri,
System.String  Lname,
System.String  Qname,
System.String  Type,
System.String  Value 
)
virtual

Replaces an XmlAttribute in the given XmlAttributes instance.

Parameters
indexThe index of the attribute.
UriThe namespace URI of the new XmlAttribute.
LnameThe local name of the new XmlAttribute.
QnameThe namespace URI of the new XmlAttribute.
TypeThe type of the new XmlAttribute.
ValueThe value of the new XmlAttribute.

◆ SetAttributes()

virtual void SetAttributes ( XmlAttributes  Source)
virtual

Replaces all the list of XmlAttribute of the given XmlAttributes instance.

Parameters
SourceThe source XmlAttributes instance.

◆ SetFullName()

virtual void SetFullName ( int  index,
System.String  FullName 
)
virtual

Modifies the qualified name of the attribute in the given XmlAttributes instance.

Parameters
indexThe attribute index.
FullNameThe new qualified name for the attribute.

◆ SetLocalName()

virtual void SetLocalName ( int  index,
System.String  LocalName 
)
virtual

Modifies the local name of the attribute in the given XmlAttributes instance.

Parameters
indexThe attribute index.
LocalNameThe new Local name for the attribute.

◆ SetType()

virtual void SetType ( int  index,
System.String  Type 
)
virtual

Modifies the type of the attribute in the given XmlAttributes instance.

Parameters
indexThe attribute index.
TypeThe new type for the attribute.

◆ SetURI()

virtual void SetURI ( int  index,
System.String  URI 
)
virtual

Modifies the namespace URI of the attribute in the given XmlAttributes instance.

Parameters
indexThe attribute index.
URIThe new namespace URI for the attribute.

◆ SetValue()

virtual void SetValue ( int  index,
System.String  Value 
)
virtual

Modifies the value of the attribute in the given XmlAttributes instance.

Parameters
indexThe attribute index.
ValueThe new value for the attribute.