Extensions.DataType.IsResourceLocationMapped

From emotive
Jump to navigation Jump to search

Classification

Name IsResourceLocationMapped
Short Description Check the given ResourceLocation ID was found inside the mapping table
Class Term
Extension OTX DataType extension
Group DataType related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

BooleanTerm DataType.IsResourceLocationMapped(ResourceLocationTerm location)

Description

The IsResourceLocationMapped term will return true, if the given ResourceLocation ID was found inside the mapping table, otherwise false.

Exclamation.png Important: The mapping table is not part of the standard.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
Boolean Return true, if the given ResourceLocation ID was found inside the mapping table, otherwise false

Properties

Name Data Type Class Default Cardinality Description
Location ResourceLocation Term - [1..1] Represents the ResourceLocation value on which will be checked, if the ID is inside the mapping table or not.

OTL Examples

/// Local Declarations

DataType.ResourceLocation ResourceLocation1;
Boolean Boolean1;
/// Flow

ResourceLocation1 = DataType.CreateResourceLocation("OtfMapping");
Boolean1 = DataType.IsResourceLocationMapped(ResourceLocation1)

See also

EnumerationContainsName
EnumerationContainsValue
EnumerationGetEntryList
GetEnumerationByName
GetEnumerationByValue
CreateResourceLocation
GetResourceLocationId
IsResourceLocationMapped
StructureCopy
StructureCreate