|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.dpml.library.info.AbstractDirective
net.dpml.tools.info.ListenerDirective
The ListenerDirective is an immutable descriptor used to define a build listener to be attached to an Ant project.
| Constructor Summary | |
ListenerDirective(String name,
int priority,
URI uri,
String classname,
Properties properties)
Creation of a new listener directive. |
|
| Method Summary | |
int |
compareTo(Object other)
Compares this ListenerDirective object to another object. |
boolean |
equals(Object other)
Compare this object with another for equality. |
String |
getClassname()
Get the listener classname. |
String |
getName()
Return the listener name. |
int |
getPriority()
Return the listener priority. |
URI |
getURI()
Return the listener codebase uri. |
String |
getURISpec()
Return the listener codebase uri as a string. |
int |
hashCode()
Compute the hash value. |
| Methods inherited from class net.dpml.library.info.AbstractDirective |
equals, getProperties, getProperty, hashArray, hashValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ListenerDirective(String name,
int priority,
URI uri,
String classname,
Properties properties)
throws NullPointerException,
IllegalStateException
name - the listener namepriority - the listener priorityuri - the listener codebaseclassname - optional classname of the plugin instantiation targetproperties - supplimentary properties
NullPointerException - if name or dependencies are null
IllegalStateException - if both classname and urn values are null| Method Detail |
public String getName()
public int getPriority()
public URI getURI()
public String getURISpec()
public String getClassname()
public int compareTo(Object other)
throws ClassCastException
ListenerDirective object to another object.
If the object is an ListenerDirective, this function behaves
like compareTo(Integer). Otherwise, it throws a
ClassCastException.
compareTo in interface Comparableother - the Object to be compared.
0 if the argument is a
ListenerDirective with a priority numerically equal to this
ListenerDirective; a value less than 0
if the argument is a ListenerDirective numerically
greater than this ListenerDirective; and a value
greater than 0 if the argument is a
ListenerDirective numerically less than this
ListenerDirective.
ClassCastException - if the argument is not an
ListenerDirective.Comparablepublic boolean equals(Object other)
equals in class AbstractDirectiveother - the other object
public int hashCode()
hashCode in class AbstractDirective
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||