edu.internet2.middleware.ldappc.spml
Enum PSPOptions.Mode

java.lang.Object
  extended by java.lang.Enum<PSPOptions.Mode>
      extended by edu.internet2.middleware.ldappc.spml.PSPOptions.Mode
All Implemented Interfaces:
Serializable, Comparable<PSPOptions.Mode>
Enclosing class:
PSPOptions

public static enum PSPOptions.Mode
extends Enum<PSPOptions.Mode>

Represent cli args as requests.


Enum Constant Summary
bulkCalc
          BulkCalcRequest
bulkDiff
          BulkDiffRequest
bulkSync
          BulkSyncRequest
calc
          CalcRequest
diff
          DiffRequest
sync
          SyncRequest
 
Method Summary
abstract  ProvisioningRequest getNewProvisioningRequest()
          Return a newly created ProvisioningRequest appropriate for the mode of operation.
 String getOpt()
          Return the Option name via getOption().getOpt().
abstract  org.apache.commons.cli.Option getOption()
          Return the commons-cli option.
 List<ProvisioningRequest> getRequests(org.apache.commons.cli.CommandLine line)
          Return the ProvisioningRequests resulting from the processing of the command line.
static PSPOptions.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PSPOptions.Mode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

bulkCalc

public static final PSPOptions.Mode bulkCalc
BulkCalcRequest


bulkDiff

public static final PSPOptions.Mode bulkDiff
BulkDiffRequest


bulkSync

public static final PSPOptions.Mode bulkSync
BulkSyncRequest


calc

public static final PSPOptions.Mode calc
CalcRequest


diff

public static final PSPOptions.Mode diff
DiffRequest


sync

public static final PSPOptions.Mode sync
SyncRequest

Method Detail

values

public static PSPOptions.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PSPOptions.Mode c : PSPOptions.Mode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PSPOptions.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getNewProvisioningRequest

public abstract ProvisioningRequest getNewProvisioningRequest()
Return a newly created ProvisioningRequest appropriate for the mode of operation.

Returns:
the newly instantiated ProvisioningRequest

getOpt

public String getOpt()
Return the Option name via getOption().getOpt().

Returns:
the name of the option

getOption

public abstract org.apache.commons.cli.Option getOption()
Return the commons-cli option.

Returns:
the Option

getRequests

public List<ProvisioningRequest> getRequests(org.apache.commons.cli.CommandLine line)
Return the ProvisioningRequests resulting from the processing of the command line.

Parameters:
line - the CommandLine
Returns:
the SPML requests


Copyright © 2012 Internet2. All Rights Reserved.