com.highdeal.iec.hci
Class JavaActionModel

java.lang.Object
  extended by com.highdeal.iec.hci.ActionModelImpl
      extended by com.highdeal.iec.hci.JavaActionModel
All Implemented Interfaces:
com.highdeal.hci.XMLMarshallable, com.highdeal.iec.hci.ActionModel, com.highdeal.iec.hci.ContextualModel

public class JavaActionModel
extends com.highdeal.iec.hci.ActionModelImpl

This Java class represents a Java action that can be set in a scenario file of an SAP CC Import/Export Connector (IEC) application; Your customized class can be processed by the IEC application at runtime.

Implementation in Your Customized IEC Application

You must develop a Java class that extends the JavaTask abstract class.

During the execution of a scenario, two methods are invoked by the running IEC application:

It can access to other features regarding the following implementations:

Additional Information

Consult the online Help of the SAP CC Connector Administration Tool (CAT Tool) in the related documentation about how to create and configure a scenario and how to add a Java Action component to this scenario file.


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String CONTEXT_PROPERTY
           
static java.lang.String NAME
           
static java.lang.String PROPERTY
           
static java.lang.String TYPE
           
static java.lang.String VALUE
           
 
Fields inherited from class com.highdeal.iec.hci.ActionModelImpl
ACTION_XMLTAG, children, DESCRIPTION_XMLATTR, EMPTYCHILD_XMLTAG, TYPE_XMLATTR, UID_XMLATTR
 
Fields inherited from interface com.highdeal.iec.hci.ContextualModel
SAVE, USAGE
 
Constructor Summary
JavaActionModel()
          Creation of an instance of this model.
 
Method Summary
 void addChild(java.lang.String tagName, com.highdeal.hci.XMLMarshallable child)
           
 java.lang.String getClassName()
          Gets the class name of the Java task to perform.
 java.util.Properties getProperties()
          Gets the properties to initialize the Java task.
 boolean isValid(int level)
           
 void setAttributes(com.highdeal.hci.XMLAttributes atts)
           
 void setClassName(java.lang.String className)
          Sets the class name of the Java task to perform.
 void setNodeContext(java.util.Vector props, java.util.Vector renamedProps, java.util.Vector lastPropertyNames, java.util.Vector deletedProps)
           
 void setProperties(java.util.Properties props)
          Sets the properties to initialize the Java task.
 void xmlDescription(com.highdeal.hci.XMLOutputter output)
           
 
Methods inherited from class com.highdeal.iec.hci.ActionModelImpl
addCharacterData, addChild, addContextProperty, contextPropertyRemoved, contextPropertyRenamed, countChildren, getChildAt, getChildren, getContext, getDescription, getMaxChildCount, getName, getNodeContext, getParent, insertChildAt, isNull, marshal, removeChildAt, removeContextProperty, renameContextProperty, setChildAt, setDescription, setMaxChildCount, setName, setParent, toString, toXML, updateContext, updateContext, xmlTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY

public static final java.lang.String PROPERTY
See Also:
Constant Field Values

CONTEXT_PROPERTY

public static final java.lang.String CONTEXT_PROPERTY
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values
Constructor Detail

JavaActionModel

public JavaActionModel()
Creation of an instance of this model.

Method Detail

setClassName

public void setClassName(java.lang.String className)
Sets the class name of the Java task to perform.

Parameters:
className - The class name of the Java task to perform

getClassName

public java.lang.String getClassName()
Gets the class name of the Java task to perform.

Returns:
The class name of the Java task to perform

setProperties

public void setProperties(java.util.Properties props)
Sets the properties to initialize the Java task.

Parameters:
props - The properties to initialize the Java task

getProperties

public java.util.Properties getProperties()
Gets the properties to initialize the Java task.

Returns:
The properties to initialize the Java task

setNodeContext

public void setNodeContext(java.util.Vector props,
                           java.util.Vector renamedProps,
                           java.util.Vector lastPropertyNames,
                           java.util.Vector deletedProps)

isValid

public boolean isValid(int level)
Specified by:
isValid in interface com.highdeal.iec.hci.ContextualModel
Overrides:
isValid in class com.highdeal.iec.hci.ActionModelImpl

setAttributes

public void setAttributes(com.highdeal.hci.XMLAttributes atts)
Specified by:
setAttributes in interface com.highdeal.hci.XMLMarshallable
Overrides:
setAttributes in class com.highdeal.iec.hci.ActionModelImpl

addChild

public void addChild(java.lang.String tagName,
                     com.highdeal.hci.XMLMarshallable child)
Specified by:
addChild in interface com.highdeal.hci.XMLMarshallable
Overrides:
addChild in class com.highdeal.iec.hci.ActionModelImpl

xmlDescription

public void xmlDescription(com.highdeal.hci.XMLOutputter output)
Overrides:
xmlDescription in class com.highdeal.iec.hci.ActionModelImpl

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)