|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.option.OptionImpl
public class OptionImpl
The default implementation of the option Interface. This class is immutable.
Constructor Summary | |
---|---|
OptionImpl(QualifiedName qualifiedName,
Object value)
Constructs an OptionImpl from a QualifiedaName and a value. |
|
OptionImpl(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. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
QualifiedName |
getQualifiedName()
Returns the qualified name of the option. |
Object |
getValue()
Retursn the value of the option. |
int |
hashCode()
|
String |
toString()
Creates as String representation of this Object for debugging purposes. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OptionImpl(String namespace, String name, Object value)
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.public OptionImpl(String qualifiedName, Object value)
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.
IllegalArgumentException
- if qualifiedName is not a legal
QualifiedName.public OptionImpl(QualifiedName qualifiedName, Object value)
qualifiedName
- A qualifiedName containing the context
and the name of the option.value
- the value of the option, may be null.Method Detail |
---|
public QualifiedName getQualifiedName()
getQualifiedName
in interface Option
public Object getValue()
getValue
in interface Option
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |