com.meyling.principia.module
Class Location
java.lang.Object
|
+--com.meyling.principia.argument.AbstractArgument
|
+--com.meyling.principia.argument.AbstractArgumentList
|
+--com.meyling.principia.module.Location
- All Implemented Interfaces:
- Argument, Textable
- public class Location
- extends AbstractArgumentList
- implements Argument, Textable
Describes the "physical" location of a module for example
a directory.
This is usuallay a full URL like:
"http://www.meyling.com/principia/0_00_47/"
or "file:///principia/".
- Version:
- $Revision 0.00.50$
- Author:
- Michael Meyling
|
Constructor Summary |
Location(Argument[] arguments)
Constructs a location description for a module. |
| Methods inherited from class com.meyling.principia.argument.AbstractArgument |
containsPatternVariables, equals, getHighestNumber, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches |
| Methods inherited from interface com.meyling.principia.argument.Argument |
containsPatternVariables, copy, equals, getArgument, getArgumentSize, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches |
Location
public Location(Argument[] arguments)
throws ArgumentException
- Constructs a location description for a module. This is
a simple
Text that contains an URL that is a directory.
Here it is not tested that it is a formal correct URL.
- Parameters:
arguments - list of arguments- Throws:
ArgumentException - if the argument list
contains not exactly one argument or
the first argument is no instance of
Text or the string is empty.
getText
public final String getText()
- Description copied from interface:
Textable
- Get label of object.
- Specified by:
getText in interface Textable
- Following copied from interface:
com.meyling.principia.module.Textable
- Returns:
- label of object
create
public final Argument create(Argument[] arguments)
throws ArgumentException
- Description copied from interface:
Argument
- Create a new Argument with given arguments.
- Specified by:
create in interface Argument- Overrides:
create in class AbstractArgumentList
- Following copied from interface:
com.meyling.principia.argument.Argument
- Parameters:
arguments - with these arguments the operator should
be created- Returns:
- new constructed Argument
- Throws:
ArgumentException - if creation failed
toString
public final String toString()
- Description copied from interface:
Argument
- Get the argument in
String form.
- Specified by:
toString in interface Argument- Overrides:
toString in class AbstractArgumentList
- Following copied from interface:
com.meyling.principia.argument.Argument
- Returns:
- readable formula