public class TaurusModelUtilities
extends java.lang.Object
Copyright Micro Focus GmbH.
| Modifier and Type | Class and Description |
|---|---|
static class |
TaurusModelUtilities.EParameterFrom
Enumeration for sources of resolved parameter values.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DYN_ATTRIBUTE_JOB_AFTER_ACTION
Job After Action.
|
static java.lang.Object |
MODEL_ENCODING_DEFAULT
Default encoding for AWM models.
|
| Constructor and Description |
|---|
TaurusModelUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsFunctionPackage(TAURUSConfiguration pModel,
java.lang.String pFunctionPackageID)
Gets whether a function package with the given ID exists in the model.
|
static void |
createModel(org.eclipse.core.resources.IFile pModelFile,
TemplateModelExtension pTemplate,
org.eclipse.core.runtime.IProgressMonitor pMon)
Creates an AWM model file.
|
static ToolDescriptor |
findDialogTool(ToolDescriptor pTool,
java.lang.String pPanelName)
Searches for a ISPF panel tool descriptor with the given panel name.
|
static IElement |
findLinkedElement(ITaurusApplication pApplication,
java.lang.String pResourceIdentifier,
java.lang.String pLinkedElementTypeID)
Finds a linked element from the given resource identifier.
|
static IElement |
findLinkedElement(ITaurusApplication pApplication,
java.lang.String pResourceIdentifier,
java.lang.String[] pLinkedElementTypeIDs)
Finds a linked element from the given resource identifier and an array of
linked element type IDs.
|
static IElement |
findLinkedElement(java.lang.String pResourceIdentifier,
LinkedElementType pLinkedElementType,
java.lang.String pIDPrefix)
Deprecated.
Use
findLinkedElement(String, List) instead, which
is much more time efficient. |
static IElement |
findLinkedElement(java.lang.String pResourceID,
java.util.List<LinkedElementType> pAffectedElementTypes)
Calls
findLinkedElement(String, LinkedElementType, String) for
every given linked element type. |
static IElement |
findLinkedElement(java.lang.String pResourceIdentifier,
java.lang.String pIDPrefix)
Finds a linked element from the given resource identifier.
|
static ActionDescriptor |
getActionDescriptorByID(java.lang.String pID,
TAURUSConfiguration pTauConf)
Returns the Action Descriptor with the given ID in the given Taurus model
configuration.
|
static ActionDescriptor |
getAfterJobAction(ToolDescriptor pTool)
Gets "job after action" of the tool descriptor supporting both old tool
types (old extension points) and new ones (function packages).
|
static java.lang.String |
getApplicationAttributeValue(java.lang.String pAttributeName,
TAURUSConfiguration pModel)
Gets the value of a custom
ApplicationOptions attribute. |
static IApplicationProperty |
getApplicationProperty(ITaurusApplication pApplication,
Property pProperty)
Tries to get the application property for a specific
ITaurusApplication based on the given model Property. |
static ActionDescriptor |
getDefaultFilterAction(IFilter pFilter)
Get the default filter action for the given filter.
|
static org.eclipse.core.resources.IResource |
getEclipseResource(IExecutionContext pContext,
ToolDescriptor pToolDescriptor,
int pIDInparmInxed,
boolean pResourceNotFoundException)
Deprecated.
Parameters should no longer be accessed through indexes. Tool
executors should implement
IToolExecutor2 and obtain
the parameter via corresponding methods of
IToolContext or ToolUtility. |
static java.lang.String |
getElementID(ISystemImage pImg,
ElementType pEleType,
java.util.Collection<IPropertyValue> pTargetPropVals)
Generates an element ID.
|
static java.lang.String |
getElementID(ISystemImage pImg,
ElementType pEleType,
java.util.Map<Property,IPropertyValue> pTargetPropVals)
Generates an element ID.
|
static java.lang.String |
getElementID(ISystemImage pImg,
java.util.List<RToolInParameter> pParameters,
IExecutionContext pContext)
Creates an element ID from the given list of input parameters.
|
static java.lang.StringBuilder |
getElementIDPrefix(ISystemImage pImg,
org.eclipse.emf.ecore.EObject pModelObject)
Gets the prefix of an element ID, which is:
|
static java.util.List<RElementlistColumn> |
getElementListStructureProperties(TAURUSConfiguration pTauConf,
java.lang.String elementListStructureID)
Returns the modelled column relationships of an element list structure.
|
static IPropertyValue |
getElementName(ElementType pEleType,
java.util.Map<Property,IPropertyValue> pPropVals)
Gets the property value of the
RElementProperty relationship
which has the flag "Element Name" set to true. |
static IPropertyValue |
getElementName(IElement pElement)
Gets the property value of the
RElementProperty relationship
which has the flag "Element Name" set to true. |
static Property |
getElementNameProperty(ElementType pEleType)
Gets the property of the
RElementProperty relationship which has
the flag "Element Name" set to true. |
static ElementType |
getElementType(java.util.Collection<IPropertyValue> pPropertyValues)
Looks for an element type property in the given list of property values
and returns the corresponding element type or
null if no
element type could be resolved. |
static ElementType |
getElementType(java.util.Map<Property,IPropertyValue> pPropertyValues)
Looks for an element type property in the given map of property values
and returns the corresponding element type or
null if no
element type could be resolved. |
static ElementType |
getElementTypeByID(java.lang.String pID,
TAURUSConfiguration pTauConf)
Returns for the Element Type with the given ID in the given Taurus model
configuration.
|
static java.util.Map<java.lang.String,ElementType> |
getElementTypMachnameMap(TAURUSConfiguration pTauConf)
Get a map which maps an elements match name to the corresponding element
type.
|
static java.util.List<ElementType> |
getElemTypList(TAURUSConfiguration pTauConf)
Get a list of defined element types in a specific model.
|
static java.lang.String |
getExitParameter(org.eclipse.emf.ecore.EObject pEObject)
Gets the 'Exitparm' attribute from the
TAURUSConfiguration of the
given EObject. |
static FileDescriptor |
getFileDescriptorByID(java.lang.String pID,
TAURUSConfiguration pTauConf)
Returns the File Descriptor with the given ID in the given Taurus model
configuration.
|
static FileDescriptor |
getFileDescriptorByInputParam(RToolInParameter pIp,
IExecutionContext pContext)
Deprecated.
Does not resolve property references from the main context,
if the given
IExecutionContext is a mass processing
sub context. Use
getFileDescriptorFromParameter(RToolParameter, IToolContext)
instead. |
static FileDescriptor |
getFileDescriptorFromParameter(RToolParameter pParm,
IExecutionContext pContext)
Deprecated.
Does not resolve property references from the main context,
if the given
IExecutionContext is a mass processing
sub context. Use
getFileDescriptorFromParameter(RToolParameter, IToolContext)
instead. |
static FileDescriptor |
getFileDescriptorFromParameter(RToolParameter pParm,
IToolContext pToolContext)
Resolves and returns a file descriptor referenced by a tool parameter.
|
static java.util.List<FunctionPackage> |
getFunctionPackages(TAURUSConfiguration taurusConfiguration)
Gets a list of all defined function packages in the given model.
|
static ActionDescriptor |
getGetRootContainersAction(ITaurusApplication appl)
Safely tries to get the "get root containers" action for the given
application.
|
static java.util.List<Property> |
getLabelProperties(ElementType pElementType)
Returns a list of label Properties of the given Element Type or an empty
list.
|
static java.util.List<LinkedElementType> |
getLinkedElementTypesByID(java.lang.String[] pLinkedElementTypeIDs,
TAURUSConfiguration pTauConf)
Returns a list of linked element types with the given linked element type
ID.
|
static java.util.List<LinkedElementType> |
getLinkedElementTypesByID(java.lang.String pLinkedElementTypeID,
TAURUSConfiguration pTauConf)
Returns a list of linked element types with the given linked element type
ID.
|
static int |
getMaxRC(ITaurusApplication pApplication)
Gets the maximum return code of the given application (from the
ApplicationOptions) or the default value, if application options
are missing. |
static int |
getMaxRC(TAURUSConfiguration pModel)
Gets the maximum return code of the given model (from the
ApplicationOptions) or the default value, if no model is
provided. |
static org.eclipse.emf.ecore.EObject |
getObjectByModelExtensionID(TAURUSConfiguration pModel,
java.lang.String pModelExtensionID)
Searches in the given model for an
EObject where the
TaurusPackage.getIFunctionPackageDefinable_ExtensionID() equals
the given model extension id. |
static IPropertyValue |
getParameterPropertyValue(RToolInParameter pStringInparm,
IExecutionContext pContext)
Returns a property value for the given parameter.
|
static java.lang.String |
getParameterValue(RToolInParameter pInparm,
IExecutionContext pContext)
Returns the value of the given parameter or
null. |
static Property |
getPropertyByID(java.lang.String pID,
TAURUSConfiguration pTauConf)
Returns for the Property with the given ID in the given Taurus model
configuration.
|
static java.util.List<Property> |
getPropertyListOfElementTyp(ElementType elmtyp)
Returns the Key Properties of the given Element Type, sorted after their
sequence number.
|
static IPropertyValue |
getPropertyValueFromHierarchy(Property pProperty,
IExecutionContext pContext)
Obtain property value from the execution hierarchy for a given
Property. |
static RElementProperty |
getSortProperty(ElementType pEleType)
Get the sort property of the given element type.
|
static java.lang.String |
getStringBooleanValue(Property pProperty,
boolean pBoolean)
Gets a string representation of a boolean value for a property.
|
static Property |
getSuffixProperty(ElementType pElementType)
Returns the first property of the given element type which has the
"Special Property" attribute set to
ESpecialProperties.ELEMENT_SUFFIX. |
static TAURUSConfiguration |
getTaurusConfiguration(org.eclipse.emf.ecore.EObject pObj)
Returns the corresponding
TAURUSConfiguration of the given
EObject. |
static ToolDescriptor |
getToolDescriptorByID(java.lang.String pID,
TAURUSConfiguration pTauConf)
Returns the Tool Descriptor with the given ID in the given Taurus model
configuration.
|
static boolean |
isPropertyOfElementType(Property pProp,
IElement pElement)
Checks whether the property is modelled as a property of the given
element type.
|
public static final java.lang.String DYN_ATTRIBUTE_JOB_AFTER_ACTION
public static final java.lang.Object MODEL_ENCODING_DEFAULT
public static java.util.List<ElementType> getElemTypList(TAURUSConfiguration pTauConf)
pTauConf - the model.public static java.util.Map<java.lang.String,ElementType> getElementTypMachnameMap(TAURUSConfiguration pTauConf)
pTauConf - the model.public static java.util.List<Property> getPropertyListOfElementTyp(ElementType elmtyp)
elmtyp - The Element TypeIDDefinition,
RIDPropertypublic static ActionDescriptor getDefaultFilterAction(IFilter pFilter)
pFilter - TAURUS filterpublic static java.util.List<RElementlistColumn> getElementListStructureProperties(TAURUSConfiguration pTauConf, java.lang.String elementListStructureID)
pTauConf - the model.elementListStructureID - the ID of the element list structure.public static ElementType getElementType(java.util.Map<Property,IPropertyValue> pPropertyValues)
null if no
element type could be resolved.pPropertyValues - a map of property values.null.public static ElementType getElementType(java.util.Collection<IPropertyValue> pPropertyValues)
null if no
element type could be resolved.pPropertyValues - a list of property values.null.public static java.lang.String getElementID(ISystemImage pImg, java.util.List<RToolInParameter> pParameters, IExecutionContext pContext) throws TaurusCoreException
pImg - the system imagepParameters - a list of input parameterspContext - the execution contextnullTaurusCoreException - if a property value of a parameter could not be found in the
execution context and neither a static- nor a default value
was setpublic static java.lang.String getElementID(ISystemImage pImg, ElementType pEleType, java.util.Collection<IPropertyValue> pTargetPropVals) throws TaurusCoreException
pImg - the system image.pEleType - the element type.pTargetPropVals - the property values containing all ID properties of the
element type.TaurusCoreException - if the element ID cannot be generated, usually because key
properties are missing.public static java.lang.String getElementID(ISystemImage pImg, ElementType pEleType, java.util.Map<Property,IPropertyValue> pTargetPropVals) throws TaurusCoreException
pImg - the system image.pEleType - the element type.pTargetPropVals - the property values containing all ID properties of the
element type.TaurusCoreException - if the element ID cannot be generated, usually because key
properties are missing.getElementID(ISystemImage, ElementType, Collection)public static java.lang.StringBuilder getElementIDPrefix(ISystemImage pImg, org.eclipse.emf.ecore.EObject pModelObject)
[model name]_[system name]:[system port]
pImg - the system imagepModelObject - any object from the model (e.g. the ElementType)public static IPropertyValue getElementName(IElement pElement)
RElementProperty relationship
which has the flag "Element Name" set to true. Returns
null if no property relationship with that flag exists.pElement - the element.null.public static ActionDescriptor getGetRootContainersAction(ITaurusApplication appl)
null if the root containers action
cannot be get for any of the following reasons:
null.null (e.g. because the
application is not loaded).appl - the application to get the "get root containers" action fromnullpublic static IPropertyValue getElementName(ElementType pEleType, java.util.Map<Property,IPropertyValue> pPropVals)
RElementProperty relationship
which has the flag "Element Name" set to true. Returns
null if no property relationship with that flag exists.pEleType - the element type.pPropVals - the property values.null.public static Property getElementNameProperty(ElementType pEleType)
RElementProperty relationship which has
the flag "Element Name" set to true. Returns
null if no property relationship with that flag exists.pEleType - the element type.null.public static java.util.List<Property> getLabelProperties(ElementType pElementType)
pElementType - the ElementTypeRElementProperty.isTreeViewLabel()public static Property getSuffixProperty(ElementType pElementType)
ESpecialProperties.ELEMENT_SUFFIX.pElementType - the element type.null.public static TAURUSConfiguration getTaurusConfiguration(org.eclipse.emf.ecore.EObject pObj)
TAURUSConfiguration of the given
EObject.pObj - an EObject that belongs to the TAURUS Configurationnullpublic static java.lang.String getParameterValue(RToolInParameter pInparm, IExecutionContext pContext) throws TaurusToolException
null.pInparm - the RToolInParameterpContext - the IExecutionContextnull if the "Parameter from"
attribute of the input parameter is "UserInput".TaurusToolException - if the property value could not be found in the execution
context and neither a static- nor a default value is set.public static IApplicationProperty getApplicationProperty(ITaurusApplication pApplication, Property pProperty)
ITaurusApplication based on the given model Property.pApplication - the ITaurusApplicationpProperty - the model PropertyITaurusApplication
and Property. If no IApplicationProperty could be
retrieved, null is returned.
IApplicationProperty could only be retrieved if the
ITaurusApplication was loaded at least once during the
current runtime of AWM.
public static IPropertyValue getParameterPropertyValue(RToolInParameter pStringInparm, IExecutionContext pContext) throws TaurusToolException
IPropertyValue can be null if it cannot be
resolved. Throws an exception if the given input parameter does not have
a property ("Target ID Parm") associated.
Calls getParameterValue(RToolInParameter, IExecutionContext).
pStringInparm - a string input parameter (RToolInParameter)pContext - the IExecutionContextTaurusToolException - getParameterValue(RToolInParameter, IExecutionContext)public static IPropertyValue getPropertyValueFromHierarchy(Property pProperty, IExecutionContext pContext)
Property. The returned IPropertyValue can be
null if it cannot be resolved.
The search order of IPropertyValue follows
IPropertyValue of the Property in the
memory
IPropertyValue of the Property in the
context
Property have default value then it will be used
as IPropertyValue
pProperty - the Property which value is searched for.pContext - the IExecutionContextnullpublic static ToolDescriptor findDialogTool(ToolDescriptor pTool, java.lang.String pPanelName)
pTool - the tool descriptor to search inpPanelName - the desired panel namenull if it was not
foundpublic static boolean isPropertyOfElementType(Property pProp, IElement pElement)
pProp - the property.pElement - the element type.true if the given Property is a Property of the
given Element Type.RElementPropertypublic static java.lang.String getApplicationAttributeValue(java.lang.String pAttributeName,
TAURUSConfiguration pModel)
ApplicationOptions attribute.pAttributeName - the attribute name (not case sensitive)pModel - the model to search innull if no attribute
with the given name is defined in the model or any parameter is
null.TAURUSConfiguration.getApplicationOptions(),
ApplicationOptions.getCustomOption()public static ActionDescriptor getActionDescriptorByID(java.lang.String pID, TAURUSConfiguration pTauConf)
pID - the ID of the desired Action Descriptor.pTauConf - the model.ActionDescriptor with the given ID or
null if the Action Descriptor is not defined or the
model is not loaded.public static ElementType getElementTypeByID(java.lang.String pID, TAURUSConfiguration pTauConf)
pID - the ID of the desired Element TypepTauConf - the model.ElementType with the given ID or null if
the Element Type is not defined or the model is not loaded.public static java.util.List<LinkedElementType> getLinkedElementTypesByID(java.lang.String pLinkedElementTypeID, TAURUSConfiguration pTauConf)
pLinkedElementTypeID - the desired linked element type IDpTauConf - the model.null.LinkedElementType.getLinkedElementTypeID(),
getLinkedElementTypesByID(String[], TAURUSConfiguration)public static java.util.List<LinkedElementType> getLinkedElementTypesByID(java.lang.String[] pLinkedElementTypeIDs, TAURUSConfiguration pTauConf)
pLinkedElementTypeIDs - array of desired linked element type IDs. Must not be
null.pTauConf - the model.null.LinkedElementType.getLinkedElementTypeID(),
getLinkedElementTypesByID(String, TAURUSConfiguration)public static Property getPropertyByID(java.lang.String pID, TAURUSConfiguration pTauConf)
pID - the ID of the desired property.pTauConf - the model.Property with the given ID or null if
the Property is not defined or the model is not loaded.public static ToolDescriptor getToolDescriptorByID(java.lang.String pID, TAURUSConfiguration pTauConf)
pID - the ID of the desired Tool Descriptor.pTauConf - the model.ToolDescriptor with the given ID or null
if the Tool Descriptor is not defined or the model is not loaded.public static FileDescriptor getFileDescriptorByID(java.lang.String pID, TAURUSConfiguration pTauConf)
pID - the ID of the desired File Descriptor.pTauConf - the model.ToolDescriptor with the given ID or null
if the File Descriptor is not defined or the model is not loaded.public static FileDescriptor getFileDescriptorFromParameter(RToolParameter pParm, IToolContext pToolContext) throws TaurusToolException
FileDescriptor instance with its name physical
attribute resolved (since it can contain variables).
If the given context is an IMassProcessingSubContext, properties
referenced by name physical will also be searched in the
parent mass processing context.
pParm - a tool parameterpToolContext - the tool contextTaurusToolException - if any parameter is null or no file descriptor
is referenced by the parametergetFileDescriptorByInputParam(RToolInParameter, IExecutionContext)@Deprecated public static FileDescriptor getFileDescriptorFromParameter(RToolParameter pParm, IExecutionContext pContext) throws TaurusToolException
IExecutionContext is a mass processing
sub context. Use
getFileDescriptorFromParameter(RToolParameter, IToolContext)
instead.FileDescriptor instance with its name physical
attribute resolved (since it can contain variables).pParm - a tool parameterpContext - the execution contextTaurusToolException - if any parameter is null or no file descriptor
is referenced by the parametergetFileDescriptorByInputParam(RToolInParameter, IExecutionContext)@Deprecated public static FileDescriptor getFileDescriptorByInputParam(RToolInParameter pIp, IExecutionContext pContext) throws TaurusToolException
IExecutionContext is a mass processing
sub context. Use
getFileDescriptorFromParameter(RToolParameter, IToolContext)
instead.pIp - An input parameter. Must not be null.pContext - The context in which file memory the FileDescriptor will be
searched. Must not be nullTaurusToolException - if "parameter from" was set to "previous tool" but the file
descriptor could not be found in the parameter memory.public static int getMaxRC(ITaurusApplication pApplication)
ApplicationOptions) or the default value, if application options
are missing.pApplication - an AWM application.ApplicationOptions.getMaxRC()public static int getMaxRC(TAURUSConfiguration pModel)
ApplicationOptions) or the default value, if no model is
provided.pModel - the model. Can be null but then the default
maximum RC will be returnedApplicationOptions.getMaxRC()public static java.lang.String getExitParameter(org.eclipse.emf.ecore.EObject pEObject)
TAURUSConfiguration of the
given EObject. If no EXITPARM was specified or the attribute cannot be
found, the default 'Exitparm' value will be returned.pEObject - an EObjectpublic static RElementProperty getSortProperty(ElementType pEleType)
pEleType - The element typenull
if there is nonepublic static ActionDescriptor getAfterJobAction(ToolDescriptor pTool)
pTool - the tool descriptornull if none was defined
in the modelToolDescriptor.getAfterJobAction()public static java.util.List<FunctionPackage> getFunctionPackages(TAURUSConfiguration taurusConfiguration)
taurusConfiguration - the modelpublic static boolean containsFunctionPackage(TAURUSConfiguration pModel, java.lang.String pFunctionPackageID)
pModel - the modelpFunctionPackageID - the function package IDtrue if the function package existspublic static IElement findLinkedElement(java.lang.String pResourceIdentifier, java.lang.String pIDPrefix) throws TaurusCoreException
pResourceIdentifier - the identifierpIDPrefix - the element ID prefix. The prefix can be accessed through
getElementIDPrefix(ISystemImage, EObject)nullTaurusCoreException - if an error occurs while loading the cached elements@Deprecated public static IElement findLinkedElement(java.lang.String pResourceIdentifier, LinkedElementType pLinkedElementType, java.lang.String pIDPrefix)
findLinkedElement(String, List) instead, which
is much more time efficient.pResourceIdentifier - the identifierpLinkedElementType - the linked element typepIDPrefix - the element ID prefixnullpublic static org.eclipse.emf.ecore.EObject getObjectByModelExtensionID(TAURUSConfiguration pModel, java.lang.String pModelExtensionID)
EObject where the
TaurusPackage.getIFunctionPackageDefinable_ExtensionID() equals
the given model extension id.pModel - the model which will be checked for an object with give model
extension idpModelExtensionID - the model extension id of the desired EObjectEObject found in the model where
TaurusPackage.getIFunctionPackageDefinable_ExtensionID()
equals the given model extension id.public static IElement findLinkedElement(ITaurusApplication pApplication, java.lang.String pResourceIdentifier, java.lang.String pLinkedElementTypeID)
pApplication - the currently loaded applicationpResourceIdentifier - the identifier. Must not be null.pLinkedElementTypeID - the ID of a linked element type. Must not be null
.null if the element has not
been found or no linked element type with the given
element type ID exists in the modelpublic static IElement findLinkedElement(ITaurusApplication pApplication, java.lang.String pResourceIdentifier, java.lang.String[] pLinkedElementTypeIDs)
pApplication - the currently loaded applicationpResourceIdentifier - the identifier. Must not be null.pLinkedElementTypeIDs - an array of linked element type IDs. Must not be
null .null if the element has not
been found or no linked element type with the given
element type ID exists in the modelpublic static IElement findLinkedElement(java.lang.String pResourceID, java.util.List<LinkedElementType> pAffectedElementTypes)
findLinkedElement(String, LinkedElementType, String) for
every given linked element type.pResourceID - the identifierpAffectedElementTypes - the list of linked element typesnull@Deprecated public static org.eclipse.core.resources.IResource getEclipseResource(IExecutionContext pContext, ToolDescriptor pToolDescriptor, int pIDInparmInxed, boolean pResourceNotFoundException) throws TaurusToolException
IToolExecutor2 and obtain
the parameter via corresponding methods of
IToolContext or ToolUtility.TaurusUtility.getEclipseResource(String) to get
the corresponding IResource.pContext - the execution contextpToolDescriptor - the tool descriptorpIDInparmInxed - the index from the tool's input parameters which should
contain the Eclipse resource identifier (resource path)pResourceNotFoundException - whether to throw an exception if the resource path could not
be resolved to an existing Eclipse resourcenull if it doesn't exist
and pResourceNotFoundException is falseTaurusToolException - pResourceNotFoundException is
true and the resource path could not be resolved
to an existing Eclipse resource. The resolved path will be
part of the exception message.public static void createModel(org.eclipse.core.resources.IFile pModelFile,
TemplateModelExtension pTemplate,
org.eclipse.core.runtime.IProgressMonitor pMon)
throws TaurusCoreException
pModelFile - the target file. Must not be null but does not
need to exist. If it exists, its contents will be
overwritten.pTemplate - a model template. Can be null to create a default
model only containing application options and base categories.pMon - a progress monitorTaurusCoreException - if problems occur during model initialization or
creating/writing the target filepublic static java.lang.String getStringBooleanValue(Property pProperty, boolean pBoolean)
| Property Type | Boolean Value | Returned String |
| Boolean | true |
Property.getTrueValue() |
| Boolean | false |
Property.getFalseValue() |
| Not Boolean | true |
true |
| Not Boolean | false |
false |
If the given property is null the result is equal to a
non-boolean property.
pProperty - a property (can be null)pBoolean - the boolean value to convert into a stringCopyright © 2015 Micro Focus GmbH. All rights reserved.