public Set getReferencedArtefacts()

in sdmx30-infomodel/src/main/java/com/epam/jsdmx/infomodel/sdmx30/StructureMapImpl.java [70:89]


    public Set<CrossReference> getReferencedArtefacts() {
        Set<CrossReference> crossReferences = new HashSet<>();

        if (source != null) {
            crossReferences.add(new CrossReferenceImpl(this, source));
        }
        if (target != null) {
            crossReferences.add(new CrossReferenceImpl(this, target));
        }

        StreamUtils.streamOfNullable(componentMaps)
            .filter(Objects::nonNull)
            .map(ComponentMap::getRepresentationMap)
            .filter(Objects::nonNull)
            .map(representationMapReference ->
                new CrossReferenceImpl(this, representationMapReference))
            .forEach(crossReferences::add);

        return crossReferences;
    }