public class DefaultEditingServiceinfo extends Object implements EditingServiceInfo
Constructor and Description |
---|
DefaultEditingServiceinfo(String name,
String description,
boolean createsNewGeometries,
Image mouseCursor,
int[] supportedPrimitiveGeometryType) |
Modifier and Type | Method and Description |
---|---|
boolean |
createsNewGeometries()
Returns if service creates new geometries.
|
String |
getDescription()
Gets description of service.
|
Image |
getMouseIcon()
Get mouse icon associated to service.
|
String |
getName()
Gets name of service.
|
EditingServiceParameter |
getParameterInfo(String parameterName)
Gets read only information about a parameter of this service.
|
List<EditingServiceParameter> |
getParameters()
Gets a
List with all parameters of service. |
int[] |
getSupportedPrimitiveGeometryTypes()
Gets supported primitive geometry types of service.
|
boolean |
isCompatibleWith(GeometryType geoType)
Returns if service is compatible with the geometry type received as
parameter.
|
public boolean createsNewGeometries()
EditingServiceInfo
createsNewGeometries
in interface EditingServiceInfo
public String getDescription()
EditingServiceInfo
getDescription
in interface EditingServiceInfo
public Image getMouseIcon()
EditingServiceInfo
getMouseIcon
in interface EditingServiceInfo
public String getName()
EditingServiceInfo
getName
in interface EditingServiceInfo
public List<EditingServiceParameter> getParameters()
EditingServiceInfo
List
with all parameters of service. Each parameter
has name, description and types. See EditingServiceParameter
.getParameters
in interface EditingServiceInfo
EditingServiceParameter
objects.public int[] getSupportedPrimitiveGeometryTypes()
EditingServiceInfo
Geometry.TYPES
.getSupportedPrimitiveGeometryTypes
in interface EditingServiceInfo
public EditingServiceParameter getParameterInfo(String parameterName)
EditingServiceInfo
EditingServiceParameter
.getParameterInfo
in interface EditingServiceInfo
parameterName
- Name of parameter.EditingServiceParameter
object of parameter.public boolean isCompatibleWith(GeometryType geoType) throws ServiceInformationException
EditingServiceInfo
isCompatibleWith
in interface EditingServiceInfo
ServiceInformationException