public final class ConnectorKind extends Object
This class cannot be instantiated or subclassed by clients.
Modifier and Type | Field and Description |
---|---|
static ConnectorKind |
DIRECTORY
Directory kind : the uri passed to a connector must be a directory path.
|
static ConnectorKind |
FILE
File kind : the uri passed to a connector must be a file path.
|
static ConnectorKind |
NO_URI
No uri kind : the connector does not need any uri, the uri parameter can be
null . |
static ConnectorKind |
UNSPECIFIED
Unspecified kind : the uri can be any arbitrary context specific
String value,
in which case the model framework has no specific knowlegde on the uri form to pass to the connector. |
Modifier and Type | Method and Description |
---|---|
boolean |
isDirectory()
Determines whether this is a directory connector kind.
|
boolean |
isFile()
Determines whether this is a file connector kind.
|
boolean |
isNoURI()
Determines whether this is a no uri connector kind.
|
boolean |
isUnspecified()
Determines whether this is a unspecified connector kind.
|
String |
toString()
Returns a
String representation of this connector kind. |
static ConnectorKind |
valueOf(String value)
Determines the connector kind represented as a
String value. |
public static final ConnectorKind FILE
public static final ConnectorKind DIRECTORY
public static final ConnectorKind NO_URI
null
.public static final ConnectorKind UNSPECIFIED
String
value,
in which case the model framework has no specific knowlegde on the uri form to pass to the connector.public static final ConnectorKind valueOf(String value)
String
value.value
- the connector kind String representation.UNSPECIFIED
if unrecognized.public boolean isFile()
true
if this connector is FILE
.public boolean isDirectory()
true
if this connector is DIRECTORY
.public boolean isNoURI()
true
if this connector is NO_URI
.public boolean isUnspecified()
true
if this connector is UNSPECIFIED
.