public class NamedDestination extends Destination
| Modifier and Type | Method and Description |
|---|---|
static NamedDestination |
create(Document targetDocument,
java.lang.String name,
DirectDestination target)
Create a named destination
|
static NamedDestination |
createDynamicObject(long handle) |
java.lang.String |
getName()
The name by which the destination is referred to.
|
getTargetequals, hashCodepublic static NamedDestination createDynamicObject(long handle)
public static NamedDestination create(Document targetDocument, java.lang.String name, DirectDestination target)
targetDocument - The output document with which the returned object is associatedname - The name by which the destination is referred to.target - The target destinationjava.lang.IllegalArgumentException - if the targetDocument argument is nulljava.lang.IllegalArgumentException - if the targetDocument argument has already been closedjava.lang.IllegalArgumentException - if the targetDocument argument is read-onlyjava.lang.IllegalArgumentException - if the name argument is nulljava.lang.IllegalArgumentException - if the target argument is nulljava.lang.IllegalArgumentException - if the target argument has already been closedjava.lang.IllegalArgumentException - if the target argument belongs to a different documentpublic java.lang.String getName()
java.lang.IllegalStateException - the object has already been closed.java.lang.IllegalStateException - the associated document has already been closed.