Examples of RelationDefinition


Examples of fr.imag.adele.apam.RelationDefinition

   * @param id
   * @return
   */
  @Override
  public RelationDefinition getRelation(String id) {
    RelationDefinition dep = null;
    Component group = this;
    while (group != null) {
      dep = ((ComponentImpl) group).getLocalRelation(id);
      if (dep != null) {
        return dep;
View Full Code Here

Examples of fr.imag.adele.apam.RelationDefinition

    for (RelationDeclaration relationDeclaration : localRelations) {
      /*
       * Local declarations may be partial definitions, we need to compute
       * the complete declaration by refining the ancestor definition.
       */
      RelationDefinition base = this.getRelation(relationDeclaration.getIdentifier());
      relationDeclaration = (base == null) ? relationDeclaration
          : ((RelationDefinitionImpl) base).refinedBy(relationDeclaration);

      relDef.put(relationDeclaration.getIdentifier(),
          new RelationDefinitionImpl(relationDeclaration));
View Full Code Here

Examples of fr.imag.adele.apam.RelationDefinition

    /*
     * Find the relation to resolve and trigger resolution at the level
     * specified in the source kind
     */

    RelationDefinition relDef = getApform().getApamComponent().getRelation(injection.getRelation().getIdentifier());

    Component source = null;
    switch (relDef.getSourceKind()) {
    case INSTANCE:
    case COMPONENT:
      source = getApform().getApamComponent();
      break;
    case IMPLEMENTATION:
View Full Code Here

Examples of fr.imag.adele.apam.RelationDefinition

   * @param id
   * @return
   */
  @Override
  public RelationDefinition getCtxtRelation(Component source, String id) {
    RelationDefinition dep = ctxtDependencies.get(id);
    if (dep == null) {
      return null;
    }
    Component group = source;
    while (group != null) {
      if (dep.appliesTo(group.getDeclaration().getReference())) {
        return dep;
      }
     
      group = group.getGroup();
    }
View Full Code Here

Examples of fr.imag.adele.apam.RelationDefinition

    Set<Component> tempDests;

    for (String depId : navigation) {
      for (Component source : sources) {
        RelationDefinition depDcl = source.getRelation(depId);
        if (depDcl == null && !CST.isFinalRelation(depId)) {
          logger.error("relation " + depId + " undefined for component " + source.getName());
        } else {
          tempDests = ((ComponentImpl) source).getRawLinkDests(depId);
          if (tempDests.isEmpty()) {
View Full Code Here

Examples of org.nasutekds.server.admin.RelationDefinition

        "The following components have a direct AGGREGATION relation FROM " +
        mo.getUserFriendlyPluralName() + " :");
      TreeMap<String, AbstractManagedObjectDefinition> componentList =
        new TreeMap<String, AbstractManagedObjectDefinition>();
      for ( AggregationPropertyDefinition agg : aggregProps) {
        RelationDefinition rel = agg.getRelationDefinition();
        AbstractManagedObjectDefinition childRel = rel.getChildDefinition();
        componentList.put(childRel.getName(), childRel);
      }
      for (AbstractManagedObjectDefinition component : componentList.values()) {
        beginList();
        link(component.getUserFriendlyName().toString(), component.getName() +
          ".html");
        endList();
      }
    }


    //
    // Relations TO this component
    //

    if (!isReverseCompRelsEmpty || !isReverseAggregPropsEmpty) {
        heading3("Relations To this Component");
    }

    if (!mo.getReverseRelationDefinitions().isEmpty()) {
      if (!isReverseCompRelsEmpty) {
        paragraph(
          "The following components have a direct COMPOSITION relation TO " +
          mo.getUserFriendlyPluralName() + " :");
        for ( RelationDefinition rel : reverseCompRels) {
          beginList();
          AbstractManagedObjectDefinition childRel = rel.getParentDefinition();
          link(childRel.getUserFriendlyName().toString(), childRel.getName() +
            ".html");
          endList();
        }
      }
View Full Code Here

Examples of org.nasutekds.server.admin.RelationDefinition

  }

  private String getBaseDN(
    AbstractManagedObjectDefinition mo, LDAPProfile ldapProfile) {

    RelationDefinition rel = relList.get(mo.getName());
    if (rel != null) {
      String baseDn = ldapProfile.getRelationRDNSequence(rel);
      if (!baseDn.equals("")) {
        return baseDn;
      } else {
        // Check the parent relation
        return getBaseDN(rel.getParentDefinition(), ldapProfile);
      }
    } else if (moList.get(mo.getParent().getName()) != null) {
      // check its superior
      return getBaseDN(moList.get(mo.getParent().getName()), ldapProfile);
    } else {
View Full Code Here

Examples of org.nasutekds.server.admin.RelationDefinition

      @Override
      public String visitAggregation(
        AggregationPropertyDefinition prop, Void p) {

        RelationDefinition rel = prop.getRelationDefinition();
        String linkStr = getLink(rel.getUserFriendlyName().toString(),
          rel.getName() + ".html");
      return "The DN of any " +  linkStr + ". " +
        ((prop.getSourceConstraintSynopsis() != null) ?
          prop.getSourceConstraintSynopsis().toString() : "");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.