com.sodius.mdw.core.model.io
Class ConnectorKind

java.lang.Object
  extended by com.sodius.mdw.core.model.io.ConnectorKind

public final class ConnectorKind
extends Object

Enumeration of known connector kinds, which describe the kind of uri (resource locator) a connector expects.

This class cannot be instantiated or subclassed by clients.

See Also:
ConnectorDescriptor.getKind(), Model.read(String, String), Model.write(String, String)

Field Summary
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.
 
Method Summary
 boolean isDirectory()
          Determines wheter this is a directory connector kind.
 boolean isFile()
          Determines wheter this is a file connector kind.
 boolean isNoURI()
          Determines wheter this is a no uri connector kind.
 boolean isUnspecified()
          Determines wheter 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FILE

public static final ConnectorKind FILE
File kind : the uri passed to a connector must be a file path.


DIRECTORY

public static final ConnectorKind DIRECTORY
Directory kind : the uri passed to a connector must be a directory path.


NO_URI

public static final ConnectorKind NO_URI
No uri kind : the connector does not need any uri, the uri parameter can be null.


UNSPECIFIED

public static final 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.

Method Detail

valueOf

public static final ConnectorKind valueOf(String value)
Determines the connector kind represented as a String value.

Returns:
the corresponding connector kind, UNSPECIFIED if unrecognized.

isFile

public boolean isFile()
Determines wheter this is a file connector kind.

Returns:
true if this connector is FILE.

isDirectory

public boolean isDirectory()
Determines wheter this is a directory connector kind.

Returns:
true if this connector is DIRECTORY.

isNoURI

public boolean isNoURI()
Determines wheter this is a no uri connector kind.

Returns:
true if this connector is NO_URI.

isUnspecified

public boolean isUnspecified()
Determines wheter this is a unspecified connector kind.

Returns:
true if this connector is UNSPECIFIED.

toString

public String toString()
Returns a String representation of this connector kind.

Overrides:
toString in class Object
Returns:
a String representation of this connector kind.