oracle.dacf.util.errormanager
Class SimpleErrorAttributeImpl
java.lang.Object
|
+--oracle.dacf.util.errormanager.SimpleErrorAttributeImpl
- All Implemented Interfaces:
- ErrorAttribute
- public class SimpleErrorAttributeImpl
- extends java.lang.Object
- implements ErrorAttribute
The SimpleErrorAttributeImpl class is the simplest implementation of
the ErrorAttribute interface. The class consists of a value for the
error attribute and a label to use when displaying it.
- See Also:
ErrorAtribute
Constructor Summary |
SimpleErrorAttributeImpl(java.lang.String label,
java.lang.String value)
Constructor to create the error attribute. |
Method Summary |
java.lang.String |
getLabel()
Returns the label used when displaying this attribute on the UI. |
java.lang.String |
toString()
Returns the String representation of this attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleErrorAttributeImpl
public SimpleErrorAttributeImpl(java.lang.String label,
java.lang.String value)
- Constructor to create the error attribute.
- Parameters:
label
- the label-text you want to be used by the UI.value
- the string representation of this attribute.
toString
public java.lang.String toString()
- Returns the String representation of this attribute.
- Specified by:
toString
in interface ErrorAttribute
- Overrides:
toString
in class java.lang.Object
- Returns:
- the attribute as a String.
getLabel
public java.lang.String getLabel()
- Returns the label used when displaying this attribute on the UI.
- Specified by:
getLabel
in interface ErrorAttribute
- Returns:
- the label used when displaying the attribute.