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

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

public class ShapeWorkspace
extends Object
implements Serializable

The ShapeWorkspace object defines a shapefile data source.

See Also:
Serialized Form

Constructor Summary
ShapeWorkspace()
          Constructs an instance of a ShapeWorkspace object.
 
Method Summary
 int getCodePage()
          Deprecated. As of ArcIMS 4.0.1 Java Connector, replaced by getCodePageString().
 String getCodePageString()
          Returns the codepage value.
 String getDirectory()
          Returns the ShapeWorkspace object's directory value.
 String getGeoIndexDir()
          Returns the directory where the geocoding index is built.
 String getName()
          Returns the ShapeWorkspace object's name value.
 boolean isShared()
          Returns true if the setShared method was set to true.
 void setCodePage(int value)
          Deprecated. As of ArcIMS 4.0.1 Java Connector, replaced by setCodePage(String).
 void setCodePage(String value)
          Sets the ShapeWorkspace object's codepage value.
 void setDirectory(String directory)
          Sets the ShapeWorkspace object's working directory.
 void setGeoIndexDir(String value)
          Sets the directory where the Geocoding index is built.
 void setName(String name)
          Sets the ShapeWorkspace object's name value.
 void setShared(boolean value)
          When set to true, the ArcIMS Spatial Server checks if a shapefile has been modified outside of ArcIMS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeWorkspace

public ShapeWorkspace()
Constructs an instance of a ShapeWorkspace object. Example:
ShapeWorkspace shapeWorkspace = new ShapeWorkspace();

Method Detail

setName

public void setName(String name)
Sets the ShapeWorkspace object's name value. Example:
shapeWorkspace.setName("SWorkspace");

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

setDirectory

public void setDirectory(String directory)
Sets the ShapeWorkspace object's working directory. Example: >
shapeWorkspace.setDirectory("C:/ArcIMS/Shapes/dir");

Parameters:
directory - the directory value.
See Also:
getDirectory()

getName

public String getName()
Returns the ShapeWorkspace object's name value. Example:
String name = shapeWorkspace.getName();

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

getDirectory

public String getDirectory()
Returns the ShapeWorkspace object's directory value. Example:
String directory = shapeWorkspace.getDirectory();

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

setCodePage

public void setCodePage(String value)
Sets the ShapeWorkspace object's codepage value. The codepage value is the value used for all DBF tables from this workspace. Example:
shapeWorkspace.setCodePage("UTF-8");

Parameters:
value - the codepage value.
See Also:
getCodePageString()

getCodePageString

public String getCodePageString()
Returns the codepage value. The codepage value is the value used for all DBF tables from this workspace. Example:
String codePage = shapeWorkspace.getCodePageString();

Returns:
String

setCodePage

public void setCodePage(int value)
Deprecated. As of ArcIMS 4.0.1 Java Connector, replaced by setCodePage(String).

Sets the ShapeWorkspace object's codepage value. The codepage value is the value used for all DBF tables from this workspace.

Parameters:
value - the codepage value.
See Also:
getCodePageString()

getCodePage

public int getCodePage()
Deprecated. As of ArcIMS 4.0.1 Java Connector, replaced by getCodePageString().

Returns the codepage value. The codepage value is the value used for all DBF tables from this workspace.

Returns:
int

setShared

public void setShared(boolean value)
When set to true, the ArcIMS Spatial Server checks if a shapefile has been modified outside of ArcIMS. Example: >
shapeWorkspace.setShared(true);

Parameters:
value - the shared value.
See Also:
isShared()

isShared

public boolean isShared()
Returns true if the setShared method was set to true. Example:
  if(shapeWorkspace.isShared() == true){
    shapeWorkspace.setShared(false);
  }
 

Returns:
true if shared
See Also:
setShared(boolean)

setGeoIndexDir

public void setGeoIndexDir(String value)
Sets the directory where the Geocoding index is built. Example:
  shapeWorkspace.setGeoIndexDir("C:/ArcIMS/Index");
  

Parameters:
value - the directory value.
See Also:
getGeoIndexDir()

getGeoIndexDir

public String getGeoIndexDir()
Returns the directory where the geocoding index is built. Example:
 String geoIndexDir = shapeWorkspace.getGeoIndexDir();
 

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