Home /Modules/registry/SLRegistryRelationship.sleela

SLRegistryRelationship.sleela

lib/registry/SLRegistryRelationship.sleela · 16 line(s) · sleela

<< A typed, directed edge between stable Registry record identities. >>
#sleela 3.0
material;
class SLRegistryRelationship {
  String type;
  String targetId;

  void configure(String relationshipType, String stableTargetId) {
    type = relationshipType;
    targetId = stableTargetId;
  }

  boolean complete() {
    return type != null && type != "" && targetId != null && targetId != "";
  }
}