Package gov.nasa.worldwind.avlist
Interface AVList
-
- All Known Subinterfaces:
Airspace
,AirspaceEditor
,Balloon
,DataRaster
,DataRasterReader
,DataStoreProducer
,DetailLevel
,DrawContext
,ElevationModel
,FileStore
,Globe
,GlobeBalloon
,InputHandler
,Layer
,MilStd2525TacticalGraphic
,Model
,NetworkStatus
,OrbitView
,PointOfInterest
,RetrievalService
,Retriever
,SceneController
,ScreenBalloon
,StereoSceneController
,SurfaceObject
,SurfaceShape
,TacticalCircle
,TacticalGraphic
,TacticalPoint
,TacticalQuad
,TacticalRoute
,TacticalSymbol
,Tessellator
,Tree
,TreeLayout
,TreeModel
,TreeNode
,View
,WorldWindow
,WorldWindowGLDrawable
,WWIcon
,WWObject
,XMLEventParserContext
- All Known Implementing Classes:
AbstractAirspace
,AbstractAirspaceEditor
,AbstractAnnotation
,AbstractAnnotationBalloon
,AbstractAxisArrow
,AbstractBalloon
,AbstractBrowserBalloon.BrowserControl
,AbstractCircularGraphic
,AbstractDataRaster
,AbstractDataRasterReader
,AbstractDataStoreProducer
,AbstractDataStoreProducer.SourceInfo
,AbstractElevationModel
,AbstractFileStore
,AbstractFileStore.StoreLocation
,AbstractGeneralShape
,AbstractGeneralShape.ShapeData
,AbstractGraticuleLayer
,AbstractHotSpot
,AbstractLayer
,AbstractMilStd2525TacticalGraphic
,AbstractRectangularGraphic
,AbstractResizeHotSpot
,AbstractSceneController
,AbstractShape
,AbstractShape.AbstractShapeData
,AbstractShapeEditor
,AbstractSurfaceObject
,AbstractSurfaceRenderable
,AbstractSurfaceShape
,AbstractTacticalGraphic
,AbstractTacticalSymbol
,AbstractTacticalSymbol.IconTexture
,AdvanceForFeint
,Airborne
,AirfieldZone
,Airhead
,AirspaceBuilder.AirspaceBuilderController
,AirspaceBuilder.AirspaceEntry
,Ambush
,AnalyticSurface.AnalyticSurfaceObject
,AnalyticSurface.ClampToGroundSurface
,AnalyticSurface.ShadowSurface
,AnnotationLayer
,AntennaAxes
,AntennaAxes.ShapeData
,AntennaModel
,AntennaModel.ShapeData
,AtomParserContext
,AttackByFirePosition
,AttackRotaryWing
,AudioPlayerAnnotation
,Aviation
,AviationZone
,AVListImpl
,AWTInputHandler
,BalloonResizeController
,BasicArea
,BasicDataFileStore
,BasicElevationModel
,BasicFlyView
,BasicMercatorTiledImageLayer
,BasicModel
,BasicNetworkStatus
,BasicOrbitView
,BasicPointOfInterest
,BasicRasterServer
,BasicRetrievalService
,BasicSceneController
,BasicScheduledTaskService
,BasicTiledImageLayer
,BasicTree
,BasicTreeLayout
,BasicTreeModel
,BasicTreeNode
,BasicView
,BasicXMLEventParserContext
,BathymetryFilterElevationModel
,BattlePosition
,BILRasterReader
,BMNGOneImage
,BMNGWMSLayer
,Boundary
,Box
,Box
,BoxEditor
,BufferedImageRaster
,BufferWrapperRaster
,ButtonAnnotation
,ByteBufferRaster
,CachedDataRaster
,CachedRenderableLayer
,Cake
,Cake.Layer
,CappedCylinder
,CappedEllipticalCylinder
,CircularFireSupportArea
,CircularPositionArea
,CircularRangeFan
,ColladaMeshShape
,ColladaMeshShape.ShapeData
,ColladaParserContext
,CombatSupportArea
,CompassLayer
,CompoundElevationModel
,Cone
,ConeEditor
,ConfiguringGLRuntimeCapabilities.MyGLAutoDrawable
,ContourList
,CountryBoundariesLayer
,CrosshairLayer
,Curtain
,Cylinder
,CylinderEditor
,DataInstaller
,DDSRasterReader
,DebuggingGLErrors.MyGLAutoDrawable
,DialogAnnotation
,DialogAnnotation.BusyImage
,DirectedPath
,DirectedSurfacePolyline
,DirectionOfAttack
,DirectionOfAttackAviation
,DirectionOfAttackForFeint
,DoseRateContourLine
,DragControl
,DrawContextImpl
,DTEDRasterReader
,Dummy
,Earth
,EarthFlat
,EchelonSymbol
,EditorAnnotation
,ElevationPlane
,Ellipsoid
,EllipsoidalGlobe
,Encirclement
,ExtrudedPolygon
,ExtrudedPolygon.ShapeData
,ExtrudedPolygonBuilder.PolygonBuilderController
,ExtrudedPolygonBuilder.PolygonEntry
,ExtrudedPolygonEditor
,FileSet
,FileSetPreviewImageGenerator
,FileSetRPF
,FileStoreDataSet
,FilledArea
,FireSupportLine
,FlatGlobe
,FortifiedArea
,ForwardEdgeOfBattleArea
,ForwardEdgeOfBattleArea.FEBASymbol
,ForwardLineOfOwnTroops
,FrameResizeControl
,GARSGraticuleLayer
,GDALDataRaster
,GDALDataRasterReader
,Geometry
,GeotiffRasterReader
,GliderImage
,GliderImageLayer
,GliderRegionOfInterest
,GliderWorldWindow
,GlobeAnnotation
,GlobeAnnotationBalloon
,GraticuleRenderingParams
,GroupOfTargets
,GXParserContext
,HighResolutionTerrain
,HoldingLine
,HTTPRetriever
,IconLayer
,ImageAnnotation
,ImageIORasterReader
,InfiltrationLane
,IrregularFireSupportArea
,JarRetriever
,KMLAbstractBalloon
,KMLContainerTreeNode
,KMLController
,KMLExtrudedPolygonImpl
,KMLFeatureTreeNode
,KMLGlobeBalloonImpl
,KMLGroundOverlayPolygonImpl
,KMLLayerTreeNode
,KMLLineStringPlacemarkImpl
,KMLModelPlacemarkImpl
,KMLNetworkLinkTreeNode
,KMLParserContext
,KMLPointPlacemarkImpl
,KMLPolygonImpl
,KMLRegion.RegionData
,KMLScreenBalloonImpl
,KMLScreenImageImpl
,KMLSurfaceImageImpl
,KMLSurfacePolygonImpl
,LandsatI3WMSLayer
,LatLonGraticuleLayer
,LayerList
,LayerManagerLayer
,LayerTree
,LayerTreeModel
,LayerTreeNode
,LazilyLoadedTexture
,Level
,LevelSet
,LicenseAgreement
,LimitedAccessArea
,LimitedAccessSymbol
,LinearTarget
,LineBuilder
,LineOfContact
,LocalElevationModel
,LocalRasterServerElevationModel
,LocalRasterServerLayer
,LocalRasterServerRetriever
,MainAttack
,MarkerLayer
,MarkersOrder.AppFrame.TimedMarkerLayer
,MeasureTool
,MeasureTool.ControlPoint
,MeasureTool.ControlPointWithLeader
,MeasureTool.CustomRenderableLayer
,MercatorTiledImageLayer
,MGRSGraticuleLayer
,MilStd2525PointGraphic
,MilStd2525TacticalSymbol
,MilStd2525UnitsFormat
,MinimumSafeDistanceZones
,MipMappedBufferedImageRaster
,MSVirtualEarthLayer
,MultiResolutionPath.MultiResolutionPathData
,MunitionFlightPath
,NASAWFSPlaceNameLayer
,NoOpInputHandler
,OffenseArea
,OpenStreetMapShapefileLoader.TextAndShapesLayer
,Orbit
,OSMCycleMapLayer
,OSMMapnikLayer
,PartialCappedCylinder
,Path
,Path.PathData
,Pedestal
,PhaseLine
,PickedObject
,PickFrustum.PickFrustumLayer
,PlaceNameLayer
,PlaceNameServiceSet
,PointGrid
,PointPlacemark
,PolyArc
,Polygon
,Polygon
,Polygon.ShapeData
,PolygonEditor
,PrincipleDirectionOfFire
,ProgressAnnotation
,PullUpPoint
,Pyramid
,PyramidEditor
,RadarVolume
,RadarVolume.ShapeData
,RasterControlPointList
,RasterControlPointList.ControlPoint
,RectangularFireSupportArea
,RectangularPositionArea
,RectangularTarget
,RectangularTessellator
,RenderableLayer
,RigidShape
,RigidShape.ShapeData
,RigidShapeBuilder.AbstractShapeBuilderController
,RigidShapeBuilder.AbstractShapeEntry
,RigidShapeEditor
,Route
,Route
,RoutePoint
,RPFRasterReader
,RPFTiledImageLayer
,SARAnnotation
,SARSegmentPlane
,SARTrack
,ScalebarLayer
,ScreenAnnotation
,ScreenAnnotationBalloon
,ScreenCreditImage
,ScreenImage
,ScreenRelativeAnnotation
,ScreenSelector
,ScreenSizeDetailLevel
,ScrollBar.ScrollControl
,ScrollBar.ScrollKnob
,ScrollFrame
,SearchArea
,SectorRangeFan
,SectorSelector
,SectorSelector.RegionShape
,SegmentPlane
,SegmentPlaneEditor
,ShapeDataCache.ShapeDataCacheEntry
,SkyColorLayer
,SkyGradientLayer
,SlideShowAnnotation
,Smoke
,SpecialInterestArea
,SphereAirspace
,SphereAirspaceEditor
,StarsLayer
,StatusLayer
,StatusLayer.StatusMGRSLayer
,StatusLayer.StatusUTMLayer
,StereoOptionSceneController
,SupportByFirePosition
,SupportingAttack
,SurfaceBox
,SurfaceCircle
,SurfaceEllipse
,SurfaceIcon
,SurfaceIcons
,SurfaceImage
,SurfaceImageLayer
,SurfaceMultiPolygon
,SurfacePolygon
,SurfacePolygons
,SurfacePolyline
,SurfacePolylines
,SurfaceQuad
,SurfaceSector
,SurfaceSquare
,SurfaceText
,SymbolCode
,TacticalGraphicSymbol
,TerrainProfileLayer
,ThreadedTaskService
,TiledElevationProducer
,TiledImageLayer
,TiledImageProducer
,TiledRasterProducer
,ToolTipAnnotation
,ToolTipAnnotation
,TrackAirspace
,TreeHotSpot
,UnitsFormat
,URLRetriever
,USDANAIPWMSImageLayer
,UserFacingIcon
,USGSDigitalOrtho
,USGSTopoHighRes
,USGSTopoLowRes
,USGSTopoMedRes
,USGSUrbanAreaOrtho
,UTMBaseGraticuleLayer
,UTMGraticuleLayer
,ViewControlsLayer
,ViewVolumeViewer.SectorGeometryLayer
,ViewVolumeViewer.ViewVolumeLayer
,WCSElevationModel
,WeaponsFreeZone
,Wedge
,WedgeEditor
,WMSBasicElevationModel
,WMSTiledImageLayer
,WorldMapLayer
,WorldWindowGLAutoDrawable
,WorldWindowGLCanvas
,WorldWindowGLJPanel
,WorldWindowImpl
,WWDotNetLayerSetConverter
,WWObjectImpl
,WWOMeasureTool
,WWOMeasureToolControlPoints.ControlPoint
,WWOUnitsFormat
,XALParserContext
,ZeroElevationModel
public interface AVList
An interface for managing an attribute-value pair collection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the specified all-property property change listener that will be called for all list changes.void
addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Adds a property change listener for the specified key.AVList
clearList()
AVList
copy()
Returns a shallow copy of thisAVList
instance: the keys and values themselves are not cloned.void
firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Calls all registered property change listeners with the specified property change event.void
firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Calls all property change listeners associated with the specified key.java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>>
getEntries()
java.lang.String
getStringValue(java.lang.String key)
Returns the value for a specified key.java.lang.Object
getValue(java.lang.String key)
Returns the value for a specified key.java.util.Collection<java.lang.Object>
getValues()
boolean
hasKey(java.lang.String key)
Indicates whether a key is in the collection.java.lang.Object
removeKey(java.lang.String key)
Removes a specified key from the collection if the key exists, otherwise returns without affecting the collection.void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the specified all-property property change listener.void
removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Removes a property change listener associated with the specified key.java.lang.Object
setValue(java.lang.String key, java.lang.Object value)
Adds a key/value pair to the list.AVList
setValues(AVList avList)
Adds the contents of another attribute-value list to the list.
-
-
-
Method Detail
-
setValue
java.lang.Object setValue(java.lang.String key, java.lang.Object value)
Adds a key/value pair to the list. Replaces an existing key/value pair if the list already contains the key.- Parameters:
key
- the attribute name. May not benull
.value
- the attribute value. May benull
, in which case any existing value for the key is removed from the collection.- Returns:
- previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified key, if the implementation supports null values.
- Throws:
java.lang.NullPointerException
- ifkey
isnull
.
-
setValues
AVList setValues(AVList avList)
Adds the contents of another attribute-value list to the list. Replaces an existing key/value pair if the list already contains the key.- Parameters:
avList
- the list to copy. May not benull
.- Returns:
this
, a self reference.- Throws:
java.lang.NullPointerException
- ifavList
isnull
.
-
getValue
java.lang.Object getValue(java.lang.String key)
Returns the value for a specified key.- Parameters:
key
- the attribute name. May not benull
.- Returns:
- the attribute value if one exists in the collection, otherwise
null
. - Throws:
java.lang.NullPointerException
- ifkey
isnull
.
-
getValues
java.util.Collection<java.lang.Object> getValues()
-
getStringValue
java.lang.String getStringValue(java.lang.String key)
Returns the value for a specified key. The value must be aString
.- Parameters:
key
- the attribute name. May not benull
.- Returns:
- the attribute value if one exists in the collection, otherwise
null
. - Throws:
java.lang.NullPointerException
- ifkey
isnull
.WWRuntimeException
- if the value in the collection is not aString
type.
-
getEntries
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> getEntries()
-
hasKey
boolean hasKey(java.lang.String key)
Indicates whether a key is in the collection.- Parameters:
key
- the attribute name. May not benull
.- Returns:
true
if the key exists in the collection, otherwisefalse
.- Throws:
java.lang.NullPointerException
- ifkey
isnull
.
-
removeKey
java.lang.Object removeKey(java.lang.String key)
Removes a specified key from the collection if the key exists, otherwise returns without affecting the collection.- Parameters:
key
- the attribute name. May not benull
.- Returns:
- previous value associated with specified key, or null if there was no mapping for key.
- Throws:
java.lang.NullPointerException
- ifkey
isnull
.
-
addPropertyChangeListener
void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Adds a property change listener for the specified key.- Parameters:
propertyName
- the key to associate the listener with.listener
- the listener to associate with the key.- Throws:
java.lang.IllegalArgumentException
- if eitherpropertyName
orlistener
is null- See Also:
PropertyChangeSupport
-
removePropertyChangeListener
void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Removes a property change listener associated with the specified key.- Parameters:
propertyName
- the key associated with the change listener.listener
- the listener to remove.- Throws:
java.lang.IllegalArgumentException
- if eitherpropertyName
orlistener
is null- See Also:
PropertyChangeSupport
-
addPropertyChangeListener
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the specified all-property property change listener that will be called for all list changes.- Parameters:
listener
- the listener to call.- Throws:
java.lang.IllegalArgumentException
- iflistener
is null- See Also:
PropertyChangeSupport
-
removePropertyChangeListener
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the specified all-property property change listener.- Parameters:
listener
- the listener to remove.- Throws:
java.lang.IllegalArgumentException
- iflistener
is null- See Also:
PropertyChangeSupport
-
firePropertyChange
void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Calls all property change listeners associated with the specified key. No listeners are called ifodValue
andnewValue
are equal and non-null.- Parameters:
propertyName
- the keyoldValue
- the value associated with the key before the even causing the firing.newValue
- the new value associated with the key.- Throws:
java.lang.IllegalArgumentException
- ifpropertyName
is null- See Also:
PropertyChangeSupport
-
firePropertyChange
void firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Calls all registered property change listeners with the specified property change event.- Parameters:
propertyChangeEvent
- the event- Throws:
java.lang.IllegalArgumentException
- ifpropertyChangeEvent
is null- See Also:
PropertyChangeSupport
-
copy
AVList copy()
Returns a shallow copy of thisAVList
instance: the keys and values themselves are not cloned.- Returns:
- a shallow copy of this
AVList
.
-
clearList
AVList clearList()
-
-