uTools-Manuals/docs/java/javax/print/attribute/PrintServiceAttributeSet.html

181 lines
11 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
javax.print.attribute
</div>
<h2 class="title" title="Interface PrintServiceAttributeSet">Interface PrintServiceAttributeSet</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Superinterfaces:
</dt>
<dd>
<span><a href="../../../javax/print/attribute/AttributeSet.html" title="javax.print.attribute中的接口">AttributeSet</a></span>
</dd>
</dl>
<dl>
<dt>
所有已知实现类:
</dt>
<dd>
<span><a href="../../../javax/print/attribute/HashPrintServiceAttributeSet.html" title="javax.print.attribute中的类">HashPrintServiceAttributeSet</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">PrintServiceAttributeSet</span>
extends <a href="../../../javax/print/attribute/AttributeSet.html" title="interface in javax.print.attribute">AttributeSet</a></pre>
<div class="block">
<span>接口PrintServiceAttributeSet指定一组打印作业属性的接口即打印实现接口<code>PrintServiceAttribute</code><a href="../../../javax/print/attribute/PrintServiceAttribute.html" title="javax.print.attribute中的接口">属性</a></span>
<span>在打印服务API中打印服务实例使用PrintServiceAttributeSet来报告打印服务的状态。</span>
<p> <span>PrintServiceAttributeSet只是一个<a href="../../../javax/print/attribute/AttributeSet.html" title="javax.print.attribute中的接口"><code>AttributeSet</code></a> 其构造函数和变异操作保证一个额外的不变量即PrintServiceAttributeSet中的所有属性值都必须是接口<code>PrintServiceAttribute</code><a href="../../../javax/print/attribute/PrintServiceAttribute.html" title="javax.print.attribute中的接口">实例</a></span> <span><a href="../../../javax/print/attribute/PrintServiceAttributeSet.html#add-javax.print.attribute.Attribute-"><code>add(Attribute)</code></a><a href="../../../javax/print/attribute/PrintServiceAttributeSet.html#addAll-javax.print.attribute.AttributeSet-"><code>addAll(AttributeSet)</code></a>操作如下所示,以保证此额外的不变量。</span> </p>
<p></p>
</div> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/print/attribute/PrintServiceAttributeSet.html#add-javax.print.attribute.Attribute-">add</a></span>(<a href="../../../javax/print/attribute/Attribute.html" title="interface in javax.print.attribute">Attribute</a> attribute)</code>
<div class="block">
如果指定的属性值不存在,请将指定的属性值添加到该属性集中,首先删除与指定的属性值相同的属性类别中的任何现有值(可选操作)。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/print/attribute/PrintServiceAttributeSet.html#addAll-javax.print.attribute.AttributeSet-">addAll</a></span>(<a href="../../../javax/print/attribute/AttributeSet.html" title="interface in javax.print.attribute">AttributeSet</a> attributes)</code>
<div class="block">
将指定集合中的所有元素添加到此属性。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.print.attribute.AttributeSet">
<!-- --> </a> <h3>Methods inherited from interface javax.print.attribute.<a href="../../../javax/print/attribute/AttributeSet.html" title="interface in javax.print.attribute">AttributeSet</a></h3> <code><a href="../../../javax/print/attribute/AttributeSet.html#clear--">clear</a>, <a href="../../../javax/print/attribute/AttributeSet.html#containsKey-java.lang.Class-">containsKey</a>, <a href="../../../javax/print/attribute/AttributeSet.html#containsValue-javax.print.attribute.Attribute-">containsValue</a>, <a href="../../../javax/print/attribute/AttributeSet.html#equals-java.lang.Object-">equals</a>, <a href="../../../javax/print/attribute/AttributeSet.html#get-java.lang.Class-">get</a>, <a href="../../../javax/print/attribute/AttributeSet.html#hashCode--">hashCode</a>, <a href="../../../javax/print/attribute/AttributeSet.html#isEmpty--">isEmpty</a>, <a href="../../../javax/print/attribute/AttributeSet.html#remove-javax.print.attribute.Attribute-">remove</a>, <a href="../../../javax/print/attribute/AttributeSet.html#remove-java.lang.Class-">remove</a>, <a href="../../../javax/print/attribute/AttributeSet.html#size--">size</a>, <a href="../../../javax/print/attribute/AttributeSet.html#toArray--">toArray</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="add-javax.print.attribute.Attribute-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>add</h4> <pre>boolean add(<a href="../../../javax/print/attribute/Attribute.html" title="interface in javax.print.attribute">Attribute</a> attribute)</pre>
<div class="block">
如果指定的属性值不存在,请将指定的属性值添加到该属性集中,首先删除与指定的属性值相同的属性类别中的任何现有值(可选操作)。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/print/attribute/AttributeSet.html#add-javax.print.attribute.Attribute-">add</a></code>在界面
<code><a href="../../../javax/print/attribute/AttributeSet.html" title="interface in javax.print.attribute">AttributeSet</a></code>
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>attribute</code> - 要添加到此属性集的属性值。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<tt>true</tt>如果该属性集作为调用的结果发生更改,即给定的属性值不是此属性集的成员。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../javax/print/attribute/UnmodifiableSetException.html" title="class in javax.print.attribute">UnmodifiableSetException</a></code> - (未经检查的异常)如果此属性集不支持
<code>add()</code>操作。
</dd>
<dd>
<span><code><a href="../../../java/lang/ClassCastException.html" title="class in java.lang">ClassCastException</a></code> - (未选中的异常)如果<code>attribute</code>不是接口<a href="../../../javax/print/attribute/PrintServiceAttribute.html" title="javax.print.attribute中的接口"><code>PrintServiceAttribute</code></a>的实例,则<a href="../../../javax/print/attribute/PrintServiceAttribute.html" title="javax.print.attribute中的接口">抛出</a></span>
</dd>
<dd>
<code><a href="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</a></code> - (未选中的异常)如果
<code>attribute</code>为空,则抛出。
</dd>
</dl> </li>
</ul> <a name="addAll-javax.print.attribute.AttributeSet-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>addAll</h4> <pre>boolean addAll(<a href="../../../javax/print/attribute/AttributeSet.html" title="interface in javax.print.attribute">AttributeSet</a> attributes)</pre>
<div class="block">
<span>将指定集合中的所有元素添加到此属性。</span>
<span>结果与<a href="../../../javax/print/attribute/PrintServiceAttributeSet.html#add-javax.print.attribute.Attribute-"><code>add(Attribute)</code></a>操作已经与指定集合中的每个元素连续应用于此属性集一样。</span>
<span>如果没有在指定的集合类是相同的此属性设置任何类<tt>addAll()</tt>操作有效地修改此属性集,使其价值是两个集合的并<i></i></span>
<p> <span>如果在操作进行中修改了指定的集合,那么<code>addAll()</code>操作的行为是未指定的。</span> </p>
<p> <span>如果<code>addAll()</code>操作引发异常,对该属性集的状态的影响是依赖于实现的;</span> <span>在异常点之前的指定集合中的元素可能已经被添加到该属性集中,也可能不被添加到该属性集中。</span> </p>
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/print/attribute/AttributeSet.html#addAll-javax.print.attribute.AttributeSet-">addAll</a></code>在界面
<code><a href="../../../javax/print/attribute/AttributeSet.html" title="interface in javax.print.attribute">AttributeSet</a></code>
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>attributes</code> -
<code>attributes</code>元素添加到此属性集。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<tt>true</tt>如果此属性集由于调用而更改。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../javax/print/attribute/UnmodifiableSetException.html" title="class in javax.print.attribute">UnmodifiableSetException</a></code> - (未检查的异常)如果此属性集不支持
<tt>addAll()</tt>方法,则抛出此异常。
</dd>
<dd>
<span><code><a href="../../../java/lang/ClassCastException.html" title="class in java.lang">ClassCastException</a></code> - (未检查异常)如果指定集合中的某些元素不是接口<a href="../../../javax/print/attribute/PrintServiceAttribute.html" title="javax.print.attribute中的接口"><code>PrintServiceAttribute</code></a>的实例,则抛出<a href="../../../javax/print/attribute/PrintServiceAttribute.html" title="javax.print.attribute中的接口">异常</a></span>
</dd>
<dd>
<code><a href="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</a></code> - (未检查异常)如果指定的集合为空,则抛出。
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/print/attribute/PrintServiceAttributeSet.html#add-javax.print.attribute.Attribute-"><code>add(Attribute)</code></a>
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>