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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name 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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name of the appointment. |
value | IAppointment | Appoitnemt 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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name of the destination to delete. |
add(String name, IAppointment appointment)
public void add(String name, IAppointment appointment)
Add new named destination.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Destination name. |
appointment | IAppointment | Appointment to add. |
getNames()
public String[] getNames()
List of names of the destinations.
Returns: java.lang.String[]
isEmpty()
public boolean isEmpty()
Returns: boolean - boolean value