特性
内容
[
隐藏
]Inheritance: java.lang.Object, com.aspose.xps.metadata.PrintTicketElement, com.aspose.xps.metadata.CompositePrintTicketElement
All Implemented Interfaces: com.aspose.xps.metadata.IPrintTicketItem, com.aspose.xps.metadata.IFeatureItem
public class Feature extends CompositePrintTicketElement implements IPrintTicketItem, IFeatureItem
封装通用打印模式(Print Schema)特性的类。所有模式定义特性的基类。一个 Feature 元素包含完整的 Option 和 Property 元素列表,能够完整描述设备属性、作业格式设置或其他相关特征。 https://docs.microsoft.com/en-us/windows/win32/printdocs/feature
构造函数
| 构造函数 | 描述 |
|---|---|
| Feature(String name, Option option, IFeatureItem[] items) | 创建一个新的 PrintTicket 特性实例。 |
| Feature(String name, Feature feature, IFeatureItem[] items) | 创建一个新的 PrintTicket 特性实例。 |
方法
| 方法 | 描述 |
|---|---|
| add(IFeatureItem[] items) | 将一系列项目添加到此功能的项目列表末尾。 |
| equals(Object arg0) | |
| getClass() | |
| getName() | 获取元素名称。 |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
Feature(String name, Option option, IFeatureItem[] items)
public Feature(String name, Option option, IFeatureItem[] items)
创建一个新的 PrintTicket 特性实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | java.lang.String | 特性名称。 |
| option | Option | 必需的 Option 实例。 |
| items | IFeatureItem[] | 任意的 IFeatureItem 实例数组。每个实例必须是一个 Feature 、一个 Option 或者一个 Property 实例。 |
Feature(String name, Feature feature, IFeatureItem[] items)
public Feature(String name, Feature feature, IFeatureItem[] items)
创建一个新的 PrintTicket 特性实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | java.lang.String | 特性名称。 |
| feature | Feature | 必需的 Feature 实例。 |
| items | IFeatureItem[] | 任意的 Property 实例数组。每个必须是 Feature、Option 或 Property 实例。 |
add(IFeatureItem[] items)
public void add(IFeatureItem[] items)
将一组项目添加到此功能的项目列表末尾。每个项目必须是 Feature、Option 或 Property 实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| items | IFeatureItem[] | 要添加的项目列表。 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getName()
public String getName()
获取元素名称。
Returns: java.lang.String
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |