ilog.views.maps.format
Class IlvMapDataPathManager

java.lang.Object
  extended by ilog.views.maps.format.IlvMapDataPathManager

public class IlvMapDataPathManager
extends Object

Resolves the absolute path name of a file given its relative filename. This data path manager uses a set of IlvMapDataPathResolvers to resolve paths. This set is managed as a singleton used by the load-on-demand mechanism of JViews Maps.

Since:
JViews 5.0
See Also:
IlvMapDataPathResolver

Method Summary
static void AddDataPathResolver(IlvMapDataPathResolver resolver)
          Adds the specified IlvMapDataPathResolver to the data path manager.
static Enumeration GetDataPathResolvers()
          Returns an enumeration of the resolvers contained in the data path manager.
static boolean RemoveDataPathResolver(IlvMapDataPathResolver resolver)
          Removes the specified IlvMapDataPathResolver from the data path manager.
static String ResolvePath(String filename)
          Resolves the specified filename using the registered resolvers.
static URL ResolveURL(String urlname)
          Resolves the specified URL name using the registered resolvers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

AddDataPathResolver

public static void AddDataPathResolver(IlvMapDataPathResolver resolver)
Adds the specified IlvMapDataPathResolver to the data path manager.

Parameters:
resolver - The IlvMapDataPathResolver.

RemoveDataPathResolver

public static boolean RemoveDataPathResolver(IlvMapDataPathResolver resolver)
Removes the specified IlvMapDataPathResolver from the data path manager.

Parameters:
resolver - The IlvMapDataPathResolver.
Returns:
true if the data path manager contained the specified resolver.

GetDataPathResolvers

public static Enumeration GetDataPathResolvers()
Returns an enumeration of the resolvers contained in the data path manager.

Returns:
An Enumeration of the resolvers.

ResolvePath

public static String ResolvePath(String filename)
Resolves the specified filename using the registered resolvers. If filename is an absolute path name, and the file exists, filename is returned.

Parameters:
filename - The relative path of the filename.
Returns:
The resolved path or null if the resolution failed.

ResolveURL

public static URL ResolveURL(String urlname)
Resolves the specified URL name using the registered resolvers.

Parameters:
urlname - The relative path of the URL.
Returns:
The resolved URL, or null if the resolution failed.
Since:
JViews 5.5


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.