Difference between revisions of "Extensions.DataType.CreateResourceLocation"
Jump to navigation
Jump to search
(Created by Ngoc Tran.) |
(Edited by Ngoc Tran.) |
||
Line 16: | Line 16: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| Id | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1..1] | Represents the resource ID value. At runtime the ID | + | {{TableRowPropertie1| Id | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1..1] | Represents the resource ID value. At runtime the ID will be used to map the [[Extensions.DataType.ResourceLocation|ResourceLocation]] to a certain path}} |
− | {{TableRowPropertie2| DefaultLocation | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [0..1] | Represents the optional default location. This value | + | {{TableRowPropertie2| DefaultLocation | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [0..1] | Represents the optional default location. This value will be used, if the related resource ID cannot be mapped.}} |
|} | |} |
Latest revision as of 02:59, 11 November 2019
Contents
Classification
Name | CreateResourceLocation |
Short Description | Creates a ResourceLocation out of a given ID and default location |
Class | Term |
Extension | OTX DataType extension |
Group | DataType related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ResourceLocationTerm DataType.CreateResourceLocation(StringTerm id, StringTerm defaultLocation);
Description
This term creates creates a ResourceLocation out of a given ID and default location.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
ResourceLocation | Returns the ResourceLocation out of a given ID and default location. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Id | String | Term | - | [1..1] | Represents the resource ID value. At runtime the ID will be used to map the ResourceLocation to a certain path |
DefaultLocation | String | Term | - | [0..1] | Represents the optional default location. This value will be used, if the related resource ID cannot be mapped. |
OTL Examples
/// Local Declarations
DataType.ResourceLocation ResourceLocation1;
/// Flow
ResourceLocation1 = DataType.CreateResourceLocation("OtfMapping");
See also
EnumerationContainsName
EnumerationContainsValue
EnumerationGetEntryList
GetEnumerationByName
GetEnumerationByValue
CreateResourceLocation
GetResourceLocationId
IsResourceLocationMapped
StructureCopy
StructureCreate