HyperlinkCollector

Inheritance: java.lang.Object

public class HyperlinkCollector

该类提供从 XPS 文档当前页面收集带超链接的 XPS 元素。

方法

方法描述
collectHyperlinks(XpsDocument document, Class cls)收集具有特定类型超链接的 XPS 元素。
collectHyperlinks(XpsDocument document)收集具有所有类型超链接的 XPS 元素。
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)
public static Collection<XpsHyperlinkElement> <T>collectHyperlinks(XpsDocument document, Class<T> cls)

收集具有特定类型超链接的 XPS 元素。

Parameters:

参数类型描述
documentXpsDocumentXPS 文档。
clsjava.lang.Class对应要过滤的超链接目标类型的类对象。

Returns: java.util.Collection<com.aspose.xps.XpsHyperlinkElement> - 包含超链接 XPS 元素的集合。

public static Collection<XpsHyperlinkElement> collectHyperlinks(XpsDocument document)

收集具有所有类型超链接的 XPS 元素。

Parameters:

参数类型描述
documentXpsDocumentXPS 文档。

Returns: java.util.Collection<com.aspose.xps.XpsHyperlinkElement> - 包含超链接 XPS 元素的集合。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.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:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int