Class TLcdAIXM51LinkExpressionFactory
- All Implemented Interfaces:
ILcdXLinkExpressionFactory
Implementation of ILcdXLinkExpressionFactory used for AIXM 5.1 decoding
that is able to resolve links between AIXM 5.1 features. Such links are defined using XLinks, consisting
of a xlink:href attribute that contains an identifier of the referenced feature or element.
Supported identifiers include the GML identifier (UUID) of a feature, preceded with urn:uuid:,
urn:uuid., #uuid. or #urn.uuid., or the gml:id of a feature or one of its elements, preceded
with #. In all cases, the linked elements have to be inside the document that is being decoded.
- Since:
- 2016.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(TLcdXLinkSimpleLink aLink, ILcdXMLDocumentContext aDocumentContext) Compiles a given href attribute into anILcdXLinkExpression.
-
Constructor Details
-
TLcdAIXM51LinkExpressionFactory
public TLcdAIXM51LinkExpressionFactory()
-
-
Method Details
-
compile
public ILcdXLinkExpression compile(TLcdXLinkSimpleLink aLink, ILcdXMLDocumentContext aDocumentContext) Description copied from interface:ILcdXLinkExpressionFactoryCompiles a given href attribute into an
ILcdXLinkExpression. This method is typically called during decoding when anxlink:hrefattribute is encountered.If no expression can be created for the given href,
nullshould be returned.- Specified by:
compilein interfaceILcdXLinkExpressionFactory- Parameters:
aLink- the link for which an expression is to be createdaDocumentContext- the document context in which the href is to be evaluated- Returns:
- an expression that can be evaluated to resolve the xlink
-