All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.stapi.graphsystem.structuredefinition.identificatorProvider.StructureDefinitionDifferentialIdentificatorProvider Maven / Gradle / Ivy

package ai.stapi.graphsystem.structuredefinition.identificatorProvider;

import ai.stapi.graphoperations.graphLanguage.graphDescription.specific.positive.EdgeDescriptionParameters;
import ai.stapi.graphoperations.graphLanguage.graphDescription.specific.positive.IngoingEdgeDescription;
import ai.stapi.graphoperations.graphLanguage.graphDescription.specific.positive.NodeDescription;
import ai.stapi.graphoperations.graphLanguage.graphDescription.specific.positive.UuidIdentityDescription;
import ai.stapi.graphoperations.synchronization.nodeIdentificator.NodeIdentificator;
import ai.stapi.graphoperations.synchronization.nodeIdentificator.NodeIdentificatorsProvider;
import java.util.List;

public class StructureDefinitionDifferentialIdentificatorProvider implements NodeIdentificatorsProvider {

  @Override
  public List provide(String nodeType) {
    return List.of(
        new NodeIdentificator(
            new IngoingEdgeDescription(
                new EdgeDescriptionParameters("differential"),
                new NodeDescription(
                    "StructureDefinition",
                    new UuidIdentityDescription()
                )
            )
        )
    );
  }

  @Override
  public boolean supports(String nodeType) {
    return nodeType.equals("StructureDefinitionDifferential");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy