Package com.lowagie.toolbox.arguments
Class OptionArgument.Entry
- java.lang.Object
-
- com.lowagie.toolbox.arguments.OptionArgument.Entry
-
- Enclosing class:
- OptionArgument
public class OptionArgument.Entry extends java.lang.Object
An Entry that can be chosen as option.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
description
Describes the option.private java.lang.Object
value
Holds the actual value of the option.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getDescription()
java.lang.Object
getValue()
java.lang.String
getValueToString()
Gets the value of the String.void
setDescription(java.lang.Object description)
void
setValue(java.lang.Object value)
java.lang.String
toString()
String representation of the Entry.
-
-
-
Constructor Detail
-
Entry
public Entry(java.lang.Object value)
Constructs an entry.- Parameters:
value
- the value of the entry (that will be identical to the description)
-
Entry
public Entry(java.lang.Object description, java.lang.Object value)
Constructs an entry.- Parameters:
description
- the description of the entryvalue
- the value of the entry
-
-
Method Detail
-
toString
public java.lang.String toString()
String representation of the Entry.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a description of the entry
-
getValueToString
public java.lang.String getValueToString()
Gets the value of the String.- Returns:
- the toString of the value
-
getDescription
public java.lang.Object getDescription()
- Returns:
- Returns the description.
-
setDescription
public void setDescription(java.lang.Object description)
- Parameters:
description
- The description to set.
-
getValue
public java.lang.Object getValue()
- Returns:
- Returns the value.
-
setValue
public void setValue(java.lang.Object value)
- Parameters:
value
- The value to set.
-
-