com.esri.aims.mtier.model.workspace
Class Dataset

java.lang.Object
  extended by com.esri.aims.mtier.model.workspace.Dataset
All Implemented Interfaces:
Serializable

public class Dataset
extends Object
implements Serializable

The Dataset object is used for specifying a file to be added as a dynamic layer. The Dataset object is used in accordance with the workspace objects.

See Also:
Serialized Form

Field Summary
static String LINE
           
static String POINT
           
static String POLYGON
           
 
Constructor Summary
Dataset()
          Constructs an instance of a Dataset object.
 
Method Summary
 String getFromLayer()
          Returns the dataset's fromlayer property.
 String getName()
          Returns the name of the file system's dataset that is being drawn as a dynamic layer.
 String getType()
          Returns the dataset's type.
 String getWorkspaceName()
          Returns the workspace object's name value.
 void setFromLayer(String value)
          Sets the dataset's fromlayer property.
 void setName(String value)
          Sets the name of the file system's dataset that is to be drawn as a dynamic layer.
 void setType(String value)
          Sets the dataset's type.
 void setWorkspaceName(String value)
          Sets the workspace object's name to associate the dataset with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POINT

public static final String POINT
See Also:
Constant Field Values

LINE

public static final String LINE
See Also:
Constant Field Values

POLYGON

public static final String POLYGON
See Also:
Constant Field Values
Constructor Detail

Dataset

public Dataset()
Constructs an instance of a Dataset object. Example:
Dataset dataset = new Dataset();

Method Detail

setName

public void setName(String value)
Sets the name of the file system's dataset that is to be drawn as a dynamic layer. Example:
dataset.setName("states");

Parameters:
value - the dataset name value.
See Also:
getName()

getName

public String getName()
Returns the name of the file system's dataset that is being drawn as a dynamic layer. Example:
String name = dataset.getName();

Returns:
String
See Also:
setName(java.lang.String)

setType

public void setType(String value)
Sets the dataset's type. Types could be point, line, polygon, and image. Example:
dataset.setType("polygon");

Parameters:
value - the dataset type.
See Also:
getType()

getType

public String getType()
Returns the dataset's type. Example:
String type = dataset.getType();

Returns:
String
See Also:
setType(java.lang.String)

setWorkspaceName

public void setWorkspaceName(String value)
Sets the workspace object's name to associate the dataset with. Example:
dataset.setWorkspaceName("myShapes");

Parameters:
value - the workspace name.
See Also:
getWorkspaceName()

getWorkspaceName

public String getWorkspaceName()
Returns the workspace object's name value. Example:
String workspaceName = dataset.getWorkspaceName();

Returns:
String
See Also:
setWorkspaceName(java.lang.String)

setFromLayer

public void setFromLayer(String value)
Sets the dataset's fromlayer property. fromlayer property refers to the layer ID of an existing layer in a map configuration file. Example:
dataset.setFromLayer("3");

Parameters:
value - the fromlayer Id.
See Also:
getFromLayer()

getFromLayer

public String getFromLayer()
Returns the dataset's fromlayer property. Example:
String layer = dataset.getFromLayer();

Returns:
String
See Also:
setFromLayer(java.lang.String)