Option

Inheritance: java.lang.Object, com.aspose.xps.metadata.PrintTicketElement, com.aspose.xps.metadata.CompositePrintTicketElement

All Implemented Interfaces: com.aspose.xps.metadata.IFeatureItem

public class Option extends CompositePrintTicketElement implements IFeatureItem

Die Klasse, die eine allgemeine PrintTicket-Option implementiert. Die Basisklasse für alle schema-definierten Optionen. Ein Option-Element enthält alle Property- und ScoredProperty-Elemente, die mit dieser Option verknüpft sind. https://docs.microsoft.com/en-us/windows/win32/printdocs/option

Konstruktoren

KonstruktorBeschreibung
Option(String name, IOptionItem[] items)Erstellt eine neue PrintTicket-Option-Instanz.
Option(IOptionItem[] items)Erstellt eine neue PrintTicket-Option-Instanz.
Option(Option option)Erstellt eine geklonte Optionsinstanz.

Methoden

MethodeBeschreibung
add(IOptionItem[] items)Fügt eine Liste von Elementen am Ende der Elementliste dieser Option hinzu.
equals(Object arg0)
getClass()
getName()Ermittelt den Elementnamen.
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Option(String name, IOptionItem[] items)

public Option(String name, IOptionItem[] items)

Erstellt eine neue PrintTicket-Option-Instanz.

Parameters:

ParameterTypBeschreibung
Namejava.lang.StringEin beliebiger Optionsname.
itemsIOptionItem[]Ein beliebiges Array von IOptionItem-Instanzen. Jede muss eine ScoredProperty- oder eine Property-Instanz sein.

Option(IOptionItem[] items)

public Option(IOptionItem[] items)

Erstellt eine neue PrintTicket-Option-Instanz.

Parameters:

ParameterTypBeschreibung
itemsIOptionItem[]Ein beliebiges Array von IOptionItem-Instanzen. Jede muss eine ScoredProperty- oder eine Property-Instanz sein.

Option(Option option)

public Option(Option option)

Erstellt eine geklonte Optionsinstanz.

Parameters:

ParameterTypBeschreibung
optionOptionEine Optionsinstanz zum Klonen.

add(IOptionItem[] items)

public void add(IOptionItem[] items)

Fügt eine Liste von Elementen am Ende der Elementliste dieser Option hinzu. Jedes muss eine Instanz von ScoredProperty oder Property sein.

Parameters:

ParameterTypBeschreibung
itemsIOptionItem[]Liste der hinzuzufügenden Elemente.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypBeschreibung
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getName()

public String getName()

Ermittelt den Elementnamen.

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:

ParameterTypBeschreibung
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypBeschreibung
arg0long
arg1int