TypeInfoProvider.IsIdAttribute(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true
if the specified attribute is determined
to be ID.
[Android.Runtime.Register("isIdAttribute", "(I)Z", "GetIsIdAttribute_IHandler")]
public abstract bool IsIdAttribute (int index);
[<Android.Runtime.Register("isIdAttribute", "(I)Z", "GetIsIdAttribute_IHandler")>]
abstract member IsIdAttribute : int -> bool
Parameters
- index
- Int32
The index of the attribute. The same index for
the org.xml.sax.Attributes
object passed to the
startElement
callback.
Returns
true if the type of the specified attribute is ID.
- Attributes
Exceptions
If the index is invalid.
If this method is called from other IContentHandler methods.
Remarks
Returns true
if the specified attribute is determined to be ID.
Exactly how an attribute is "determined to be ID" is up to the schema language. In case of W3C XML Schema, this means that the actual type of the attribute is the built-in ID type or its derived type.
A javax.xml.parsers.DocumentBuilder
uses this information to properly implement org.w3c.dom.Attr#isId()
.
The method may only be called by the startElement event of the org.xml.sax.ContentHandler
that the application sets to the ValidatorHandler
.
Java documentation for javax.xml.validation.TypeInfoProvider.isIdAttribute(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.