Class PlaceNameServiceSet
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.layers.placename.PlaceNameServiceSet
-
- All Implemented Interfaces:
AVList
,MessageListener
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
public class PlaceNameServiceSet extends WWObjectImpl implements AVList
-
-
Constructor Summary
Constructors Constructor Description PlaceNameServiceSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addService(PlaceNameService placeNameService, boolean replace)
Add a service to the service set.PlaceNameServiceSet
deepCopy()
long
getExpiryTime()
PlaceNameService
getService(int index)
PlaceNameService
getService(java.lang.String name)
int
getServiceCount()
java.util.List<PlaceNameService>
getServices()
void
setExpiryTime(long expiryTime)
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
-
-
-
Method Detail
-
addService
public boolean addService(PlaceNameService placeNameService, boolean replace)
Add a service to the service set.- Parameters:
placeNameService
- Service to add. May not be null.replace
-true
if the service may replace an equivalent service already in the set.false
if the service may not replace a service already in the set.- Returns:
true
if the service was added to the service set, or if the service replaced an existing item in the service set. Returnsfalse
if the set was not changed.- Throws:
java.lang.IllegalArgumentException
- ifplaceNameService
is null
-
deepCopy
public PlaceNameServiceSet deepCopy()
-
getServiceCount
public final int getServiceCount()
-
getService
public final PlaceNameService getService(int index)
-
getExpiryTime
public final long getExpiryTime()
-
setExpiryTime
public final void setExpiryTime(long expiryTime)
-
getServices
public java.util.List<PlaceNameService> getServices()
-
getService
public PlaceNameService getService(java.lang.String name)
-
-