Search in sources :

Example 1 with BuildingBlockType

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());
}
Also used : BuildingBlock(org.archifacts.core.model.BuildingBlock) BuildingBlockType(org.archifacts.core.model.BuildingBlockType)

Aggregations

BuildingBlock (org.archifacts.core.model.BuildingBlock)1 BuildingBlockType (org.archifacts.core.model.BuildingBlockType)1