Condividi tramite


IAttributeList.GetType Metodo

Definizione

Overload

GetType(Int32)
Obsoleti.

Restituisce il tipo di un attributo nell'elenco (per posizione).

GetType(String)
Obsoleti.

Restituisce il tipo di un attributo nell'elenco (per nome).

GetType(Int32)

Attenzione

deprecated

Restituisce il tipo di un attributo nell'elenco (per posizione).

[Android.Runtime.Register("getType", "(I)Ljava/lang/String;", "GetGetType_IHandler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public string? GetType (int i);
[<Android.Runtime.Register("getType", "(I)Ljava/lang/String;", "GetGetType_IHandler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member GetType : int -> string

Parametri

i
Int32

Indice dell'attributo nell'elenco (a partire da 0).

Restituisce

Tipo di attributo come stringa o Null se l'indice non è compreso nell'intervallo.

Attributi

Commenti

Restituisce il tipo di un attributo nell'elenco (per posizione).

Il tipo di attributo è una delle stringhe "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES" o "NOTATION" (sempre in lettere maiuscole).

Se il parser non ha letto una dichiarazione per l'attributo o se il parser non segnala i tipi di attributo, deve restituire il valore "CDATA" come indicato nel documento XML 1.0 Recommentation (clausola 3.3.3, "Normalizzazione attributo-valore").

Per un attributo enumerato che non è una notazione, il parser segnala il tipo come "NMTOKEN".

Documentazione java per org.xml.sax.AttributeList.getType(int).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Vedi anche

Si applica a

GetType(String)

Attenzione

deprecated

Restituisce il tipo di un attributo nell'elenco (per nome).

[Android.Runtime.Register("getType", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetType_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public string? GetType (string? name);
[<Android.Runtime.Register("getType", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetType_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member GetType : string -> string

Parametri

name
String

Nome dell'attributo.

Restituisce

Tipo di attributo come stringa o Null se non esiste alcun attributo di questo tipo.

Attributi

Commenti

Restituisce il tipo di un attributo nell'elenco (per nome).

Il valore restituito corrisponde al valore restituito per getType(int).

Se il nome dell'attributo ha un prefisso dello spazio dei nomi nel documento, l'applicazione deve includere il prefisso qui.

Documentazione java per org.xml.sax.AttributeList.getType(java.lang.String).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Vedi anche

Si applica a