BrightSide Workbench Full Report + Source Code
org.turro.parser.ParserParameter Class Reference
Inheritance diagram for org.turro.parser.ParserParameter:
Collaboration diagram for org.turro.parser.ParserParameter:

Public Member Functions

 ParserParameter (String name, boolean optional, String defaultValue, int order)
 
 ParserParameter (String name, boolean optional, String defaultValue, int order, boolean commaSeparated)
 
String getName ()
 
boolean isOptional ()
 
String getDefaultValue ()
 
int getOrder ()
 
boolean isCommaSeparated ()
 
HashSet< String > getPossibleValues ()
 
void addPossibleValue (String value)
 
int compareTo (ParserParameter o)
 

Protected Attributes

String name
 
boolean optional
 
int order
 
boolean commaSeparated
 
HashSet< String > possibleValues = new HashSet<>()
 
String defaultValue
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file ParserParameter.java.

Constructor & Destructor Documentation

◆ ParserParameter() [1/2]

org.turro.parser.ParserParameter.ParserParameter ( String  name,
boolean  optional,
String  defaultValue,
int  order 
)

◆ ParserParameter() [2/2]

org.turro.parser.ParserParameter.ParserParameter ( String  name,
boolean  optional,
String  defaultValue,
int  order,
boolean  commaSeparated 
)

Definition at line 41 of file ParserParameter.java.

41  {
42  this.name = name;
43  this.optional = optional;
45  this.order = order;
47  }

Member Function Documentation

◆ addPossibleValue()

void org.turro.parser.ParserParameter.addPossibleValue ( String  value)

Definition at line 73 of file ParserParameter.java.

73  {
74  possibleValues.add(value);
75  }

◆ compareTo()

int org.turro.parser.ParserParameter.compareTo ( ParserParameter  o)

Definition at line 78 of file ParserParameter.java.

78  {
79  int result = CompareUtil.compare(order, o.order);
80  if(result == 0) {
81  result = CompareUtil.compare(name, o.name);
82  }
83  if(result == 0) {
84  result = CompareUtil.compare(optional, o.optional);
85  }
86  return result;
87  }

◆ getDefaultValue()

String org.turro.parser.ParserParameter.getDefaultValue ( )

Definition at line 57 of file ParserParameter.java.

57  {
58  return defaultValue;
59  }
Here is the caller graph for this function:

◆ getName()

String org.turro.parser.ParserParameter.getName ( )

Definition at line 49 of file ParserParameter.java.

49  {
50  return name;
51  }

◆ getOrder()

int org.turro.parser.ParserParameter.getOrder ( )

Definition at line 61 of file ParserParameter.java.

61  {
62  return order;
63  }
Here is the caller graph for this function:

◆ getPossibleValues()

HashSet<String> org.turro.parser.ParserParameter.getPossibleValues ( )

Definition at line 69 of file ParserParameter.java.

69  {
70  return possibleValues;
71  }

◆ isCommaSeparated()

boolean org.turro.parser.ParserParameter.isCommaSeparated ( )

Definition at line 65 of file ParserParameter.java.

65  {
66  return commaSeparated;
67  }

◆ isOptional()

boolean org.turro.parser.ParserParameter.isOptional ( )

Definition at line 53 of file ParserParameter.java.

53  {
54  return optional;
55  }

Member Data Documentation

◆ commaSeparated

boolean org.turro.parser.ParserParameter.commaSeparated
protected

Definition at line 33 of file ParserParameter.java.

◆ defaultValue

String org.turro.parser.ParserParameter.defaultValue
protected

Definition at line 35 of file ParserParameter.java.

◆ name

String org.turro.parser.ParserParameter.name
protected

Definition at line 30 of file ParserParameter.java.

◆ optional

boolean org.turro.parser.ParserParameter.optional
protected

Definition at line 31 of file ParserParameter.java.

◆ order

int org.turro.parser.ParserParameter.order
protected

Definition at line 32 of file ParserParameter.java.

◆ possibleValues

HashSet<String> org.turro.parser.ParserParameter.possibleValues = new HashSet<>()
protected

Definition at line 34 of file ParserParameter.java.


The documentation for this class was generated from the following file: