com.hammurapi.config
Interface Path

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
PathImpl

public interface Path
extends org.eclipse.emf.ecore.EObject

A representation of the model object 'Path'. Classpath. Object definitions can have their own classpaths. As a result, users don' t have to download component code and bundle if with the application - it will be downloaded by the classloader when needed. This concept is similar to applets and Java Web Start concept, but classpath is defined at the component level instead of being defined at the application level.

The following features are supported:

See Also:
ConfigPackage.getPath()

Method Summary
 String getBaseUrl()
          Returns the value of the 'Base Url' attribute.
 org.eclipse.emf.common.util.EList<Path> getPath()
          Returns the value of the 'Path' containment reference list.
 org.eclipse.emf.common.util.EList<String> getPathElement()
          Returns the value of the 'Path Element' attribute list.
 org.eclipse.emf.common.util.EList<URL> getUrls(URL baseURL, TokenExpander.TokenSource tokens)
          Returns URL's to construct URL classloader.
 void setBaseUrl(String value)
          Sets the value of the 'Base Url' attribute.
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getPathElement

org.eclipse.emf.common.util.EList<String> getPathElement()
Returns the value of the 'Path Element' attribute list. The list contents are of type String. Path element is a URL relative to the baseUri.

Returns:
the value of the 'Path Element' attribute list.
See Also:
ConfigPackage.getPath_PathElement()

getPath

org.eclipse.emf.common.util.EList<Path> getPath()
Returns the value of the 'Path' containment reference list. The list contents are of type Path. Paths can be nested. Child's path baseUri in this case is evaluated relative to the parent's path baseUri.

Returns:
the value of the 'Path' containment reference list.
See Also:
ConfigPackage.getPath_Path()

getBaseUrl

String getBaseUrl()
Returns the value of the 'Base Url' attribute. Base URL, path elements and base URI's of child paths are evaluated relative to the base URI, if it is not null or blank. This base URL is evaluated relative to baseURL parameter of getUrls method.

Returns:
the value of the 'Base Url' attribute.
See Also:
setBaseUrl(String), ConfigPackage.getPath_BaseUrl()

setBaseUrl

void setBaseUrl(String value)
Sets the value of the 'Base Url' attribute.

Parameters:
value - the new value of the 'Base Url' attribute.
See Also:
getBaseUrl()

getUrls

org.eclipse.emf.common.util.EList<URL> getUrls(URL baseURL,
                                               TokenExpander.TokenSource tokens)
                                               throws ConfigurationException
Returns URL's to construct URL classloader.

Parameters:
baseURL - Base URL for path elements.
tokens - Token source to replace ${...} tokens in path elements.
Throws:
ConfigurationException