WarningInfoCollection
遗产: java.lang.Object
所有已实现的接口: com.aspose.words.IWarningCallback, java.lang.Iterable
public class WarningInfoCollection implements IWarningCallback, Iterable
表示一个类型化的集合WarningInfo对象。
要了解更多信息,请访问Programming with Documents文档文章。
您可以将此集合对象用作最简单的形式IWarningCallback实现来收集 Aspose.Words 在加载或保存操作期间生成的所有警告。创建此类的一个实例并将其分配给LoadOptions.getWarningCallback() / LoadOptions.setWarningCallback(com.aspose.words.IWarningCallback)或者DocumentBase.getWarningCallback() / DocumentBase.setWarningCallback(com.aspose.words.IWarningCallback)财产。
方法
| 方法 | 描述 | 
|---|---|
| clear() | 从集合中移除所有元素。 | 
| equals(Object arg0) | |
| get(int index) | 获取指定索引处的项目。 | 
| getClass() | |
| getCount() | 获取集合中包含的元素数。 | 
| hashCode() | |
| iterator() | 返回一个迭代器对象,该对象可用于迭代集合中的所有项目。 | 
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | |
| warning(WarningInfo info) | 实施IWarningCallback界面。 | 
clear()
public void clear()
从集合中移除所有元素。
equals(Object arg0)
public boolean equals(Object arg0)
参数:
| 范围 | 类型 | 描述 | 
|---|---|---|
| arg0 | java.lang.Object | 
退货: 布尔值
get(int index)
public WarningInfo get(int index)
获取指定索引处的项目。
参数:
| 范围 | 类型 | 描述 | 
|---|---|---|
| index | int | 项目的从零开始的索引。 | 
退货: WarningInfo - 指定索引处的项目。
getClass()
public final native Class<?> getClass()
退货: java.lang.Class
getCount()
public int getCount()
获取集合中包含的元素数。
退货: int - 集合中包含的元素数。
hashCode()
public native int hashCode()
退货: 整数
iterator()
public Iterator iterator()
返回一个迭代器对象,该对象可用于迭代集合中的所有项目。
退货: java.util.迭代器
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
退货: java.lang.字符串
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
参数:
| 范围 | 类型 | 描述 | 
|---|---|---|
| arg0 | long | 
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
参数:
| 范围 | 类型 | 描述 | 
|---|---|---|
| arg0 | long | |
| arg1 | int | 
warning(WarningInfo info)
public void warning(WarningInfo info)
实施IWarningCallback界面。向此集合添加警告。
参数:
| 范围 | 类型 | 描述 | 
|---|---|---|
| info | WarningInfo |