public class UtlDescriptor extends Object
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.Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
public final String type
public final String config
public static final String SEPARATOR_STR
public final String toString()
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 stringIllegalArgumentException
- Thrown in case the descriptor string
is not of the format Copyright © 2019 Neeve Research, LLC. All Rights Reserved.