public DataAttributeImpl()

in sdmx30-infomodel/src/main/java/com/epam/jsdmx/infomodel/sdmx30/DataAttributeImpl.java [29:45]


    public DataAttributeImpl(DataAttribute from) {
        super(Objects.requireNonNull(from));
        this.minOccurs = from.getMinOccurs();
        this.maxOccurs = from.getMaxOccurs();

        this.attributeRelationship = Optional.ofNullable(from.getAttributeRelationship())
            .map(relationship -> (AttributeRelationship) relationship.clone())
            .orElse(null);

        this.measureRelationship = Optional.ofNullable(from.getMeasureRelationship())
            .map(MeasureRelationshipImpl::new)
            .orElse(null);

        this.conceptRoles = StreamUtils.streamOfNullable(from.getConceptRoles())
            .map(ArtefactReference::clone)
            .collect(toList());
    }