|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qedeq.kernel.bo.load.DefaultModuleAddress
An object of this class represents an address for a QEDEQ module.
Constructor Summary | |
DefaultModuleAddress(File file)
Constructor. |
|
DefaultModuleAddress(String address)
Constructor. |
|
DefaultModuleAddress(String address,
DefaultModuleAddress parent)
Constructor. |
|
DefaultModuleAddress(URL u)
Constructor. |
|
DefaultModuleAddress(URL u,
DefaultModuleAddress parent)
Constructor. |
Method Summary | |
ModuleContext |
createModuleContext()
Get module address as ModuleContext . |
String |
createRelativeAddress(ModuleAddress reference)
Create relative address from this to reference . |
static String |
createRelativeAddress(String origin,
String next)
Create relative address from orgin to next . |
boolean |
equals(Object object)
|
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. |
static String |
getModuleFileName(Specification spec)
Get the file name of the specified module. |
static ModuleAddress[] |
getModulePaths(QedeqBo module,
Specification spec)
Get all potential module addresses from a module specification. |
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. |
int |
hashCode()
|
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. |
static String |
newEnding(String address,
String newEnding)
Get module address with new ending. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultModuleAddress(URL u, DefaultModuleAddress parent) throws IOException
u
- Address of module.parent
- Address of parent module
IOException
- if address is formally incorrectpublic DefaultModuleAddress(URL u) throws IOException
u
- Address of module.
IOException
- if address is formally incorrectpublic DefaultModuleAddress(File file) throws IOException
file
- File path of module.
IOException
- Address is formally incorrectpublic DefaultModuleAddress(String address) throws IOException
address
- Address of module.
IOException
- Address is formally incorrectpublic DefaultModuleAddress(String address, DefaultModuleAddress parent) throws IOException
address
- address of moduleparent
- address of parent module
IOException
- if address is formally incorrectMethod Detail |
public final String getAddress()
getAddress
in interface ModuleAddress
public final ModuleContext createModuleContext()
ModuleContext
. Creates a new object.
createModuleContext
in interface ModuleAddress
ModuleContext
.public final String getHeader()
getHeader
in interface ModuleAddress
public final String getPath()
getPath
in interface ModuleAddress
public final String getFileName()
getFileName
in interface ModuleAddress
public final String getName()
.xml
).
getName
in interface ModuleAddress
public final URL getURL()
getURL
in interface ModuleAddress
public final boolean isRelativeAddress()
isRelativeAddress
in interface ModuleAddress
public final boolean isFileAddress()
file:
.
isFileAddress
in interface ModuleAddress
public final String localizeInFileSystem(String url)
localizeInFileSystem
in interface ModuleAddress
url
- transform this URL
public final String createRelativeAddress(ModuleAddress reference)
this
to reference
.
createRelativeAddress
in interface ModuleAddress
reference
- this should be the next location
public final String toString()
public final int hashCode()
public final boolean equals(Object object)
public static final String getModuleFileName(Specification spec)
spec
- here are the (perhaps relative) addresses to
another module
public static final ModuleAddress[] getModulePaths(QedeqBo module, Specification spec) throws IOException
module
- Starting from that module (has an absolute
address).spec
- Here are the (perhaps relative) addresses to
another module.
IOException
- One address is not correctly formed.public static final String createRelativeAddress(String origin, String next)
orgin
to next
.
origin
- This is the original location (URL!).next
- This should be the next location (URL!).
public static final String newEnding(String address, String newEnding)
address
- The address of something (e.g.: a module).newEnding
- This should be the new ending (e.g.: "html").
|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
©left GNU General Public Licence All Rights Reserved. |