com.supermap.data
类 Enum

java.lang.Object
  继承者 com.supermap.data.Enum
直接已知子类:
AggregationFunctionType, AggregationType, AllocationDemandType, AlongLineDrawingMode, AnalysisMode, AnalysisQuality, AnchorOffsetMode, AnimationDefine.AnimationGroupPlayState, AnimationDefine.AnimationType, AnimationDefine.BlinkAnimationBlinkStyle, AnimationDefine.BlinkAnimationReplaceStyle, AnimationDefine.PathType, AnimationDefine.RotateDirection, ArcAndVertexFilterMode, AttachOption, AttributeExtentType, AttributeStatisticsType, AvoidMode, BooleanOperatorType, BooleanOperatorType, BooleanOperatorType, BorderType, BoundaryCleanSortType, BoxClipPart, BufferRadiusUnit, CacheDataType, CacheFileType, CacheLimitTextureSize, CalibrateMode, CameraFOVModeType, ChamferStyle, ChartDisplayStyleType, CheckErrorType, ClippingType, ClippingType, CloudConditionsType, ColorType, ColourModeChart, CombineNodeType, CompressedTextureType, CompressType, ComputeType, ConstraintType, ConstraintType, ContourDisplayMode, CoordSysTransMethod, CoordSysTransRunnableAction, CSGEntityType, CSGNodeType, CullModeType, DataRGBMode, DataSeparator, DataUnit, DialogResult, DisplayMode, DisplayMode, DomainType, DomeType, DotShowMode, DrawPrimitiveType, DynamicSegmentRole, EdgeMatchAttributeMethod, EdgeMatchMode, EditHandleType, EffectType, EliminateMode, EncodeType, EventDissolveType, EventOverlayType, EventType, FieldValuesDisplayMode, FilteringMode, FlyEventType, FlyStatus, FunctionType, GenerateType, GeodesicLineType, GeoMapGridLineType, GeoMapGridType, GeometryType, GeoSpheroidType, GlobeType, GraphAxesTextDisplayMode, GraphicCompoundType, GraphicObjectType, GridDataType, GridFunctionType, GridStatisticsMode, GridType, HitTestIconType, HorizontalTextPositionType, ImageDisplayMode, ImageInterpolationMode, ImageStretchType, ImageTilingMode, JoinType, LayerGridAggregationType, LayerType, LogLevel, LogTimeInterval, MajorityDefinition, MapCacheVersion, MapColorMode, MapServiceType, MapTilingMode, MarkPos, MaterialType, MaterialType, MeshCompressType, MeshKeepType, MeshOperationFilterType, MeshSplitType, ModelFileType, ModelImportMode, ModelSymbolMatchMode, ModifyRegionMode, MosaicClipModeType, MosaicColorBalanceMethod, MotionType, MultiTextureMode, MultiViewportMode, NeighborNumber, NeighbourShapeType, NeighbourUnitType, NormalComputeMode, ObjRotateOption, ObliqueProcessType, OpenCLCapability, OperationMode, OSGBType, OverlayAnalystOutputType, PBRAlphaModeType, PixelFormat, PlaneType, PointCloudInfoType, PointEPSType, PositionMode, PositionMode, PrecipitationType, ProcessFileType, ProcessType, ProfileType, PyramidResampleType, PyramidSplitType, RangeType, RasterClipFileType, RasterizationInterpolationMethod, RasterJoinPixelFormat, RasterJoinType, ReclassPixelFormat, ReclassSegmentType, ReclassType, RegionType, RegularizeMethod, RelLineText, ResampleType, RootNodeColorType, S3MVersion, S57DatasetType, SceneType, SecondTextureType, ShadowMode, ShadowType, ShadowVolumeType, SideType, SlopeDisplayMode, SlopeType, SnapMode3D, SolarTimeMode, SpatialQueryMode, SpatialRelationType, SplitMode, SplitterOrientation, StatisticsCompareType, StatisticsType, StatisticsType, StopMode, StorageType, StreamOrderType, StringAlignment, StrokeType, StyleOptions, SurroundLineType, SymbolInfoNodeType, TerrainCacheType, TerrainInterpolateType, TerrainStatisticType, TextAlignment, TextPosition, TextureCompressType, TextureCompressType, TextureMappingMode, TextureMappingMode, TextureWrapMode, TiffCompressType, TileFormat, TileSize, TopologicalSchemaOrientation, TopologyErrorType, TractionLineType, TransferPreference, TransferSearchMode, TransferTactic, UpdateType, VectorCacheTileType, VectorPyramidMethod, VertexOptimizationType, VertexSnapType, VertexWeightMode, VerticalTextPositionType, ViewShedType, VoxelGridCacheType, VoxelValueMode, WhereToCalibrate, WireFrameType, WorkspaceVersion, XmlFileType

public abstract class Enum
extends java.lang.Object

所有枚举类(如地图操作状态枚举,数据集类型枚举等)的基类。提供各枚举类型共有的方法。


方法摘要
 boolean equals(java.lang.Object other)
          当指定对象等于此枚举常量时,返回 true。
static Enum[] getEnums(java.lang.Class type)
          返回指定枚举类的所有枚举常量。
static java.lang.String getNameByValue(java.lang.Class type, int value)
          根据枚举值返回对应的枚举常量的名称。
static java.lang.String[] getNames(java.lang.Class type)
          返回指定枚举类的所有枚举常量的名称的集合。
static int[] getPredefineValues(java.lang.Class type)
          返回 SuperMap iObjects Java 已定的枚举类的枚举值。
static int getValueByName(java.lang.Class type, java.lang.String name)
          根据枚举常量的名称返回对应的枚举值。
static int[] getValues(java.lang.Class type)
          返回指定枚举类的枚举值的集合。
 int hashCode()
          返回枚举常量的哈希码。
static boolean isDefined(java.lang.Class type, int value)
          枚举类型中是否定义了指定的枚举值对应的枚举常量。
static boolean isDefined(java.lang.Class type, java.lang.String name)
          枚举类型中是否定义了指定的枚举名的枚举常量。
 java.lang.String name()
          返回枚举常量的名称。
static Enum parse(java.lang.Class type, int value)
          根据枚举值返回对应的枚举常量。
static Enum parse(java.lang.Class type, java.lang.String name)
          根据枚举常量的名称返回对应的枚举常量。
 java.lang.String toString()
          返回枚举常量的名称。
 int value()
          返回枚举值。
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

方法详细信息

name

public final java.lang.String name()
返回枚举常量的名称。

返回:
枚举常量的名称。

value

public final int value()
返回枚举值。

返回:
枚举值。

toString

public java.lang.String toString()
返回枚举常量的名称。

覆盖:
java.lang.Object 中的 toString
返回:
枚举常量的名称。

equals

public final boolean equals(java.lang.Object other)
当指定对象等于此枚举常量时,返回 true。

由于枚举值表现为静态的字段,因此直接比较引用便可知两枚举是否相等。

覆盖:
java.lang.Object 中的 equals
参数:
other - 要与此对象进行相等性比较的对象。
返回:
一个布尔值,如果指定对象等于此枚举常量,则返回 true。

hashCode

public final int hashCode()
返回枚举常量的哈希码。

覆盖:
java.lang.Object 中的 hashCode
返回:
枚举常量的哈希码。

getNames

public static final java.lang.String[] getNames(java.lang.Class type)
返回指定枚举类的所有枚举常量的名称的集合。

参数:
type - 指定的枚举类。
返回:
指定枚举类中枚举常量的名称的集合。

getValues

public static int[] getValues(java.lang.Class type)
返回指定枚举类的枚举值的集合。

参数:
type - 指定的枚举类。
返回:
指定枚举类的枚举值的集合。

getEnums

public static Enum[] getEnums(java.lang.Class type)
返回指定枚举类的所有枚举常量。

参数:
type - 指定的枚举类。
返回:
指定枚举类的所有枚举常量。

getNameByValue

public static java.lang.String getNameByValue(java.lang.Class type,
                                              int value)
根据枚举值返回对应的枚举常量的名称。

参数:
type - 指定的枚举类。
value - 指定的枚举值。
返回:
枚举常量的名称。

getValueByName

public static int getValueByName(java.lang.Class type,
                                 java.lang.String name)
根据枚举常量的名称返回对应的枚举值。

参数:
type - 指定的枚举类。
name - 指定的枚举常量的名称。
返回:
枚举值。

parse

public static Enum parse(java.lang.Class type,
                         int value)
根据枚举值返回对应的枚举常量。

参数:
type - 指定的枚举类。
value - 指定的枚举值。
返回:
对应的枚举常量。

parse

public static Enum parse(java.lang.Class type,
                         java.lang.String name)
根据枚举常量的名称返回对应的枚举常量。

参数:
type - 指定的枚举类。
name - 指定的枚举常量的名称。
返回:
枚举常量。

isDefined

public static boolean isDefined(java.lang.Class type,
                                int value)
枚举类型中是否定义了指定的枚举值对应的枚举常量。

参数:
type - 指定的枚举类。
value - 指定的枚举值。
返回:
一个布尔值,true 表示已定义,false 表示未定义。

isDefined

public static boolean isDefined(java.lang.Class type,
                                java.lang.String name)
枚举类型中是否定义了指定的枚举名的枚举常量。

参数:
type - Class 指定的枚举类。
name - String 指定的枚举名。
返回:
一个布尔值,true 表示已定义,false 表示未定义。

getPredefineValues

public static int[] getPredefineValues(java.lang.Class type)
返回 SuperMap iObjects Java 已定的枚举类的枚举值。

参数:
type - 指定的枚举类。
返回:
返回 SuperMap iObjects Java 已定的枚举类的枚举值。