Hilbert II - Version 0.03.04

org.qedeq.kernel.bo.module
Interface ModuleAddress

All Known Implementing Classes:
DefaultModuleAddress

public interface ModuleAddress

An address for a QEDEQ module.

Version:
$Revision: 1.5 $

Method Summary
 ModuleContext createModuleContext()
          Get module address as ModuleContext.
 String createRelativeAddress(ModuleAddress reference)
          Create relative address from this to reference.
 String getAddress()
          Get module address.
 String getFileName()
          Get module file name.
 String getHeader()
          Get address header (including protocol, host, port, user) but without file path.
 String getName()
          Get name of module (file name without .xml).
 String getPath()
          Get address path (without protocol, host, port and file name).
 URL getURL()
          Get fully qualified URL of module.
 boolean isFileAddress()
          Is this a local QEDEQ file.
 boolean isRelativeAddress()
          Was this module address created relatively?
 String localizeInFileSystem(String url)
          Transform an URL address into a local file path.
 

Method Detail

getAddress

public String getAddress()
Get module address.

Returns:
module address

createModuleContext

public ModuleContext createModuleContext()
Get module address as ModuleContext. Creates a new object.

Returns:
Module address as ModuleContext.

getHeader

public String getHeader()
Get address header (including protocol, host, port, user) but without file path.

Returns:
address header

getPath

public String getPath()
Get address path (without protocol, host, port and file name).

Returns:
module path

getFileName

public String getFileName()
Get module file name.

Returns:
Module file name.

getName

public String getName()
Get name of module (file name without .xml).

Returns:
Module name.

getURL

public URL getURL()
Get fully qualified URL of module.

Returns:
URL for QEDEQ module.

isRelativeAddress

public boolean isRelativeAddress()
Was this module address created relatively?

Returns:
Relatively created?

isFileAddress

public boolean isFileAddress()
Is this a local QEDEQ file. That means the address starts with file:.

Returns:
Is the QEDEQ module a local file?

localizeInFileSystem

public String localizeInFileSystem(String url)
Transform an URL address into a local file path.

Parameters:
url - transform this URL
Returns:
result of transformation

createRelativeAddress

public String createRelativeAddress(ModuleAddress reference)
Create relative address from this to reference.

Parameters:
reference - this should be the next location
Returns:
relative (or if neccessary absolute) address

Hilbert II - Version 0.03.04

©left GNU General Public Licence
All Rights Reserved.