public interface DmrSegmentGenerator
segment
generation for one or more types of
domain model references
.Modifier and Type | Field and Description |
---|---|
static double |
NOT_APPLICABLE
The value that expresses that a
DmrSegmentGenerator is not applicable for a
VDomainModelReference . |
Modifier and Type | Method and Description |
---|---|
List<VDomainModelReferenceSegment> |
generateSegments(VDomainModelReference reference)
Takes a
VDomainModelReference and generates the list of equivalent DMR Segments . |
double |
isApplicable(VDomainModelReference reference)
Returns a double that expresses if and how suitable this tester is for the given
VDomainModelReference . |
static final double NOT_APPLICABLE
DmrSegmentGenerator
is not applicable for a
VDomainModelReference
.double isApplicable(VDomainModelReference reference)
VDomainModelReference
.reference
- The VDomainModelReference
NOT_APPLICABLE
if it can't work with the given
VDomainModelReference
.List<VDomainModelReferenceSegment> generateSegments(VDomainModelReference reference)
VDomainModelReference
and generates the list of equivalent DMR Segments
. Equivalent means that a DMR using the generated segments resolves exactly the same as the given
DMR.reference
- The VDomainModelReference
to generate the segments
forsegments
; might return an empty list if the
given DMR does not specify any path but never null
Copyright © 2019. All rights reserved.