public class Specifier
extends java.lang.Object
name:className(separated arglist)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NULL_SPECIFIER_LIST |
static char |
SPECIFIER_SEPARATOR |
Constructor and Description |
---|
Specifier() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
encodeList(java.util.Vector v,
char delimiter) |
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) |
public static final char SPECIFIER_SEPARATOR
public static final java.lang.String NULL_SPECIFIER_LIST
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 java.lang.String encodeList(java.util.Vector v, 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