|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.util.UtlDescriptor
public class UtlDescriptor
Utility class representing a generic Neeve descriptor.
This class is a utility class to represent a generic Neeve descriptor. A descriptor is of the form [type]://[config]. Descriptors are used to identify and configure many resources in the system e.g. links, packets These resource descriptors share this format and further refine the structure of the descriptor by defining the format of the config portion of the descriptor.
This class MAY be used by end users, however it is not supported.
Field Summary | |
---|---|
String |
config
The config portion parsed from the descriptor string |
static String |
SEPARATOR_STR
String that separates the type string from the config string |
String |
type
The type portion parsed from the descriptor string |
Method Summary | |
---|---|
void |
appendTo(Appendable appendable)
Appends the descriptor string to the given Appendable . |
static UtlDescriptor |
parse(CharSequence descriptor)
Parses a descriptor string into its components |
String |
toString()
Return a string representation of the object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String type
public final String config
public static final String SEPARATOR_STR
Method Detail |
---|
public final String toString()
toString
in class Object
public final void appendTo(Appendable appendable)
Appendable
.
appendable
- The Appendable
to which to append.
RuntimeException
- if the appendable throws an IOException
public static UtlDescriptor parse(CharSequence descriptor) throws IllegalArgumentException
descriptor
- The descriptor string
IllegalArgumentException
- Thrown in case the descriptor string
is not of the format
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |