public class TLcdAIXM51LinkExpressionFactory extends Object implements 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.
or #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.
Constructor and Description |
---|
TLcdAIXM51LinkExpressionFactory() |
Modifier and Type | Method and Description |
---|---|
ILcdXLinkExpression |
compile(TLcdXLinkSimpleLink aLink,
ILcdXMLDocumentContext aDocumentContext)
Compiles a given href attribute into an
ILcdXLinkExpression . |
public ILcdXLinkExpression compile(TLcdXLinkSimpleLink aLink, ILcdXMLDocumentContext aDocumentContext)
ILcdXLinkExpressionFactory
Compiles a given href attribute into an ILcdXLinkExpression
.
This method is typically called during decoding when an xlink:href
attribute is encountered.
If no expression can be created for the given href, null
should
be returned.
compile
in interface ILcdXLinkExpressionFactory
aLink
- the link for which an expression is to be createdaDocumentContext
- the document context in which the href is to be evaluated