com.informatica.powercenter.sdk.mapfwk.core
Class MappBase

java.lang.Object
  extended by com.informatica.powercenter.sdk.mapfwk.core.MappBase
Direct Known Subclasses:
Mapping, Mapplet

public class MappBase
extends java.lang.Object

This class is base class for mapplet and mapping object.

Author:
rjain
See Also:
Source, Transform

Field Summary
protected  java.lang.String conflictResolution
          conflict resolution constant
protected  boolean isModified
          Is the folder modified
protected  java.util.Vector m_objMetaExtensions
          Collection of metadata extensions
protected  java.util.Vector m_objShortCuts
          Vector of shortCuts objects
protected  java.util.Vector m_objSources
          Collection of Source objects
protected  java.util.Vector m_objTransforms
          Collection of Transformation objects
protected  Folder m_parentFolder
          Parent folder of the Mapping/Mapplet
protected  java.lang.String m_strBusinessName
          Business name of the MappBase(Mapplet/Mapping)
protected  java.lang.String m_strDesc
          Description of the mapplet/mapping
protected  java.lang.String m_strName
          Name of the MappBase(Mapplet/Mapping)
protected  java.util.Vector m_vMpngVariables
          Collection of Mapping variables
 
Constructor Summary
MappBase(java.lang.String name, java.lang.String busName, java.lang.String desc)
          Initialize the object with name, business name and description
 
Method Summary
 void addMappingVariable(MappingVariable mpngVariable)
          To set the mapping variable
 void addMetaExtension(MetaExtension extn)
          Add metadata extension
 void addShortCut(ShortCut shortCutObj)
          add Shortcut object to mappbase
 void addSource(Source s)
          Add a source object
 void addTransformation(Transformation transform)
          Add a transformation object
 java.lang.String getBusinessName()
          Return the business name
 java.lang.String getConflictResolution()
          Get conflict Resolution
 java.lang.String getDesc()
          Return the descriptoin
 java.util.Vector getMappingVariables()
          Returns a Vector of mappingVariables that have been added.
 java.util.Vector getMetaExtensions()
          Get metadata extension
 java.lang.String getName()
          Return the name
 Folder getParentFolder()
          Returns the parent folder of the mapping/mapplet
 java.util.Vector getShortCuts()
          return Vector of shortcut objects
 java.util.Vector getSource()
          Return Collection of Source objects
 java.util.Vector getTransformation()
          Return collection of Transformation objects
 Transformation getTransformation(java.lang.String name)
          Return the transformation for a given transformation name
 boolean isModified()
          Is modified
 void removeSource(Source s)
          Remove a source object
 void removeTransformation(Transformation transform)
          Remove a transformation object
 void setBusinessName(java.lang.String businessName)
          Set the business name
 void setConflictResolution(java.lang.String conflictResolution)
          Setting conflict resolution
 void setDesc(java.lang.String desc)
          Set the description
 void setModified(boolean isModified)
          Set modified
 void setName(java.lang.String name)
          Set the name
 void setParentFolder(Folder folder)
          Sets the parent folder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_strName

protected java.lang.String m_strName
Name of the MappBase(Mapplet/Mapping)


m_strBusinessName

protected java.lang.String m_strBusinessName
Business name of the MappBase(Mapplet/Mapping)


m_strDesc

protected java.lang.String m_strDesc
Description of the mapplet/mapping


m_objSources

protected java.util.Vector m_objSources
Collection of Source objects


m_objTransforms

protected java.util.Vector m_objTransforms
Collection of Transformation objects


m_vMpngVariables

protected java.util.Vector m_vMpngVariables
Collection of Mapping variables


conflictResolution

protected java.lang.String conflictResolution
conflict resolution constant


m_objMetaExtensions

protected java.util.Vector m_objMetaExtensions
Collection of metadata extensions


m_parentFolder

protected Folder m_parentFolder
Parent folder of the Mapping/Mapplet


isModified

protected boolean isModified
Is the folder modified


m_objShortCuts

protected java.util.Vector m_objShortCuts
Vector of shortCuts objects

Constructor Detail

MappBase

public MappBase(java.lang.String name,
                java.lang.String busName,
                java.lang.String desc)
Initialize the object with name, business name and description

Parameters:
name - mapping/mapplet name
busName - business name for the mapping/mapplet
desc - description for the mapping/mapplet
Method Detail

getMappingVariables

public java.util.Vector getMappingVariables()
Returns a Vector of mappingVariables that have been added.

Returns:
vector of MappingVariable

addMappingVariable

public void addMappingVariable(MappingVariable mpngVariable)
To set the mapping variable

Parameters:
mpngVariable -

getParentFolder

public Folder getParentFolder()
Returns the parent folder of the mapping/mapplet

Returns:
Folder

setParentFolder

public void setParentFolder(Folder folder)
Sets the parent folder

Parameters:
folder - The parent or containing folder of the mapping/mapplet

getBusinessName

public java.lang.String getBusinessName()
Return the business name

Returns:
Returns the business name as a String value

setBusinessName

public void setBusinessName(java.lang.String businessName)
Set the business name

Parameters:
businessName - The business name to set.

getDesc

public java.lang.String getDesc()
Return the descriptoin

Returns:
Returns the description.

setDesc

public void setDesc(java.lang.String desc)
Set the description

Parameters:
desc - The description to set.

getName

public java.lang.String getName()
Return the name

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Set the name

Parameters:
name - The name to set.

addSource

public void addSource(Source s)
Add a source object

Parameters:
s - source object

removeSource

public void removeSource(Source s)
Remove a source object

Parameters:
s - source object

addTransformation

public void addTransformation(Transformation transform)
Add a transformation object

Parameters:
transform - Transformation object

removeTransformation

public void removeTransformation(Transformation transform)
Remove a transformation object

Parameters:
transform - Transformation object

getTransformation

public java.util.Vector getTransformation()
Return collection of Transformation objects

Returns:
Returns the m_objTransforms.

getTransformation

public Transformation getTransformation(java.lang.String name)
Return the transformation for a given transformation name

Parameters:
name -
Returns:
Transformation
See Also:
Transformation

getSource

public java.util.Vector getSource()
Return Collection of Source objects

Returns:
Returns vector of source objects

getConflictResolution

public java.lang.String getConflictResolution()
Get conflict Resolution

Returns:
Returns the conflictResolution.

setConflictResolution

public void setConflictResolution(java.lang.String conflictResolution)
Setting conflict resolution

Parameters:
conflictResolution - The conflictResolution to set.

addMetaExtension

public void addMetaExtension(MetaExtension extn)
Add metadata extension

Parameters:
extn -

getMetaExtensions

public java.util.Vector getMetaExtensions()
Get metadata extension

Returns:
Returns the vector of meta data extensions

isModified

public boolean isModified()
Is modified

Returns:

setModified

public void setModified(boolean isModified)
Set modified

Parameters:
isModified -

addShortCut

public void addShortCut(ShortCut shortCutObj)
add Shortcut object to mappbase

Parameters:
shortCutObj -

getShortCuts

public java.util.Vector getShortCuts()
return Vector of shortcut objects

Returns: