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.ObjectAn Entry that can be chosen as option.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ObjectdescriptionDescribes the option.private java.lang.ObjectvalueHolds the actual value of the option.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetDescription()java.lang.ObjectgetValue()java.lang.StringgetValueToString()Gets the value of the String.voidsetDescription(java.lang.Object description)voidsetValue(java.lang.Object value)java.lang.StringtoString()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:
toStringin 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.
-
-