TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

com.tibco.amsb.core.task.ui.property
Class MediationTaskMapperAdapter

java.lang.Object
  extended by com.tibco.xml.mapper.schema.emfapi.EMapperModelInputOutputAdapter
      extended by com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter
          extended by com.tibco.amsb.core.task.ui.property.MediationTaskMapperAdapter

public class MediationTaskMapperAdapter
extends com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

Helper class used by the mapper to define the labels and values for the left and right sides of the mapper user interface. Custom mediation tasks can extend this class to obtain different behavior for their use of the mapper.


Field Summary
protected  TaskEditPart editPart
           
protected  BaseMapperSection mapperSection
           
protected  MediationTask task
           
 
Constructor Summary
MediationTaskMapperAdapter()
          Constructor used by the mapper section.
 
Method Summary
 org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
           
 java.lang.String getSourceTreeHeader()
          Return the display string for the source (left) panel.
 java.util.List<java.lang.String> getSourceTreeRootLabels()
          Return a list of strings that define labels for each source particle term.
 java.util.List<org.eclipse.xsd.XSDTerm> getSourceXSDTerms()
           
 java.lang.String getTargetTreeHeader()
          Return the display string for the target (right) panel.
 org.eclipse.swt.graphics.Image getTargetTreeRootImage()
          Return an image for the single target value.
 java.lang.String getTargetTreeRootLabel()
          Return a label for the single target value term.
 org.eclipse.xsd.XSDTerm getTargetXSDTerm()
           
 java.lang.String getXSLT()
          Accessor method to get the xslt string.
 boolean isUntypedInputMode()
           
 void setInput(BaseMapperSection section, TaskEditPart editPart, MediationTask task)
          Set the values that determine what this adapter does
 void setXSLT(java.lang.String newXslt)
          Accessor method to set the xslt string.
 
Methods inherited from class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter
getTargetTreeInfoTextOverride, getUntypedInputModes
 
Methods inherited from class com.tibco.xml.mapper.schema.emfapi.EMapperModelInputOutputAdapter
getGlobalResourceSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editPart

protected TaskEditPart editPart

mapperSection

protected BaseMapperSection mapperSection

task

protected MediationTask task
Constructor Detail

MediationTaskMapperAdapter

public MediationTaskMapperAdapter()
Constructor used by the mapper section.

Method Detail

setInput

public void setInput(BaseMapperSection section,
                     TaskEditPart editPart,
                     MediationTask task)
Set the values that determine what this adapter does

Parameters:
section -
editPart -
task -

getSourceTreeRootLabels

public java.util.List<java.lang.String> getSourceTreeRootLabels()
Return a list of strings that define labels for each source particle term.

Specified by:
getSourceTreeRootLabels in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

getTargetTreeRootImage

public org.eclipse.swt.graphics.Image getTargetTreeRootImage()
Return an image for the single target value.

Specified by:
getTargetTreeRootImage in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

getTargetTreeRootLabel

public java.lang.String getTargetTreeRootLabel()
Return a label for the single target value term.

Specified by:
getTargetTreeRootLabel in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

getXSLT

public java.lang.String getXSLT()
Accessor method to get the xslt string.

Specified by:
getXSLT in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

setXSLT

public void setXSLT(java.lang.String newXslt)
Accessor method to set the xslt string.

Specified by:
setXSLT in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

getSourceTreeHeader

public java.lang.String getSourceTreeHeader()
Return the display string for the source (left) panel.

Overrides:
getSourceTreeHeader in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

getTargetTreeHeader

public java.lang.String getTargetTreeHeader()
Return the display string for the target (right) panel.

Overrides:
getTargetTreeHeader in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

isUntypedInputMode

public boolean isUntypedInputMode()
Overrides:
isUntypedInputMode in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

getResourceSet

public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
Specified by:
getResourceSet in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

getSourceXSDTerms

public java.util.List<org.eclipse.xsd.XSDTerm> getSourceXSDTerms()
Specified by:
getSourceXSDTerms in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

getTargetXSDTerm

public org.eclipse.xsd.XSDTerm getTargetXSDTerm()
Specified by:
getTargetXSDTerm in class com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter

TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

Copyright © 2010 TIBCO Software Inc. All Rights Reserved.