NamedDestinationCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.pdf.nameddestinations.INamedDestinationCollection

public class NamedDestinationCollection implements INamedDestinationCollection

Class represents the collection of all destinations (a name tree mapping name strings to destinations (see 12.3.2.3, “Named Destinations”) and (see 7.7.4, “Name Dictionary”)) in the pdf document.

Methods

MethodDescription
get_Item(String name)Gets or sets appointment by its name.
set_Item(String name, IAppointment value)Gets or sets appointment by its name.
size()Count of named destinations.
remove(String name)Delete named destination.
add(String name, IAppointment appointment)Add new named destination.
getNames()List of names of the destinations.
isEmpty()

get_Item(String name)

public IAppointment get_Item(String name)

Gets or sets appointment by its name.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of the appointment.

Returns: IAppointment - Appoitnemt

set_Item(String name, IAppointment value)

public void set_Item(String name, IAppointment value)

Gets or sets appointment by its name.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of the appointment.
valueIAppointmentAppoitnemt instance

size()

public int size()

Count of named destinations.

Returns: int - int value

remove(String name)

public void remove(String name)

Delete named destination.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of the destination to delete.

add(String name, IAppointment appointment)

public void add(String name, IAppointment appointment)

Add new named destination.

Parameters:

ParameterTypeDescription
namejava.lang.StringDestination name.
appointmentIAppointmentAppointment to add.

getNames()

public String[] getNames()

List of names of the destinations.

Returns: java.lang.String[]

isEmpty()

public boolean isEmpty()

Returns: boolean - boolean value