public abstract class SISComponentID extends ComponentID implements SISComponent
SISComponent.ComponentType| Modifier and Type | Field and Description |
|---|---|
static Pattern |
COMPONENT_ID_PATTERN |
static Pattern |
COMPONENT_ID_PATTERN_NOTYPE |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ComponentID> |
fromString(Class<T> type,
String s)
Obtain a
ComponentID from a string, with no type prefix, for example:
name=Foo,vendor=Bar,version=1.0. |
static SISComponentID |
fromString(String s)
Obtain a
SISComponentID from a string with a type prefix, for example:
MacroID[name=Foo,vendor=Bar,version=1.0]. |
void |
toStream(DataOutput out) |
compareTo, equals, getName, getVendor, getVersion, hashCode, toStringgetComponentType, getNamecompareTopublic static final Pattern COMPONENT_ID_PATTERN
public static final Pattern COMPONENT_ID_PATTERN_NOTYPE
public final void toStream(DataOutput out) throws IOException
IOExceptionpublic static SISComponentID fromString(String s) throws IllegalArgumentException
SISComponentID from a string with a type prefix, for example:
MacroID[name=Foo,vendor=Bar,version=1.0].s - the string to parse, must be of the form Type[name=X,vendor=Y,version=Z], or "null".null if the string equalled the literal "null".IllegalArgumentException - if the string could not be parsed, or the type was unknown.public static <T extends ComponentID> T fromString(Class<T> type, String s) throws IllegalArgumentException
ComponentID from a string, with no type prefix, for example:
name=Foo,vendor=Bar,version=1.0.type - the desired ComponentID concrete class to return. The concrete class must
have a public constructor with 3 string args (name, vendor, version).s - the string to parse, must be of the form name=x,vendor=y,version=z, or "null".type, or null if the string equalled the literal "null".IllegalArgumentException - if the string could not be parsed, or an instance of
the class could not be created.