Feature

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

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

public class Feature extends CompositePrintTicketElement implements IPrintTicketItem, IFeatureItem

The class that incapsulates a common Print Schema feature. The base class for all schema-defined features. A Feature element contains a complete list of the Option and Property elements that fully describe a device attribute, job formatting setting, or other relevant characteristic. https://docs.microsoft.com/en-us/windows/win32/printdocs/feature

Constructors

ConstructorDescription
Feature(String name, Option option, IFeatureItem[] items)Creates a new PrintTicket feature instance.
Feature(String name, Feature feature, IFeatureItem[] items)Creates a new PrintTicket feature instance.

Methods

MethodDescription
add(IFeatureItem[] items)Adds a list of items to the end of this feature’s item list.
equals(Object arg0)
getClass()
getName()Gets the element name.
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Feature(String name, Option option, IFeatureItem[] items)

public Feature(String name, Option option, IFeatureItem[] items)

Creates a new PrintTicket feature instance.

Parameters:

ParameterTypeDescription
namejava.lang.StringA feature name.
optionOptionRequired Option instance.
itemsIFeatureItem[]An arbitrary array of IFeatureItem instances. Each one must be a Feature , an Option or a Property instance.

Feature(String name, Feature feature, IFeatureItem[] items)

public Feature(String name, Feature feature, IFeatureItem[] items)

Creates a new PrintTicket feature instance.

Parameters:

ParameterTypeDescription
namejava.lang.StringFeature name.
featureFeatureRequired Feature instance.
itemsIFeatureItem[]An arbitrary array of Property instances. Each one must be a Feature , an Option or a Property instance.

add(IFeatureItem[] items)

public void add(IFeatureItem[] items)

Adds a list of items to the end of this feature’s item list. Each one must be a Feature , an Option or a Property instance.

Parameters:

ParameterTypeDescription
itemsIFeatureItem[]List of items to add.

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

getName()

public String getName()

Gets the element name.

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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int