net.sf.sparql.benchmarking.loader
Class OperationLoaderArgument

java.lang.Object
  extended by net.sf.sparql.benchmarking.loader.OperationLoaderArgument

public class OperationLoaderArgument
extends Object

Represents information about an operation loader argument

Author:
rvesse

Field Summary
static int TYPE_BOOLEAN
          Indicates the argument type is a boolean
static int TYPE_FILE
          Indicates the argument type is a string denoting a file
static int TYPE_LONG
          Indicates the argument type is a long
static int TYPE_STRING
          Indicates the argument type is a string
 
Constructor Summary
OperationLoaderArgument(String name)
          Creates a new argument
OperationLoaderArgument(String name, int type)
          Creates a new argument
OperationLoaderArgument(String name, String description)
          Creates a new argument
OperationLoaderArgument(String name, String description, int type)
          Creates a new argument
OperationLoaderArgument(String name, String description, int type, boolean optional)
          Creates a new argument
 
Method Summary
 String getDescription()
          Gets a description of the purpose of the argument
 String getName()
          Gets a short name for the argument
 int getType()
          Gets the expected type of the argument
 boolean isOptional()
          Gets whether the argument is optional
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_FILE

public static final int TYPE_FILE
Indicates the argument type is a string denoting a file

See Also:
Constant Field Values

TYPE_LONG

public static final int TYPE_LONG
Indicates the argument type is a long

See Also:
Constant Field Values

TYPE_STRING

public static final int TYPE_STRING
Indicates the argument type is a string

See Also:
Constant Field Values

TYPE_BOOLEAN

public static final int TYPE_BOOLEAN
Indicates the argument type is a boolean

See Also:
Constant Field Values
Constructor Detail

OperationLoaderArgument

public OperationLoaderArgument(String name)
Creates a new argument

Parameters:
name - Short name for the argument

OperationLoaderArgument

public OperationLoaderArgument(String name,
                               int type)
Creates a new argument

Parameters:
name - Short name for the argument
type - Expected argument type

OperationLoaderArgument

public OperationLoaderArgument(String name,
                               String description)
Creates a new argument

Parameters:
name - Short name for the argument
description - Description of the purpose of the argument

OperationLoaderArgument

public OperationLoaderArgument(String name,
                               String description,
                               int type)
Creates a new argument

Parameters:
name - Short name for the argument
description - Description of the purpose of the argument
type - Expected argument type

OperationLoaderArgument

public OperationLoaderArgument(String name,
                               String description,
                               int type,
                               boolean optional)
Creates a new argument

Parameters:
name - Short name for the argument
description - Description of the purpose of the argument
type - Expected argument type
optional - Whether the argument is optional
Method Detail

getName

public String getName()
Gets a short name for the argument

Returns:
Name

getDescription

public String getDescription()
Gets a description of the purpose of the argument

Returns:
Description

isOptional

public boolean isOptional()
Gets whether the argument is optional

Returns:
True if optional, false otherwise

getType

public int getType()
Gets the expected type of the argument

Returns:
Argument type


Copyright © 2014. All Rights Reserved.