Package com.esri.core.geometry
Class OperatorFactoryLocal
- java.lang.Object
-
- com.esri.core.geometry.OperatorFactory
-
- com.esri.core.geometry.OperatorFactoryLocal
-
public class OperatorFactoryLocal extends OperatorFactory
An abstract class that represent the basic OperatorFactory interface.
-
-
Field Summary
Fields Modifier and Type Field Description private static OperatorFactoryLocal
INSTANCE
private static java.util.HashMap<Operator.Type,Operator>
st_supportedOperators
-
Constructor Summary
Constructors Modifier Constructor Description private
OperatorFactoryLocal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OperatorFactoryLocal
getInstance()
Returns a reference to the singleton.Operator
getOperator(Operator.Type type)
Returns an operator of the given type.boolean
isOperatorSupported(Operator.Type type)
Returns True if the given operator exists.static Geometry
loadGeometryFromEsriShapeDbg(java.lang.String file_name)
static MapGeometry
loadGeometryFromJSONFileDbg(java.lang.String file_name)
static MapGeometry
loadGeometryFromJSONStringDbg(java.lang.String json)
static Geometry
loadGeometryFromWKTFileDbg(java.lang.String file_name)
static void
saveGeometryToEsriShapeDbg(java.lang.String file_name, Geometry geometry)
static void
saveJSONToTextFileDbg(java.lang.String file_name, Geometry geometry, SpatialReference spatial_ref)
static void
saveToWKTFileDbg(java.lang.String file_name, Geometry geometry, SpatialReference spatial_ref)
-
-
-
Field Detail
-
INSTANCE
private static final OperatorFactoryLocal INSTANCE
-
st_supportedOperators
private static final java.util.HashMap<Operator.Type,Operator> st_supportedOperators
-
-
Method Detail
-
getInstance
public static OperatorFactoryLocal getInstance()
Returns a reference to the singleton.
-
getOperator
public Operator getOperator(Operator.Type type)
Description copied from class:OperatorFactory
Returns an operator of the given type. Throws an exception if the operator is not supported.- Specified by:
getOperator
in classOperatorFactory
-
isOperatorSupported
public boolean isOperatorSupported(Operator.Type type)
Description copied from class:OperatorFactory
Returns True if the given operator exists. The type is one of the Operator::Type values or a user defined value.- Specified by:
isOperatorSupported
in classOperatorFactory
-
saveJSONToTextFileDbg
public static void saveJSONToTextFileDbg(java.lang.String file_name, Geometry geometry, SpatialReference spatial_ref)
-
loadGeometryFromJSONFileDbg
public static MapGeometry loadGeometryFromJSONFileDbg(java.lang.String file_name)
-
loadGeometryFromJSONStringDbg
public static MapGeometry loadGeometryFromJSONStringDbg(java.lang.String json)
-
loadGeometryFromEsriShapeDbg
public static Geometry loadGeometryFromEsriShapeDbg(java.lang.String file_name)
-
saveGeometryToEsriShapeDbg
public static void saveGeometryToEsriShapeDbg(java.lang.String file_name, Geometry geometry)
-
saveToWKTFileDbg
public static void saveToWKTFileDbg(java.lang.String file_name, Geometry geometry, SpatialReference spatial_ref)
-
loadGeometryFromWKTFileDbg
public static Geometry loadGeometryFromWKTFileDbg(java.lang.String file_name)
-
-