org.eclipse.ocl.examples.standalone.validity
Class ValidateCommand.RulesToken
java.lang.Object
org.eclipse.ocl.examples.standalone.StandaloneCommand.CommandToken
org.eclipse.ocl.examples.standalone.validity.ValidateCommand.RulesToken
- Enclosing class:
- ValidateCommand
public static class ValidateCommand.RulesToken
- extends StandaloneCommand.CommandToken
A mandatory argument used to define the paths to the OCL documents
containing the constraints to evaluate. Users can specify one or several
OCL Documents paths in the command line, separated with a whitespace. A
text file containing a list of OCL Documents paths can be used instead,
in which case all OCL constraints defined in all of these documents will
be evaluated sequentially.
Method Summary |
boolean |
check(java.util.List<java.lang.String> strings)
|
java.lang.String |
getArgsHelp()
|
java.util.List<java.lang.String> |
getOCLFileNames(java.util.Map<StandaloneCommand.CommandToken,java.util.List<java.lang.String>> token2strings)
Gets the collection of OCL resources deduced from values specified after
the -rule argument. |
int |
parseArgument(java.util.List<java.lang.String> strings,
java.lang.String[] arguments,
int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValidateCommand.RulesToken
public ValidateCommand.RulesToken()
check
public boolean check(@NonNull
java.util.List<java.lang.String> strings)
- Overrides:
check
in class StandaloneCommand.CommandToken
parseArgument
public int parseArgument(@NonNull
java.util.List<java.lang.String> strings,
@NonNull
java.lang.String[] arguments,
int i)
- Overrides:
parseArgument
in class StandaloneCommand.CommandToken
getArgsHelp
@Nullable
public java.lang.String getArgsHelp()
- Overrides:
getArgsHelp
in class StandaloneCommand.CommandToken
getOCLFileNames
@NonNull
public java.util.List<java.lang.String> getOCLFileNames(@NonNull
java.util.Map<StandaloneCommand.CommandToken,java.util.List<java.lang.String>> token2strings)
- Gets the collection of OCL resources deduced from values specified after
the -rule argument.
- Returns:
- A List of OCL Uris