use of org.archifacts.core.model.BuildingBlockType in project archifacts by archifacts.
the class ContainedEntityDescriptor method isSource.
@Override
public boolean isSource(final Artifact sourceCandidateArtifact) {
if (!(sourceCandidateArtifact instanceof BuildingBlock)) {
return false;
}
final BuildingBlock buildingBlock = (BuildingBlock) sourceCandidateArtifact;
final BuildingBlockType buildingBlockType = buildingBlock.getType();
return buildingBlockType.equals(AggregateRootDescriptor.type()) || buildingBlockType.equals(EntityDescriptor.type());
}
Aggregations