Class ValidatorHelper
- Namespace
- ThinkGeo.Core
- Assembly
- ThinkGeo.Core.dll
public static class ValidatorHelper
- Inheritance
-
ValidatorHelper
- Inherited Members
-
Methods
CheckAreIntegerStrings(IEnumerable<string>, string)
public static void CheckAreIntegerStrings(IEnumerable<string> ids, string parameterName)
Parameters
ids IEnumerable<string>
parameterName string
CheckAreaUnitIsValid(AreaUnit, string)
public static void CheckAreaUnitIsValid(AreaUnit areaUnit, string parameterName)
Parameters
areaUnit AreaUnit
parameterName string
CheckBufferCapTypeIsValid(BufferCapType, string)
public static void CheckBufferCapTypeIsValid(BufferCapType bufferCapType, string parameterName)
Parameters
bufferCapType BufferCapType
parameterName string
CheckBuildIndexModeIsValid(BuildIndexMode, string)
public static void CheckBuildIndexModeIsValid(BuildIndexMode buildIndexMode, string parameterName)
Parameters
buildIndexMode BuildIndexMode
parameterName string
CheckCanModifyColumnStructure(bool)
public static void CheckCanModifyColumnStructure(bool canModifyColumnStructure)
Parameters
canModifyColumnStructure bool
CheckCanParseStringToDouble(string, string)
public static void CheckCanParseStringToDouble(string value, string parameterName)
Parameters
value string
parameterName string
CheckCanvasHeightIsLargerThanZero(double, string)
public static void CheckCanvasHeightIsLargerThanZero(double canvasHeight, string parameterName)
Parameters
canvasHeight double
parameterName string
CheckCanvasWidthIsLargerThanZero(double, string)
public static void CheckCanvasWidthIsLargerThanZero(double canvasWidth, string parameterName)
Parameters
canvasWidth double
parameterName string
CheckColumnNameIsInFeature(string, IEnumerable<Feature>)
public static void CheckColumnNameIsInFeature(string columnName, IEnumerable<Feature> features)
Parameters
columnName string
features IEnumerable<Feature>
CheckConnectionStringIsNotNull(string)
public static void CheckConnectionStringIsNotNull(string connectionString)
Parameters
connectionString string
CheckDateTimeIsInRange(DateTime, string, DateTime, RangeCheckingInclusion, DateTime, RangeCheckingInclusion)
public static void CheckDateTimeIsInRange(DateTime inputDate, string parameterName, DateTime minDate, RangeCheckingInclusion includeMinValue, DateTime maxDate, RangeCheckingInclusion includeMaxValue)
Parameters
inputDate DateTime
parameterName string
minDate DateTime
includeMinValue RangeCheckingInclusion
maxDate DateTime
includeMaxValue RangeCheckingInclusion
CheckDbfColumnDecimalLengthIsValid(DbfColumnType, int)
public static void CheckDbfColumnDecimalLengthIsValid(DbfColumnType columnType, int decimalLength)
Parameters
columnType DbfColumnType
decimalLength int
CheckDistanceUnitIsValid(DistanceUnit, string)
public static void CheckDistanceUnitIsValid(DistanceUnit distanceUnit, string parameterName)
Parameters
distanceUnit DistanceUnit
parameterName string
CheckDrawingLevelIsValid(DrawingLevel, string)
public static void CheckDrawingLevelIsValid(DrawingLevel drawingLevel, string parameterName)
Parameters
drawingLevel DrawingLevel
parameterName string
CheckDrawingLineCapIsValid(DrawingLineCap, string)
public static void CheckDrawingLineCapIsValid(DrawingLineCap drawingLineCap, string parameterName)
Parameters
drawingLineCap DrawingLineCap
parameterName string
CheckDrawingLineJoinIsValid(DrawingLineJoin, string)
public static void CheckDrawingLineJoinIsValid(DrawingLineJoin drawingLineJoin, string parameterName)
Parameters
drawingLineJoin DrawingLineJoin
parameterName string
CheckExtentIsValid(RectangleShape, string)
public static void CheckExtentIsValid(RectangleShape extent, string parameterName)
Parameters
extent RectangleShape
parameterName string
CheckFeatureColumnValueContainsColon(string, string)
public static void CheckFeatureColumnValueContainsColon(string value, string parameterName)
Parameters
value string
parameterName string
CheckFeatureIsValid(Feature)
public static void CheckFeatureIsValid(Feature feature)
Parameters
feature Feature
CheckFeatureIsValid(Feature, string)
public static void CheckFeatureIsValid(Feature feature, string parameterName)
Parameters
feature Feature
parameterName string
CheckFeatureSourceCanExecuteSqlQuery(bool)
public static void CheckFeatureSourceCanExecuteSqlQuery(bool canExecuteSqlQuery)
Parameters
canExecuteSqlQuery bool
CheckFeatureSourceCollectionIsNotEmpty(Collection<FeatureSource>)
public static void CheckFeatureSourceCollectionIsNotEmpty(Collection<FeatureSource> featureSources)
Parameters
featureSources Collection<FeatureSource>
CheckFeatureSourceIsEditable(bool)
public static void CheckFeatureSourceIsEditable(bool isEditable)
Parameters
isEditable bool
CheckFeatureSourceIsInTransaction(bool)
public static void CheckFeatureSourceIsInTransaction(bool isInTransaction)
Parameters
isInTransaction bool
CheckFeatureSourceIsNotInTransaction(bool)
public static void CheckFeatureSourceIsNotInTransaction(bool isInTransaction)
Parameters
isInTransaction bool
CheckFeatureSourceIsOpen(bool)
public static void CheckFeatureSourceIsOpen(bool isOpen)
Parameters
isOpen bool
CheckFileIsExist(string)
public static void CheckFileIsExist(string pathFilename)
Parameters
pathFilename string
CheckFileIsNotExist(string)
public static void CheckFileIsNotExist(string pathFilename)
Parameters
pathFilename string
CheckGeoCanvasIsInDrawing(bool)
public static void CheckGeoCanvasIsInDrawing(bool isDrawing)
Parameters
isDrawing bool
CheckGeoDashCapIsValid(GeoDashCap, string)
public static void CheckGeoDashCapIsValid(GeoDashCap geoDashCap, string parameterName)
Parameters
geoDashCap GeoDashCap
parameterName string
CheckGeoImageIsValid(GeoImage, string, GeoCanvas)
public static void CheckGeoImageIsValid(GeoImage image, string parameterName, GeoCanvas canvas)
Parameters
image GeoImage
parameterName string
canvas GeoCanvas
CheckGeographyUnitIsMeter(GeographyUnit, string)
public static void CheckGeographyUnitIsMeter(GeographyUnit geographyUnit, string parameterName)
Parameters
geographyUnit GeographyUnit
parameterName string
CheckGeographyUnitIsValid(GeographyUnit, string)
public static void CheckGeographyUnitIsValid(GeographyUnit geographyUnit, string parameterName)
Parameters
geographyUnit GeographyUnit
parameterName string
CheckGroupLayerIsNotEmpty(GeoCollection<Layer>)
public static void CheckGroupLayerIsNotEmpty(GeoCollection<Layer> layers)
Parameters
layers GeoCollection<Layer>
CheckHtmlColorIsValid(string, string)
public static void CheckHtmlColorIsValid(string htmlColor, string parameterName)
Parameters
htmlColor string
parameterName string
CheckIEnumerableIsNotNullNorEmpty(IEnumerable, string, string)
public static void CheckIEnumerableIsNotNullNorEmpty(IEnumerable values, string parameterName = "", string exceptionMessage = "")
Parameters
values IEnumerable
parameterName string
exceptionMessage string
CheckIconImageAndIconFilePathAreInvalid(string, GeoImage)
public static void CheckIconImageAndIconFilePathAreInvalid(string iconFilePath, GeoImage iconImage)
Parameters
iconFilePath string
iconImage GeoImage
public static void CheckImageFormatIsValid(string imageFormat, Collection<string> outputFormats, string exceptionMessage)
Parameters
imageFormat string
outputFormats Collection<string>
exceptionMessage string
public static void CheckImageFormatSupport(string imageFormat)
Parameters
imageFormat string
CheckImageIsNotNullInPointStyle(GeoImage)
public static void CheckImageIsNotNullInPointStyle(GeoImage image)
Parameters
image GeoImage
public static void CheckInputValueIsInRange(double inputValue, string parameterName, double minValue, double maxValue)
Parameters
inputValue double
parameterName string
minValue double
maxValue double
public static void CheckInputValueIsInRange(double inputValue, string parameterName, double minValue, RangeCheckingInclusion includeMinValue, double maxValue, RangeCheckingInclusion includeMaxValue)
Parameters
inputValue double
parameterName string
minValue double
includeMinValue RangeCheckingInclusion
maxValue double
includeMaxValue RangeCheckingInclusion
public static void CheckInputValueIsInRange(double inputValue, string parameterName, double minValue, RangeCheckingInclusion includeMinValue, double maxValue, RangeCheckingInclusion includeMaxValue, string exceptionMessage)
Parameters
inputValue double
parameterName string
minValue double
includeMinValue RangeCheckingInclusion
maxValue double
includeMaxValue RangeCheckingInclusion
exceptionMessage string
public static void CheckInputValueIsLargerThan(double inputValue, string parameterName, double minValue, RangeCheckingInclusion includeMinValue)
Parameters
inputValue double
parameterName string
minValue double
includeMinValue RangeCheckingInclusion
public static void CheckInputValueIsLargerThanZero(double value, string parameterName)
Parameters
value double
parameterName string
public static void CheckInputValueIsLessThan(double inputValue, string parameterName, double maxValue, RangeCheckingInclusion includeMaxValue)
Parameters
inputValue double
parameterName string
maxValue double
includeMaxValue RangeCheckingInclusion
public static void CheckInputValueIsNotNaNNorInfinity(double value, string parameterName)
Parameters
value double
parameterName string
public static void CheckInputValueIsValidDecimalDegree(double value, string parameterName)
Parameters
value double
parameterName string
CheckIsFastMode(bool)
public static void CheckIsFastMode(bool fastMode)
Parameters
fastMode bool
CheckItemInCollection(string, Collection<string>, string)
public static void CheckItemInCollection(string item, Collection<string> items, string exceptionMessage)
Parameters
item string
items Collection<string>
exceptionMessage string
CheckItemsInCollection(Collection<string>, Collection<string>, string)
public static void CheckItemsInCollection(Collection<string> items, Collection<string> itemCollection, string exceptionMessage)
Parameters
items Collection<string>
itemCollection Collection<string>
exceptionMessage string
CheckLatitudeIsInRange(double, string)
public static void CheckLatitudeIsInRange(double latitude, string parameterName)
Parameters
latitude double
parameterName string
CheckLayerHasBoundingBox(bool)
public static void CheckLayerHasBoundingBox(bool hasBoundingBox)
Parameters
hasBoundingBox bool
CheckLayerIsNotOpenedNorDrawing(bool)
public static void CheckLayerIsNotOpenedNorDrawing(bool isOpenOrDrawing)
Parameters
isOpenOrDrawing bool
CheckLayerIsOpened(bool)
public static void CheckLayerIsOpened(bool isOpen)
Parameters
isOpen bool
CheckLineDashStyleIsValid(LineDashStyle, string)
public static void CheckLineDashStyleIsValid(LineDashStyle lineDashStyle, string parameterName)
Parameters
lineDashStyle LineDashStyle
parameterName string
CheckLongIsNotGreaterThanUInt32MaxValue(long)
public static void CheckLongIsNotGreaterThanUInt32MaxValue(long value)
Parameters
value long
CheckLongitudeIsInRange(double, string)
public static void CheckLongitudeIsInRange(double longitude, string parameterName)
Parameters
longitude double
parameterName string
CheckNumberIsByte(int, string)
public static void CheckNumberIsByte(int number, string paramterName)
Parameters
number int
paramterName string
CheckObjectIsNotNull(object, string)
public static void CheckObjectIsNotNull(object parameterObject, string parameterName)
Parameters
parameterObject object
parameterName string
CheckObjectIsNotNull(object, string, string)
public static void CheckObjectIsNotNull(object parameterObject, string parameterName, string exceptionMessage)
Parameters
parameterObject object
parameterName string
exceptionMessage string
CheckObjectIsTargetType(object, Type, string)
public static void CheckObjectIsTargetType(object objectToTest, Type targetType, string operationName)
Parameters
objectToTest object
targetType Type
operationName string
CheckObjectsAreNotAllNull(object, object, string, string)
public static void CheckObjectsAreNotAllNull(object firstObject, object secondObject, string firstParameterName, string secondParameterName)
Parameters
firstObject object
secondObject object
firstParameterName string
secondParameterName string
CheckOverwriteModeIsValid(OverwriteMode, string)
public static void CheckOverwriteModeIsValid(OverwriteMode overwriteMode, string parameterName)
Parameters
overwriteMode OverwriteMode
parameterName string
CheckPanDirectionIsValid(PanDirection, string)
public static void CheckPanDirectionIsValid(PanDirection panDirection, string parameterName)
Parameters
panDirection PanDirection
parameterName string
CheckPointLineIsIntersected(PointShape, string, LineShape, string, double)
public static void CheckPointLineIsIntersected(PointShape pointShape, string pointShapeName, LineShape lineShape, string lineShapeName, double tolerance)
Parameters
pointShape PointShape
pointShapeName string
lineShape LineShape
lineShapeName string
tolerance double
CheckPointSymbolTypeIsValid(PointSymbolType, string)
public static void CheckPointSymbolTypeIsValid(PointSymbolType symbolType, string parameterName)
Parameters
symbolType PointSymbolType
parameterName string
CheckPointTypeIsValid(PointType, string)
public static void CheckPointTypeIsValid(PointType pointType, string parameterName)
Parameters
pointType PointType
parameterName string
CheckProjectionConverterIsOpen(bool)
public static void CheckProjectionConverterIsOpen(bool isOpen)
Parameters
isOpen bool
CheckQueryTypeIsValid(QueryType, string)
public static void CheckQueryTypeIsValid(QueryType queryType, string parameterName)
Parameters
queryType QueryType
parameterName string
CheckRandomColorTypeIsValid(RandomColorType, string)
public static void CheckRandomColorTypeIsValid(RandomColorType colorType, string parameterName)
Parameters
colorType RandomColorType
parameterName string
CheckRasterSourceIsOpen(bool)
public static void CheckRasterSourceIsOpen(bool isOpen)
Parameters
isOpen bool
CheckRebuildRecordIdModeIsValid(BuildRecordIdMode, string)
public static void CheckRebuildRecordIdModeIsValid(BuildRecordIdMode rebuildRecordIdMode, string parameterName)
Parameters
rebuildRecordIdMode BuildRecordIdMode
parameterName string
CheckReturningColumnsTypeIsValid(ReturningColumnsType, string)
public static void CheckReturningColumnsTypeIsValid(ReturningColumnsType returningColumnsType, string parameterName)
Parameters
returningColumnsType ReturningColumnsType
parameterName string
CheckRingOrderIsValid(RingOrder, string)
public static void CheckRingOrderIsValid(RingOrder ringOrder, string parameterName)
Parameters
ringOrder RingOrder
parameterName string
CheckRtreeSpatialIndexIsOpen(bool)
public static void CheckRtreeSpatialIndexIsOpen(bool isOpen)
Parameters
isOpen bool
CheckScaleIsLargerThanZero(double, string)
public static void CheckScaleIsLargerThanZero(double imageScale, string parameterName)
Parameters
imageScale double
parameterName string
CheckScaleIsValid(double, string)
public static void CheckScaleIsValid(double scale, string parameterName)
Parameters
scale double
parameterName string
CheckShapeIsAreaBaseShape(BaseShape)
public static void CheckShapeIsAreaBaseShape(BaseShape shape)
Parameters
shape BaseShape
CheckShapeIsLineBaseShape(BaseShape)
public static void CheckShapeIsLineBaseShape(BaseShape shape)
Parameters
shape BaseShape
CheckShapeIsMultipointShape(BaseShape)
public static void CheckShapeIsMultipointShape(BaseShape shape)
Parameters
shape BaseShape
CheckShapeIsPointShape(BaseShape)
public static void CheckShapeIsPointShape(BaseShape shape)
Parameters
shape BaseShape
CheckShapeIsValid(BaseShape, string)
public static void CheckShapeIsValid(BaseShape shape, string parameterName)
Parameters
shape BaseShape
parameterName string
CheckShapeIsValidForOperation(BaseShape)
public static void CheckShapeIsValidForOperation(BaseShape shape)
Parameters
shape BaseShape
CheckShapeValidationModeIsValid(ShapeValidationMode, string)
public static void CheckShapeValidationModeIsValid(ShapeValidationMode shapeValidationMode, string parameterName)
Parameters
shapeValidationMode ShapeValidationMode
parameterName string
CheckSimplificationTypeIsValid(SimplificationType, string)
public static void CheckSimplificationTypeIsValid(SimplificationType simplificationType, string parameterName)
Parameters
simplificationType SimplificationType
parameterName string
CheckSpatialIndexIsDeletable(bool)
public static void CheckSpatialIndexIsDeletable(bool isDeletable)
Parameters
isDeletable bool
CheckStartingPointIsValid(StartingPoint, string)
public static void CheckStartingPointIsValid(StartingPoint startingPoint, string parameterName)
Parameters
startingPoint StartingPoint
parameterName string
CheckStatus()
public static void CheckStatus()
CheckStreamIsWritable(Stream, string)
public static void CheckStreamIsWritable(Stream stream, string parameterName)
Parameters
stream Stream
parameterName string
CheckStringIsNotNullNorEmpty(string, string)
public static void CheckStringIsNotNullNorEmpty(string value, string parameterName)
Parameters
value string
parameterName string
CheckStringIsNotNullNorEmptyForOperation(string, string)
public static void CheckStringIsNotNullNorEmptyForOperation(string value, string exceptionMessage)
Parameters
value string
exceptionMessage string
CheckStringIsNotNullNorWhiteSpace(string, string)
public static void CheckStringIsNotNullNorWhiteSpace(string value, string parameterName)
Parameters
value string
parameterName string
CheckStringIsValidDecimalDegree(string, string)
public static void CheckStringIsValidDecimalDegree(string value, string parameterName)
Parameters
value string
parameterName string
CheckTypeIsSupport(object, string)
public static void CheckTypeIsSupport(object instance, string typeName)
Parameters
instance object
typeName string
CheckUriIsValid(Uri)
public static void CheckUriIsValid(Uri uri)
Parameters
uri Uri
CheckWkbByteOrderIsValid(WkbByteOrder, string)
public static void CheckWkbByteOrderIsValid(WkbByteOrder wkbByteOrder, string parameterName)
Parameters
wkbByteOrder WkbByteOrder
parameterName string
CheckWkbIsValid(byte[], string)
public static void CheckWkbIsValid(byte[] wkb, string parameterName)
Parameters
wkb byte[]
parameterName string
CheckWktIsValid(string, string)
public static void CheckWktIsValid(string wkt, string parameterName)
Parameters
wkt string
parameterName string
CheckZoomLevelSetIsValid(ZoomLevelSet, string)
public static void CheckZoomLevelSetIsValid(ZoomLevelSet zoomLevelSet, string parameterName)
Parameters
zoomLevelSet ZoomLevelSet
parameterName string