org.ujoframework.core
Class UjoActionImpl
java.lang.Object
org.ujoframework.core.UjoActionImpl
- All Implemented Interfaces:
- UjoAction
public class UjoActionImpl
- extends java.lang.Object
- implements UjoAction
A default implementation of the UjoAction.
- Author:
- Pavel Ponec
| Fields inherited from interface org.ujoframework.UjoAction |
ACTION_CLONE, ACTION_COPY, ACTION_CSV_EXPORT, ACTION_CSV_IMPORT, ACTION_RESBUNDLE_EXPORT, ACTION_RESBUNDLE_IMPORT, ACTION_TABLE_SHOW, ACTION_TO_STRING, ACTION_UNDEFINED, ACTION_XML_ELEMENT, ACTION_XML_EXPORT, ACTION_XML_IMPORT, ACTION_ZERO_REPLACE, DUMMY |
|
Method Summary |
java.lang.Object |
getContext()
Returns a conetxt of the action. |
int |
getType()
Returns a type of the action. |
java.lang.String |
toString()
String value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UjoActionImpl
public UjoActionImpl(int type,
java.lang.Object context)
UjoActionImpl
public UjoActionImpl(java.lang.Object context)
UjoActionImpl
public UjoActionImpl(int type)
getType
public final int getType()
- Returns a type of the action. The default type is ACTION_UNDEFINED.
- Numbers are reserved in range (from 0 to 999 include) for an internal usage of the UJO Framework.
- Zero is an undefined action
- Negative values are free for general usage too
The number can be useful for a resolution of an action for a different purpose (e.g. export to 2 different XML files).
- Specified by:
getType in interface UjoAction
getContext
public final java.lang.Object getContext()
- Returns a conetxt of the action. The value is dedicated to a user usage and the value can be null.
- Specified by:
getContext in interface UjoAction
toString
public java.lang.String toString()
- String value
- Overrides:
toString in class java.lang.Object
Copyright © 2010. All Rights Reserved.