org.eclipse.ocl.examples.standalone.validity
Class ValidateCommand.RulesToken

java.lang.Object
  extended by org.eclipse.ocl.examples.standalone.StandaloneCommand.CommandToken
      extended by 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.


Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.standalone.StandaloneCommand.CommandToken
help, isRequired, name
 
Constructor Summary
ValidateCommand.RulesToken()
           
 
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 org.eclipse.ocl.examples.standalone.StandaloneCommand.CommandToken
getHelp, getName, isRequired, isSingleton, setIsRequired, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidateCommand.RulesToken

public ValidateCommand.RulesToken()
Method Detail

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