|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.core.Specifier
This class represent a specifier and collects a name, a className, and an array of arguments. Profile specifiers are used to describe several kinds of complex information when configuring JADE (e.g. MTPs to install, agents to start up, kernel services to activate). The general string format for a specifier is
name:className(separated arglist)
Field Summary | |
static java.lang.String |
NULL_SPECIFIER_LIST
|
static char |
SPECIFIER_SEPARATOR
|
Constructor Summary | |
Specifier()
|
Method Summary | |
static java.lang.String |
encodeSpecifierList(java.util.Vector v)
This static utility method produces a string representation of a list of Specifier objects. |
java.lang.Object[] |
getArgs()
Retrieve the argument list for this specifier. |
java.lang.String |
getClassName()
Retrieve the class name of this specifier. |
java.lang.String |
getName()
Retrieve the name for this specifier object. |
static java.util.Vector |
parseList(java.lang.String list,
char delimiter)
|
static Specifier |
parseSpecifier(java.lang.String specString,
char argsDelimiter)
Utility method that parses a stringified object specifier in the form name:className(separated arglist)
a Specifier object.
|
static java.util.Vector |
parseSpecifierList(java.lang.String specsLine)
This static utility method can parse the string representation of a list of specifiers. |
void |
setArgs(java.lang.Object[] a)
Set the argument list for this specifier object. |
void |
setClassName(java.lang.String cn)
Set the name of the class of this specifier. |
void |
setName(java.lang.String n)
Set the name for this specifier object. |
java.lang.String |
toString()
This method is used by Boot, ProfileImpl, and RMA in order to have a String representation of this Specifier according to the format name:className(arg1 arg2 argn) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final char SPECIFIER_SEPARATOR
public static final java.lang.String NULL_SPECIFIER_LIST
Constructor Detail |
public Specifier()
Method Detail |
public void setName(java.lang.String n)
n
- The name to give to this specifier.public java.lang.String getName()
null
otherwise.public void setClassName(java.lang.String cn)
cn
- The class name to assign to the specifier object.public java.lang.String getClassName()
null
otherwise.public void setArgs(java.lang.Object[] a)
a
- An object array containing the argument list for this
specifier.public java.lang.Object[] getArgs()
null
otherwise.public java.lang.String toString()
name:className(arg1 arg2 argn)
toString
in class java.lang.Object
public static java.util.Vector parseSpecifierList(java.lang.String specsLine) throws java.lang.Exception
name:className(comma-separated arglist)
specsLine
- The string containing the representation of the
specifier list, according to the format above.
java.lang.Exception
public static java.lang.String encodeSpecifierList(java.util.Vector v)
public static final java.util.Vector parseList(java.lang.String list, char delimiter)
public static Specifier parseSpecifier(java.lang.String specString, char argsDelimiter) throws java.lang.Exception
name:className(separated arglist)
specString
- A string containing the representation of the
specifier, according to the format above.argsDelimiter
- The character to use as a delimiter within the argument list.
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |