HyperlinkCollector
Inheritance: java.lang.Object
public class HyperlinkCollector
该类提供从 XPS 文档当前页面收集带超链接的 XPS 元素。
方法
collectHyperlinks(XpsDocument document, Class cls)
public static Collection<XpsHyperlinkElement> <T>collectHyperlinks(XpsDocument document, Class<T> cls)
收集具有特定类型超链接的 XPS 元素。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| document | XpsDocument | XPS 文档。 |
| cls | java.lang.Class | 对应要过滤的超链接目标类型的类对象。 |
Returns: java.util.Collection<com.aspose.xps.XpsHyperlinkElement> - 包含超链接 XPS 元素的集合。
collectHyperlinks(XpsDocument document)
public static Collection<XpsHyperlinkElement> collectHyperlinks(XpsDocument document)
收集具有所有类型超链接的 XPS 元素。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| document | XpsDocument | XPS 文档。 |
Returns: java.util.Collection<com.aspose.xps.XpsHyperlinkElement> - 包含超链接 XPS 元素的集合。
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
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 |