HyperlinkCollector

Inheritance: java.lang.Object

public class HyperlinkCollector

The class provides collecting hyperlinked XPS elements from the current page of an XPS document.

Methods

MethodDescription
collectHyperlinks(XpsDocument document, Class cls)Collects XPS elements with hyperlinks of a certain type.
collectHyperlinks(XpsDocument document)Collects XPS elements with hyperlinks of all types.
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)

Collects XPS elements with hyperlinks of a certain type.

Parameters:

ParameterTypeDescription
documentXpsDocumentThe XPS document.
clsjava.lang.ClassThe class object corresponding to the hyperlink target type to filter out.

Returns: java.util.Collection<com.aspose.xps.XpsHyperlinkElement> - The collection containing hyperlinked XPS elements.

public static Collection<XpsHyperlinkElement> collectHyperlinks(XpsDocument document)

Collects XPS elements with hyperlinks of all types.

Parameters:

ParameterTypeDescription
documentXpsDocumentThe XPS document.

Returns: java.util.Collection<com.aspose.xps.XpsHyperlinkElement> - The collection containing hyperlinked XPS elements.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int