Class OptionImpl
java.lang.Object
org.apache.torque.generator.option.OptionImpl
- All Implemented Interfaces:
Option
The default implementation of the option Interface. This class is immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionOptionImpl(String qualifiedName, Object value) Constructs an OptionImpl from the String representation of a QualifiedName and a value.OptionImpl(String namespace, String name, Object value) Constructs an optionImpl from a namespace, a name and a value.OptionImpl(QualifiedName qualifiedName, Object value) Constructs an OptionImpl from a QualifiedaName and a value. -
Method Summary
-
Constructor Details
-
OptionImpl
Constructs an optionImpl from a namespace, a name and a value.- Parameters:
namespace- the namespace of the option, may be null.name- the name of the option, must not be empty.value- the value of the option, may be null.
-
OptionImpl
Constructs an OptionImpl from the String representation of a QualifiedName and a value.- Parameters:
qualifiedName- The String representation of the qualified name of the option, in the form context:name or name. (in the latter case, context is null).value- the value of the option, may be null.- Throws:
IllegalArgumentException- if qualifiedName is not a legal QualifiedName.
-
OptionImpl
Constructs an OptionImpl from a QualifiedaName and a value.- Parameters:
qualifiedName- A qualifiedName containing the context and the name of the option.value- the value of the option, may be null.
-
-
Method Details
-
getQualifiedName
Returns the qualified name of the option.- Specified by:
getQualifiedNamein interfaceOption- Returns:
- the qualified name of the option, not null.
-
getValue
Retursn the value of the option. -
toString
Creates as String representation of this Object for debugging purposes. -
hashCode
public int hashCode() -
equals
-