public class NamedDestinationCollection extends Object 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.
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
IAppointment appointment)
Add new named destination.
|
IAppointment |
get_Item(String name)
Gets or sets appointment by its name.
|
String[] |
getNames()
List of names of the destinations.
|
boolean |
isEmpty() |
void |
remove(String name)
Delete named destination.
|
void |
set_Item(String name,
IAppointment value)
Gets or sets appointment by its name.
|
int |
size()
Count of named destinations.
|
public IAppointment get_Item(String name)
Gets or sets appointment by its name.
get_Item
in interface INamedDestinationCollection
name
- Name of the appointment.public void set_Item(String name, IAppointment value)
Gets or sets appointment by its name.
set_Item
in interface INamedDestinationCollection
name
- Name of the appointment.value
- Appoitnemt instancepublic int size()
Count of named destinations.
size
in interface INamedDestinationCollection
public void remove(String name)
Delete named destination.
remove
in interface INamedDestinationCollection
name
- Name of the destination to delete.public void add(String name, IAppointment appointment)
Add new named destination.
add
in interface INamedDestinationCollection
name
- Destination name.appointment
- Appointment to add.public String[] getNames()
List of names of the destinations.
getNames
in interface INamedDestinationCollection
public boolean isEmpty()