C# Class Deveel.Configuration.OptionBuilder

Datei anzeigen Open project: deveel/deveel-cli Class Usage Examples

Public Methods

Method Description
Create ( ) : Option
Create ( String opt ) : Option
Create ( char opt ) : Option
HasArgument ( ) : OptionBuilder
HasArgument ( bool hasArg ) : OptionBuilder
HasArguments ( ) : OptionBuilder
HasArguments ( int num ) : OptionBuilder
HasOptionalArg ( ) : OptionBuilder
HasOptionalArgs ( ) : OptionBuilder
HasOptionalArgs ( int numArgs ) : OptionBuilder
IsRequired ( ) : OptionBuilder
IsRequired ( bool newRequired ) : OptionBuilder
New ( ) : OptionBuilder
WithArgumentName ( String name ) : OptionBuilder
WithDescription ( String newDescription ) : OptionBuilder
WithLongName ( String newLongopt ) : OptionBuilder
WithType ( OptionType newType ) : OptionBuilder
WithValueSeparator ( ) : OptionBuilder
WithValueSeparator ( char sep ) : OptionBuilder

Private Methods

Method Description
Reset ( ) : void

Method Details

Create() public method

public Create ( ) : Option
return Option

Create() public method

public Create ( String opt ) : Option
opt String
return Option

Create() public method

public Create ( char opt ) : Option
opt char
return Option

HasArgument() public method

public HasArgument ( ) : OptionBuilder
return OptionBuilder

HasArgument() public method

public HasArgument ( bool hasArg ) : OptionBuilder
hasArg bool
return OptionBuilder

HasArguments() public method

public HasArguments ( ) : OptionBuilder
return OptionBuilder

HasArguments() public method

public HasArguments ( int num ) : OptionBuilder
num int
return OptionBuilder

HasOptionalArg() public method

public HasOptionalArg ( ) : OptionBuilder
return OptionBuilder

HasOptionalArgs() public method

public HasOptionalArgs ( ) : OptionBuilder
return OptionBuilder

HasOptionalArgs() public method

public HasOptionalArgs ( int numArgs ) : OptionBuilder
numArgs int
return OptionBuilder

IsRequired() public method

public IsRequired ( ) : OptionBuilder
return OptionBuilder

IsRequired() public method

public IsRequired ( bool newRequired ) : OptionBuilder
newRequired bool
return OptionBuilder

New() public static method

public static New ( ) : OptionBuilder
return OptionBuilder

WithArgumentName() public method

public WithArgumentName ( String name ) : OptionBuilder
name String
return OptionBuilder

WithDescription() public method

public WithDescription ( String newDescription ) : OptionBuilder
newDescription String
return OptionBuilder

WithLongName() public method

public WithLongName ( String newLongopt ) : OptionBuilder
newLongopt String
return OptionBuilder

WithType() public method

public WithType ( OptionType newType ) : OptionBuilder
newType OptionType
return OptionBuilder

WithValueSeparator() public method

public WithValueSeparator ( ) : OptionBuilder
return OptionBuilder

WithValueSeparator() public method

public WithValueSeparator ( char sep ) : OptionBuilder
sep char
return OptionBuilder