blob: 999e9e6c8588cf7e158e95c8c48efc36ae9b7c45 [file] [log] [blame]
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Interface IAttributes
| Apache Lucene.NET 4.8.0-beta00010 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Interface IAttributes
| Apache Lucene.NET 4.8.0-beta00010 Documentation ">
<meta name="generator" content="docfx 2.56.0.0">
<link rel="shortcut icon" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/favicon.ico">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.css">
<meta property="docfx:navrel" content="toc.html">
<meta property="docfx:tocrel" content="benchmark/toc.html">
<meta property="docfx:rel" content="https://lucenenet.apache.org/docs/4.8.0-beta00009/">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img id="logo" class="svg" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/lucene-net-color.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search">
<ul class="level0 breadcrumb">
<li>
<a href="https://lucenenet.apache.org/docs/4.8.0-beta00009/">API</a>
<span id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</span>
</li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list"></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Sax.IAttributes">
<h1 id="Sax_IAttributes" data-uid="Sax.IAttributes" class="text-break">Interface IAttributes
</h1>
<div class="markdown level0 summary"><p>Interface for a list of XML attributes.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="Sax.html">Sax</a></h6>
<h6><strong>Assembly</strong>: Lucene.Net.Benchmark.dll</h6>
<h5 id="Sax_IAttributes_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public interface IAttributes</code></pre>
</div>
<h5 id="Sax_IAttributes_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p><em>This module, both source code and documentation, is in the
Public Domain, and comes with<strong> NO WARRANTY</strong>.</em>
See<a href="http://www.saxproject.org">http://www.saxproject.org</a>
for further information.
<p>
This interface allows access to a list of attributes in
three different ways:
<ol><li>by attribute index;</li><li>by Namespace-qualified name; or</li><li>by qualified (prefixed) name.</li></ol>
<p>
The list will not contain attributes that were declared</p>
<h1 id="implied-but-not-specified-in-the-start-tag--it-will-also-not">IMPLIED but not specified in the start tag. It will also not</h1>
<p>contain attributes used as Namespace declarations(xmlns*) unless
the <a href="http://xml.org/sax/features/namespace-prefixes">http://xml.org/sax/features/namespace-prefixes</a>
feature is set to <var>true</var> (it is <var>false</var> by
default).
Because SAX2 conforms to the original &quot;Namespaces in XML&quot;
recommendation, it normally does not
give namespace declaration attributes a namespace URI.
<p>
Some SAX2 parsers may support using an optional feature flag
(<a href="http://xml.org/sax/features/xmlns-uris">http://xml.org/sax/features/xmlns-uris</a>) to request
that those attributes be given URIs, conforming to a later
backwards-incompatible revision of that recommendation. (The
attribute&apos;s &quot;local name&quot; will be the prefix, or &quot;xmlns&quot; when
defining a default element namespace.) For portability, handler
code should always resolve that conflict, rather than requiring
parsers that can change the setting of that feature flag.
If the namespace-prefixes feature (see above) is
<var>false</var>, access by qualified name may not be available; if
the<pre><code>http://xml.org/sax/features/namespaces</code></pre> feature is
<var>false</var>, access by Namespace-qualified names may not be
available.
<p>This interface replaces the now-deprecated SAX1 { @link
org.xml.sax.AttributeList AttributeList } interface, which does not
contain Namespace support.In addition to Namespace support, it
adds the<var> getIndex</var> methods (below).
<p>The order of attributes in the list is unspecified, and will
vary from implementation to implementation.</p>
</div>
<h3 id="properties">Properties
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_Length.md&amp;value=---%0Auid%3A%20Sax.IAttributes.Length%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L79">View Source</a>
</span>
<a id="Sax_IAttributes_Length_" data-uid="Sax.IAttributes.Length*"></a>
<h4 id="Sax_IAttributes_Length" data-uid="Sax.IAttributes.Length">Length</h4>
<div class="markdown level1 summary"><p>Return the number of attributes in the list.
<p>
Once you know the number of attributes, you can iterate
through the list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">int Length { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of attributes in the list.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="Sax_IAttributes_Length_seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetURI_System_Int32_">GetURI(Int32)</a></div>
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetLocalName_System_Int32_">GetLocalName(Int32)</a></div>
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetQName_System_Int32_">GetQName(Int32)</a></div>
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetType_System_Int32_">GetType(Int32)</a></div>
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetValue_System_Int32_">GetValue(Int32)</a></div>
</div>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetIndex_System_String_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetIndex(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L168">View Source</a>
</span>
<a id="Sax_IAttributes_GetIndex_" data-uid="Sax.IAttributes.GetIndex*"></a>
<h4 id="Sax_IAttributes_GetIndex_System_String_" data-uid="Sax.IAttributes.GetIndex(System.String)">GetIndex(String)</h4>
<div class="markdown level1 summary"><p>Look up the index of an attribute by XML qualified (prefixed) name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">int GetIndex(string qName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">qName</span></td>
<td><p>The qualified (prefixed) name.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The index of the attribute, or -1 if it does not
appear in the list.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetIndex_System_String_System_String_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetIndex(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L160">View Source</a>
</span>
<a id="Sax_IAttributes_GetIndex_" data-uid="Sax.IAttributes.GetIndex*"></a>
<h4 id="Sax_IAttributes_GetIndex_System_String_System_String_" data-uid="Sax.IAttributes.GetIndex(System.String,System.String)">GetIndex(String, String)</h4>
<div class="markdown level1 summary"><p>Look up the index of an attribute by Namespace name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">int GetIndex(string uri, string localName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The Namespace URI, or the empty string if
the name has no Namespace URI.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The attribute&apos;s local name.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The index of the attribute, or -1 if it does not
appear in the list.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetLocalName_System_Int32_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetLocalName(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L99">View Source</a>
</span>
<a id="Sax_IAttributes_GetLocalName_" data-uid="Sax.IAttributes.GetLocalName*"></a>
<h4 id="Sax_IAttributes_GetLocalName_System_Int32_" data-uid="Sax.IAttributes.GetLocalName(System.Int32)">GetLocalName(Int32)</h4>
<div class="markdown level1 summary"><p>Look up an attribute&apos;s local name by index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string GetLocalName(int index)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">index</span></td>
<td><p>The attribute index (zero-based).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>The local name, or the empty string if Namespace
processing is not being performed, or null
if the index is out of range.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="Sax_IAttributes_GetLocalName_System_Int32__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_Length">Length</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetQName_System_Int32_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetQName(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L109">View Source</a>
</span>
<a id="Sax_IAttributes_GetQName_" data-uid="Sax.IAttributes.GetQName*"></a>
<h4 id="Sax_IAttributes_GetQName_System_Int32_" data-uid="Sax.IAttributes.GetQName(System.Int32)">GetQName(Int32)</h4>
<div class="markdown level1 summary"><p>Look up an attribute&apos;s XML qualified (prefixed) name by index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string GetQName(int index)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">index</span></td>
<td><p>The attribute index (zero-based).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>The XML qualified name, or the empty string
if none is available, or null if the index
is out of range.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="Sax_IAttributes_GetQName_System_Int32__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_Length">Length</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetType_System_Int32_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetType(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L131">View Source</a>
</span>
<a id="Sax_IAttributes_GetType_" data-uid="Sax.IAttributes.GetType*"></a>
<h4 id="Sax_IAttributes_GetType_System_Int32_" data-uid="Sax.IAttributes.GetType(System.Int32)">GetType(Int32)</h4>
<div class="markdown level1 summary"><p>Look up an attribute&apos;s type by index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string GetType(int index)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">index</span></td>
<td><p>The attribute index (zero-based).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>The attribute&apos;s type as a string, or null if the
index is out of range.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="Sax_IAttributes_GetType_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The attribute type is one of the strings &quot;CDATA&quot;, &quot;ID&quot;,
&quot;IDREF&quot;, &quot;IDREFS&quot;, &quot;NMTOKEN&quot;, &quot;NMTOKENS&quot;, &quot;ENTITY&quot;, &quot;ENTITIES&quot;,
or &quot;NOTATION&quot; (always in upper case).
<p>
If the parser has not read a declaration for the attribute,
or if the parser does not report attribute types, then it must
return the value &quot;CDATA&quot; as stated in the XML 1.0 Recommendation
(clause 3.3.3, &quot;Attribute-Value Normalization&quot;).
<p>
For an enumerated attribute that is not a notation, the
parser will report the type as &quot;NMTOKEN&quot;.</p>
</div>
<h5 id="Sax_IAttributes_GetType_System_Int32__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_Length">Length</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetType_System_String_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetType(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L194">View Source</a>
</span>
<a id="Sax_IAttributes_GetType_" data-uid="Sax.IAttributes.GetType*"></a>
<h4 id="Sax_IAttributes_GetType_System_String_" data-uid="Sax.IAttributes.GetType(System.String)">GetType(String)</h4>
<div class="markdown level1 summary"><p>Look up an attribute&apos;s type by XML qualified (prefixed) name.
<p>
See <a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetType_System_Int32_">GetType(Int32)</a> for a description
of the possible types.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string GetType(string qName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">qName</span></td>
<td><p>The XML qualified name.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>The attribute type as a string, or null if the
attribute is not in the list or if qualified names
are not available.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetType_System_String_System_String_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetType(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L182">View Source</a>
</span>
<a id="Sax_IAttributes_GetType_" data-uid="Sax.IAttributes.GetType*"></a>
<h4 id="Sax_IAttributes_GetType_System_String_System_String_" data-uid="Sax.IAttributes.GetType(System.String,System.String)">GetType(String, String)</h4>
<div class="markdown level1 summary"><p>Look up an attribute&apos;s type by Namespace name.
<p>
See <a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetType_System_Int32_">GetType(Int32)</a> for a description
of the possible types.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string GetType(string uri, string localName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The Namespace URI, or the empty String if the
name has no Namespace URI.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The local name of the attribute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>The attribute type as a string, or null if the
attribute is not in the list or if Namespace
processing is not being performed.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetURI_System_Int32_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetURI(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L89">View Source</a>
</span>
<a id="Sax_IAttributes_GetURI_" data-uid="Sax.IAttributes.GetURI*"></a>
<h4 id="Sax_IAttributes_GetURI_System_Int32_" data-uid="Sax.IAttributes.GetURI(System.Int32)">GetURI(Int32)</h4>
<div class="markdown level1 summary"><p>Look up an attribute&apos;s Namespace URI by index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string GetURI(int index)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">index</span></td>
<td><p>The attribute index (zero-based).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>The Namespace URI, or the empty string if none
is available, or null if the index is out of
range.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="Sax_IAttributes_GetURI_System_Int32__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetURI_System_Int32_">GetURI(Int32)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetValue_System_Int32_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetValue(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L146">View Source</a>
</span>
<a id="Sax_IAttributes_GetValue_" data-uid="Sax.IAttributes.GetValue*"></a>
<h4 id="Sax_IAttributes_GetValue_System_Int32_" data-uid="Sax.IAttributes.GetValue(System.Int32)">GetValue(Int32)</h4>
<div class="markdown level1 summary"><p>Look up an attribute&apos;s value by index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string GetValue(int index)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">index</span></td>
<td><p>The attribute index (zero-based).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>The attribute&apos;s value as a string, or null if the
index is out of range.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="Sax_IAttributes_GetValue_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the attribute value is a list of tokens (IDREFS,
ENTITIES, or NMTOKENS), the tokens will be concatenated
into a single string with each token separated by a
single space.</p>
</div>
<h5 id="Sax_IAttributes_GetValue_System_Int32__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_Length">Length</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetValue_System_String_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetValue(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L217">View Source</a>
</span>
<a id="Sax_IAttributes_GetValue_" data-uid="Sax.IAttributes.GetValue*"></a>
<h4 id="Sax_IAttributes_GetValue_System_String_" data-uid="Sax.IAttributes.GetValue(System.String)">GetValue(String)</h4>
<div class="markdown level1 summary"><p>Look up an attribute&apos;s value by XML qualified (prefixed) name.
<p>
See <a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetValue_System_Int32_">GetValue(Int32)</a> for a description
of the possible values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string GetValue(string qName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">qName</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes_GetValue_System_String_System_String_.md&amp;value=---%0Auid%3A%20Sax.IAttributes.GetValue(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L207">View Source</a>
</span>
<a id="Sax_IAttributes_GetValue_" data-uid="Sax.IAttributes.GetValue*"></a>
<h4 id="Sax_IAttributes_GetValue_System_String_System_String_" data-uid="Sax.IAttributes.GetValue(System.String,System.String)">GetValue(String, String)</h4>
<div class="markdown level1 summary"><p>Look up an attribute&apos;s value by Namespace name.
<p>
See <a class="xref" href="Sax.IAttributes.html#Sax_IAttributes_GetValue_System_Int32_">GetValue(Int32)</a> for a description
of the possible values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string GetValue(string uri, string localName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The Namespace URI, or the empty String if the
name has no Namespace URI.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The local name of the attribute.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>The attribute value as a string, or null if the
attribute is not in the list.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="seealso">See Also</h3>
<div class="seealso">
<div><a class="xref" href="Sax.Helpers.Attributes.html">Attributes</a></div>
<div><a class="xref" href="Sax.Ext.IDeclHandler.html">IDeclHandler</a></div>
</div>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Sax_IAttributes.md&amp;value=---%0Auid%3A%20Sax.IAttributes%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/apache/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net.Benchmark/Support/Sax/Attributes.cs/#L61" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
Copyright © 2020 Licensed to the Apache Software Foundation (ASF)
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.js"></script>
</body>
</html>