public class TaurusFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
clearMaps()
Clears internal cache maps.
|
static IExecutionContext |
createAttributeContext(DynamicObject pDynObj)
Create a context with dynamic attributes of the tool descriptor.
|
IElement |
createElement(java.lang.String pElementId,
ElementType pElementTyp)
Creates a new element.
|
IElementList |
createElementList(ElementListStructure pElementListStructure,
ActionDescriptor pAction)
Same as calling
createElementList(ElementListStructure, ActionDescriptor, null,
null). |
IElementList |
createElementList(ElementListStructure pElementListStructure,
ActionDescriptor pAction,
java.lang.String pElementListID)
Same as calling
createElementList(ElementListStructure, ActionDescriptor,
String, null). |
IElementList |
createElementList(ElementListStructure pElementListStructure,
ActionDescriptor pAction,
java.lang.String pElementListID,
IResource pParent)
Creates an
IElementList depending on the given parent
IResource. |
IElementListEntry |
createElementListEntry(IElementList pElementList,
java.lang.String pElementId,
ElementType pElementTyp)
Creates a new element list entry.
|
IElementListEntry |
createElementListEntry(IElementList pElementList,
java.lang.String pElementId,
ElementType pElementTyp,
int pState)
Creates a new element list entry.
|
IElementListEntry |
createElementListEntry(IElementList pElementList,
java.lang.String pElementListEntryID,
IElement pElement)
Creates a new element list entry.
|
IElementListKey |
createElementListKey(ActionDescriptor pAction,
IResource pResource)
Creates an element list key.
|
IErrorFeedbackEntry |
createErrorFeedbackEntry()
Creates a new empty error feedback entry.
|
IErrorFeedbackEntry |
createErrorFeedbackEntry(java.lang.String pFileName,
java.lang.String pMsgText,
java.lang.String pMsgNUMBER,
java.lang.String pMsgLine,
IElement pResource)
Creates an error feedback entry.
|
IErrorFeedbackEntry |
createErrorFeedbackEntry(java.lang.String pFileName,
java.lang.String pMsgText,
java.lang.String pMsgNUMBER,
java.lang.String pMsgLine,
IElement pResource,
java.util.Map<java.lang.String,java.lang.String> pCustomFileAttributes,
java.util.Map<java.lang.String,java.lang.String> pCustomMessageAttributes)
Creates an error feedback entry.
|
IExecutionContext |
createExecutionContext(ISystemImage pTaurusSystem)
Creates a basic execution context.
|
IExecutionContext |
createExecutionContext(ISystemImage pSys,
ActionDescriptor pActionDescriptor)
Creates an execution context.
|
FileDescriptor |
createFileDescriptor()
Creates a new
FileDescriptor. |
IFileResource |
createFileResource(FileDescriptor pFD)
Creates a simple file resource for the given file descriptor.
|
IFilter |
createFilter(FilterType pFilterType,
java.lang.String pID)
Creates a new filter.
|
static IFunctionPackage |
createFunctionPackage(FunctionPackage pFunctionPackage)
Creates a new
IFunctionPackage to wrap the
FunctionPackage model object. |
static IToolInputParameter |
createInputParameter(RToolInParameter pRToolInParameter,
IToolContext pToolContext)
|
IToolExecutor |
createIntegratedToolExecutor()
Deprecated.
the
IntegratedToolExecuter is based on the legacy
tool interface IToolExecutor which should no longer
be used. Use the IToolExecutor2 interface instead. |
ITaurusJob |
createJob(java.lang.String pJobID)
Creates a new Taurus job.
|
ITaurusJob |
createJob(java.lang.String pJobID,
java.lang.String pCacheID)
Creates a new Taurus job.
|
IPropertyValue |
createLinkedPropertyValue(LinkedProperty pProp,
IExecutionContext pContext)
Creates a property value for linked properties.
|
static IModeledToolOutputParameter |
createOutputParameter(RToolOutParameter pRToolOutParameter)
Creates a new
IModeledToolOutputParameter instance based on the
provided RToolOutParameter |
IPropertyValue |
createPropertyValue(Property pProp)
Creates a new property value without a context.
|
IPropertyValue |
createPropertyValue(Property pProperty,
java.lang.String pValue)
Creates a new property value without a context.
|
IPropertyValue |
createPropertyValue(Property pProp,
java.lang.String pValue,
EPropertyValueType pType,
IExecutionContext pContext)
Creates a new property value of a specific type.
|
IPropertyValue |
createPropertyValue(Property pProp,
java.lang.String pText,
IExecutionContext pContext)
Creates a new property value.
|
static ElementListStructure |
createSimpleElementListStructure()
Creates a
ElementListStructure without any columns and a static
ID (ElementListStructure.GENERATED_ID). |
ITableResource |
createTableResource(FileDescriptor pFileDescr)
Creates a new table resource.
|
ITableResource |
createTableResource(FileDescriptor pFileDescr,
java.util.List<ITableResource> pTabEntryListEntryList)
Creates a new table resource.
|
ActionDescriptor |
getAction(java.lang.String pActionID)
Gets the action descriptor with the given ID from the currently loaded
model.
|
IActiveTaurusApplication |
getActiveApplication()
Gets the
IActiveTaurusApplication instance. |
IElementDirectory |
getElementDirectory()
Gets the element directory singleton instance.
|
IElementListDirectory |
getElementListDirectory()
Gets the element list directory singleton instance.
|
ElementListStructure |
getElementListStructure(java.lang.String pElementListStructureID)
Gets the element list structure with the given ID from the currently
loaded model.
|
ElementType |
getElementType(java.lang.String pElementTypeID)
Return the element type for the given element type id.
|
IErrorFeedbackEntryList |
getErrorFeedbackEntryList()
Gets the error feedback list singleton instance.
|
IFilterList |
getFilterList()
Gets the filter list singleton instance.
|
FilterType |
getFilterType(java.lang.String pFilterTypeID)
Return the filter type for the given filter type id.
|
static TaurusFactory |
getInstance()
Gets the singleton instance.
|
IJobDirectory |
getJobDirectory()
Gets the job directory singleton instance.
|
IProcessDirectory |
getProcessDirectory()
Gets the process directory singleton instance.
|
Property |
getProperty(java.lang.String pPropertyID)
Gets a property with the given ID from the currently loaded model.
|
IResource |
getResource(java.lang.String pResourceID)
Gets the
IResource with the given ID from the currently loaded
application. |
java.lang.String |
getSpecialAttributeValue(TAURUSConfiguration pTauConf,
java.lang.String pAttributeName)
Gets a "Specific Attribute" value (Application Options) from the given
AWM model.
|
ITaurusSystemDirectory |
getSystemDirectory()
Gets the system directory singleton instance.
|
TAURUSConfiguration |
getTaurusConfig()
Gets the currently loaded model.
|
ITaurusConfigLoader |
getTaurusConfigLoader()
Gets the singleton instance of the AWM model loader.
|
ToolDescriptor |
getTool(java.lang.String pToolID)
Gets the tool descriptor with the given ID from the currently loaded
model.
|
public static TaurusFactory getInstance()
TaurusFactory instancepublic IElementDirectory getElementDirectory()
IElementDirectory instancepublic IElementList createElementList(ElementListStructure pElementListStructure, ActionDescriptor pAction)
createElementList(ElementListStructure, ActionDescriptor, null,
null).pElementListStructure - the element list structure of the element listpAction - the action which created the element listIElementListpublic IElementList createElementList(ElementListStructure pElementListStructure, ActionDescriptor pAction, java.lang.String pElementListID)
createElementList(ElementListStructure, ActionDescriptor,
String, null).pElementListStructure - the element list structure of the element listpAction - the action which created the element listpElementListID - can be null (an ID will be generated)IElementListpublic IElementList createElementList(ElementListStructure pElementListStructure, ActionDescriptor pAction, java.lang.String pElementListID, IResource pParent)
IElementList depending on the given parent
IResource.pElementListStructure - the element list structure of the element listpAction - the action which created the element listpElementListID - can be null (an ID will be generated)pParent - can be nullIElementListpublic IElementListDirectory getElementListDirectory()
IElementListDirectory instancepublic IProcessDirectory getProcessDirectory()
IProcessDirectory instancepublic IElementListKey createElementListKey(ActionDescriptor pAction, IResource pResource)
pAction - the action descriptorpResource - the resourceIElementListKeypublic IFilterList getFilterList()
IFilterList instancepublic IExecutionContext createExecutionContext(ISystemImage pTaurusSystem)
pTaurusSystem - the systemIExecutionContextpublic IExecutionContext createExecutionContext(ISystemImage pSys, ActionDescriptor pActionDescriptor)
pSys - the system imagepActionDescriptor - an action descriptorIExecutionContextpublic IFilter createFilter(FilterType pFilterType, java.lang.String pID)
pFilterType - the filter typepID - the filter ID (can be null. An unique ID will be
generated.)IFilterpublic ITaurusSystemDirectory getSystemDirectory()
ITaurusSystemDirectory instancepublic FileDescriptor createFileDescriptor()
FileDescriptor. All required file descriptor
attributes must be set manually.public IActiveTaurusApplication getActiveApplication()
IActiveTaurusApplication instance.public IJobDirectory getJobDirectory()
IJobDirectory instancepublic IFileResource createFileResource(FileDescriptor pFD)
pFD - the file descriptorIFileResourcepublic ITaurusJob createJob(java.lang.String pJobID, java.lang.String pCacheID)
pJobID - the job IDpCacheID - the cache IDITaurusJobpublic ITaurusJob createJob(java.lang.String pJobID)
pJobID - the job IDITaurusJobpublic IElement createElement(java.lang.String pElementId, ElementType pElementTyp)
pElementId - the element IDpElementTyp - the element typeIElementpublic IElementListEntry createElementListEntry(IElementList pElementList, java.lang.String pElementId, ElementType pElementTyp) throws TaurusCoreException
pElementList - the element listpElementId - the element IDpElementTyp - the element typeIElementListEntryTaurusCoreException - if the creation of the entry (or the element) failspublic IElementListEntry createElementListEntry(IElementList pElementList, java.lang.String pElementId, ElementType pElementTyp, int pState) throws TaurusCoreException
pElementList - the element listpElementId - the element IDpElementTyp - the element typepState - the element list entry state flagIElementListEntryTaurusCoreException - if the creation of the entry (or the element) failspublic IElementListEntry createElementListEntry(IElementList pElementList, java.lang.String pElementListEntryID, IElement pElement)
pElementList - the element listpElementListEntryID - the cache ID of the entrypElement - the parent elementIElementListEntrypublic ITaurusConfigLoader getTaurusConfigLoader()
ITaurusConfigLoader instancepublic TAURUSConfiguration getTaurusConfig()
TAURUSConfigurationpublic IPropertyValue createLinkedPropertyValue(LinkedProperty pProp, IExecutionContext pContext)
pProp - an Property. Must not be null.pContext - execution contextIPropertyValue with no value.public ITableResource createTableResource(FileDescriptor pFileDescr)
pFileDescr - the structured file descriptor describing the tableITableResourcepublic ITableResource createTableResource(FileDescriptor pFileDescr, java.util.List<ITableResource> pTabEntryListEntryList)
pFileDescr - the structured file descriptor describing the tablepTabEntryListEntryList - the list of ITableResource where the new
ITableResource will be created.ITableResourcepublic IErrorFeedbackEntry createErrorFeedbackEntry(java.lang.String pFileName, java.lang.String pMsgText, java.lang.String pMsgNUMBER, java.lang.String pMsgLine, IElement pResource, java.util.Map<java.lang.String,java.lang.String> pCustomFileAttributes, java.util.Map<java.lang.String,java.lang.String> pCustomMessageAttributes)
pFileName - the source file namepMsgText - the message textpMsgNUMBER - the message numberpMsgLine - the line in which the error occurredpResource - the source elementpCustomFileAttributes - the custom attributes which are defined on file levelpCustomMessageAttributes - the custom attributes which are defined on message levelIErrorFeedbackEntrypublic IErrorFeedbackEntry createErrorFeedbackEntry(java.lang.String pFileName, java.lang.String pMsgText, java.lang.String pMsgNUMBER, java.lang.String pMsgLine, IElement pResource)
pFileName - the source file namepMsgText - the message textpMsgNUMBER - the message numberpMsgLine - the line in which the error occurredpResource - the source elementIErrorFeedbackEntrypublic IErrorFeedbackEntry createErrorFeedbackEntry()
IErrorFeedbackEntrycreateErrorFeedbackEntry(String, String, String, String, IElement)public IErrorFeedbackEntryList getErrorFeedbackEntryList()
IErrorFeedbackEntryList instancepublic java.lang.String getSpecialAttributeValue(TAURUSConfiguration pTauConf, java.lang.String pAttributeName)
pTauConf - the AWM modelpAttributeName - the attribute namenull if no attribute with the
given name exists or no value has been setpublic Property getProperty(java.lang.String pPropertyID)
pPropertyID - the desired property IDnull if no property with the given
ID exists in the currently loaded modelpublic ElementType getElementType(java.lang.String pElementTypeID)
pElementTypeID - id of the element typepublic FilterType getFilterType(java.lang.String pFilterTypeID)
pFilterTypeID - id of the filter typepublic ActionDescriptor getAction(java.lang.String pActionID)
pActionID - the desired action descriptor IDActionDescriptor with the given ID or
null if no action descriptor with the ID existspublic ToolDescriptor getTool(java.lang.String pToolID)
pToolID - the desired tool descriptor IDToolDescriptor with the given ID or null
if no tool descriptor with the ID existspublic static ElementListStructure createSimpleElementListStructure()
ElementListStructure without any columns and a static
ID (ElementListStructure.GENERATED_ID).public ElementListStructure getElementListStructure(java.lang.String pElementListStructureID)
pElementListStructureID - the desired element list structure IDElementListStructure with the given ID or
null if no element list structure with the ID existspublic IResource getResource(java.lang.String pResourceID)
IResource with the given ID from the currently loaded
application.
Note: Will display an error message if no resource with the given ID was not found.
pResourceID - ID of the resourcenull if the
resource was not found.public void clearMaps()
Should not be called by clients.
public IPropertyValue createPropertyValue(Property pProp, java.lang.String pText, IExecutionContext pContext)
pProp - the propertypText - the value (can be null)pContext - execution context (can be null but required for
resolving linked properties with resource identifier)IPropertyValuepublic IPropertyValue createPropertyValue(Property pProp, java.lang.String pValue, EPropertyValueType pType, IExecutionContext pContext)
pProp - the propertypValue - the value (can be null)pType - the property value type (can be null)pContext - execution context (can be null but required for
resolving linked properties with resource identifier)IPropertyValuepublic static IExecutionContext createAttributeContext(DynamicObject pDynObj)
pDynObj - the dynamic objectpublic IPropertyValue createPropertyValue(Property pProperty, java.lang.String pValue)
Note: A context is required for resolving linked properties.
pProperty - the propertypValue - the property value (can be null)IPropertyValuepublic IPropertyValue createPropertyValue(Property pProp)
Note: A context is required for resolving linked properties.
pProp - the propertyIPropertyValuecreatePropertyValue(Property, String, IExecutionContext)@Deprecated public IToolExecutor createIntegratedToolExecutor()
IntegratedToolExecuter is based on the legacy
tool interface IToolExecutor which should no longer
be used. Use the IToolExecutor2 interface instead.IntegratedToolExecuterIntegratedToolExecuterpublic static IToolInputParameter createInputParameter(RToolInParameter pRToolInParameter, IToolContext pToolContext) throws TaurusToolException
pRToolInParameter - the given RToolInParameter which is used to create the
IToolInputParameterpToolContext - the IToolContext which is used to determine the values
for the IToolInputParameter.IToolInputParameterTaurusToolException - if the EParameterTypes of the
RToolInParameter is not supported (e.g. deprecated
parameter type)public static IModeledToolOutputParameter createOutputParameter(RToolOutParameter pRToolOutParameter)
IModeledToolOutputParameter instance based on the
provided RToolOutParameterpRToolOutParameter - the given RToolInParameter which is used to create the
IModeledToolOutputParameterIModeledToolOutputParameter instance or
null if the parameter type is deprecated.public static IFunctionPackage createFunctionPackage(FunctionPackage pFunctionPackage)
IFunctionPackage to wrap the
FunctionPackage model object.pFunctionPackage - the FunctionPackage implementation which should be
wrapped.IFunctionPackage which wraps the provided
FunctionPackage.Copyright © 2015 Micro Focus GmbH. All rights reserved.