Package fr.imag.adele.apam

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


    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

    /*
     * 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

   * @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

    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

TOP

Related Classes of fr.imag.adele.apam.RelationDefinition

Copyright © 2018 www.massapicom. 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.