Package org.ka2ddo.yaac.osm
Enum Class SeamarkType
- All Implemented Interfaces:
Serializable
,Comparable<SeamarkType>
,Constable
,AmenityOrWay
,EnumMayHaveFlags
,EnumMayHaveFlags2
public enum SeamarkType
extends Enum<SeamarkType>
implements AmenityOrWay, EnumMayHaveFlags, EnumMayHaveFlags2
Supported types of the OSM seamark:type="*" attribute.
See the definition of seamark object types
on the OpenStreetMap wiki. The corresponding IHO object type information is obtained from the
IHO S-57 specification, Appendix A.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionGet amenity type associated with this enumeration; only for types that are amenities.short
Indicates any flag bits implied by this enum type.int
Indicates any extended flag bits implied by this enum type.Get IHO S-57 object name code corresponding to this OpenSeaMap seamark:type.int
Get the IHO S-57 Appendix B Object code for this seamark type.static SeamarkType
Get the enum value associated with the string name specified.static SeamarkType
Returns the enum constant of this class with the specified name.static SeamarkType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.wayType()
Report the WayType for rendering this type of Way.
-
Enum Constant Details
-
airport
-
anchorage
-
anchor_berth
-
beacon_cardinal
-
beacon_isolated_danger
-
beacon_lateral
-
beacon_safe_water
-
beacon_special_purpose
-
berth
-
bridge
-
bunker_station
-
building
-
builtup_area
-
buoy_cardinal
-
buoy_installation
-
buoy_isolated_danger
-
buoy_lateral
-
buoy_safe_water
-
buoy_special_purpose
-
cable_area
-
cable_overhead
-
cable_submarine
-
causeway
-
caution_area
-
checkpoint
-
coastguard_station
-
coastline
-
communication_area
-
control_point
-
dam
-
daymark
-
depth_area
-
depth_contour
-
distance_mark
-
dredged_area
-
drydock
-
dumping_ground
-
dyke
-
exceptional_structure
-
fairway
-
ferry_route
-
wall
-
fog_signal
-
fortified_structure
-
fishing_facility
-
gate
-
gridiron
-
harbour_basin
-
harbour
-
hulk
-
inshore_traffic_zone
-
lake
-
land_area
-
land_region
-
landmark
-
light
-
light_major
-
light_minor
-
light_float
-
light_vessel
-
lock_basin
-
magnetic_variation
-
marine_farm
-
military_area
-
mooring
-
protected_area
-
notice
-
obstruction
-
oil_barrier
-
platform
-
production_area
-
pilot_boarding
-
pile
-
pipeline_area
-
pipeline_overhead
-
pipeline_submarine
-
pontoon
-
precautionary_area
-
pylon
-
radar_line
-
radar_range
-
radar_reflector
-
radar_transponder
-
radar_station
-
calling_in_point
-
radio_station
-
recommended_route_centreline
-
recommended_track
-
recommended_traffic_lane
-
rescue_station
-
restricted_area
-
retro_reflector
-
river
-
sand_waves
-
seabed_area
-
sea_area
-
seaplane_landing_area
-
shoreline_construction
-
signal_station_traffic
-
signal_station_warning
-
small_craft_facility
-
spring
-
submarine_transit_lane
-
topmark
-
separation_boundary
-
separation_crossing
-
separation_lane
-
separation_line
-
separation_roundabout
-
separation_zone
-
slope_topline
-
sounding
-
tank
-
turning_basin
-
two_way_route
-
rock
-
vegetation
-
virtual_aton
-
vehicle_transfer
-
water_turbulence
-
waterway_gauge
-
weed
-
wreck
-
canal
-
waterfall
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
wayType
Report the WayType for rendering this type of Way.- Specified by:
wayType
in interfaceAmenityOrWay
- Returns:
- WayType
-
getAmenityType
Get amenity type associated with this enumeration; only for types that are amenities.- Specified by:
getAmenityType
in interfaceAmenityOrWay
- Returns:
- AmenityType for this type, or null if not an amenity
-
getFlagMask
public short getFlagMask()Indicates any flag bits implied by this enum type.- Specified by:
getFlagMask
in interfaceEnumMayHaveFlags
- Returns:
- bitmask of flags if this enum implies flags
-
getFlags2Mask
public int getFlags2Mask()Indicates any extended flag bits implied by this enum type.- Specified by:
getFlags2Mask
in interfaceEnumMayHaveFlags2
- Returns:
- bitmask of flags if this enum implies flags
-
getObjectType
Get IHO S-57 object name code corresponding to this OpenSeaMap seamark:type.- Returns:
- IHO S-5 object type name
-
getS57ObjectCode
public int getS57ObjectCode()Get the IHO S-57 Appendix B Object code for this seamark type.- Returns:
- int object type code number
-
value
Get the enum value associated with the string name specified.- Parameters:
name
- String to convert into an Enum- Returns:
- Tourism for the string name, or null if no match
-