Gets the list of Topic Relationships for this topic whose type is "RELATED".

@return A list of related topic relationships
175732
public List<TopicRelationship> getRelatedTopicRelationships() {
        final ArrayList<TopicRelationship> relationships = new ArrayList<TopicRelationship>();
        /* Check the topic to topic relationships for related relationships */
        for (final TopicRelationship relationship : topicRelationships) {
            if (relationship.getType() == RelationshipType.REFER_TO) {
                relationships.add(relationship);
            }
        }
        /* Check the topic to target relationships for related relationships */
        for (final TargetRelationship relationship : topicTargetRelationships) {
            if (relationship.getType() == RelationshipType.REFER_TO) {
                relationships.add(new TopicRelationship(relationship.getPrimaryRelationship(), (SpecTopic) relationship.getSecondaryRelationship(),
                        relationship.getType()));
            }
        }
        return relationships;
    }
123055
public List<Relationship> getPreviousRelationships() {
        final List<Relationship> prevRelationships = new LinkedList<Relationship>();
        for (final Relationship r : relationships) {
            if (r.getType() == RelationshipType.PREVIOUS) {
                prevRelationships.add(r);
            }
        }
        return prevRelationships;
    }
916167
private function getRelationships()
    {
        $r = '';

        $relationships = (array)$this->xml->xpath('/draggy/relationships/relation');

        foreach ($relationships as $relation) {
            $relationAttributes = (array)$relation;
            $relationAttributes = $relationAttributes['@attributes'];

            $this->checkMandatoryAttributes('Relationship', $relationAttributes, ['from', 'to', 'type']);

            $r .= 'var l = new Link(\'' . str_replace(
                '\\',
                '\\\\',
                $relationAttributes['from']
            ) . '\',\'' . str_replace(
                '\\',
                '\\\\',
                $relationAttributes['to']
            ) . '\',\'' . $relationAttributes['type'] . '\',' . ( isset( $relationAttributes['fromAttribute'] ) ? '\'' . $relationAttributes['fromAttribute'] . '\'' : 'undefined' ) . ', ' . ( isset( $relationAttributes['toAttribute'] ) ? '\'' . $relationAttributes['toAttribute'] . '\'' : 'undefined' ) . ')' . PHP_EOL;

            if (isset( $relationAttributes['broken'] )) {
                $r .= 'l.setBroken(' . $relationAttributes['broken'] . ');' . PHP_EOL;
            }

            if (isset( $relationAttributes['persist'] )) {
                if ('true' === $relationAttributes['persist']) { // Backwards compatibility
                    $relationAttributes['persist'] = 'both';
                }

                $r .= 'l.setPersist("' . $relationAttributes['persist'] . '");' . PHP_EOL;
            } else { // Backwards compatibility
                $r .= 'l.setPersist(true);' . PHP_EOL;
            }

            if (isset( $relationAttributes['remove'] )) {
                if ('true' === $relationAttributes['remove']) { // Backwards compatibility
                    $relationAttributes['remove'] = 'both';
                }
                $r .= 'l.setRemove("' . $relationAttributes['remove'] . '");' . PHP_EOL;
            } else { // Backwards compatibility
                $r .= 'l.setRemove(true);' . PHP_EOL;
            }
        }

        return $r;
    }
755773
public Set<Annotation> getSubTreeNodes(@NonNull Annotation node, String... childRelations) {
      Set<Annotation> children = new HashSet<>();
      Set<String> targetRel = childRelations == null ? Collections.emptySet() : Sets.asSet(
         Arrays.asList(childRelations));
      Predicate<RelationEdge> keep = edge -> targetRel.size() == 0 || targetRel.contains(edge.getRelation());

      Queue<RelationEdge> queue = new LinkedList<>(getInEdges(node).stream().filter(keep).collect(Collectors.toList()));
      while (!queue.isEmpty()) {
         RelationEdge n = queue.remove();
         if (!"relcl".equals(n.getRelation()) && !"parataxis".equals(n.getRelation())) {
            children.add(n.getFirstVertex());
            queue.addAll(getInEdges(n.getFirstVertex())
                            .stream()
                            .filter(e -> !children.contains(e.getFirstVertex()))
                            .collect(Collectors.toSet()));
         }
      }
      return children;
   }
320064
public List<EjbRelationType<RelationshipsType<T>>> getAllEjbRelation()
   {
      List<EjbRelationType<RelationshipsType<T>>> list = new ArrayList<EjbRelationType<RelationshipsType<T>>>();
      List<Node> nodeList = childNode.get("ejb-relation");
      for(Node node: nodeList)
      {
         EjbRelationType<RelationshipsType<T>>  type = new EjbRelationTypeImpl<RelationshipsType<T>>(this, "ejb-relation", childNode, node);
         list.add(type);
      }
      return list;
   }
540291
public com.google.api.ads.adwords.axis.v201809.cm.RelationshipType getRelationshipType() {
        return relationshipType;
    }
1138674
public List<Relationship> getLinkListRelationships() {
        final List<Relationship> linkListRelationships = new LinkedList<Relationship>();
        for (final Relationship r : relationships) {
            if (r.getType() == RelationshipType.LINKLIST) {
                linkListRelationships.add(r);
            }
        }
        return linkListRelationships;
    }
1034387
public Set<Synset> getRelatedSynsets(@NonNull Synset node, @NonNull WordNetRelation relation) {
        return db
                   .getRelations(node)
                   .entrySet()
                   .stream()
                   .filter(entry -> entry.getValue() == relation)
                   .map(entry -> db.getSynsetFromId(entry.getKey()))
                   .collect(Collectors.toSet());
    }
957449
public List<Relationship> getNextRelationships() {
        final List<Relationship> nextRelationships = new LinkedList<Relationship>();
        for (final Relationship r : relationships) {
            if (r.getType() == RelationshipType.NEXT) {
                nextRelationships.add(r);
            }
        }
        return nextRelationships;
    }
1077978
@Override
	public ObjectList getObjectRelationships(String repositoryId, String objectId, Boolean includeSubRelationshipTypes, RelationshipDirection relationshipDirection, String typeId, String filter, Boolean includeAllowableActions, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
		return relationshipService.getObjectRelationships(repositoryId, objectId, includeSubRelationshipTypes, relationshipDirection, typeId, filter, includeAllowableActions, maxItems, skipCount, extension);
	}
337686
public Relation getRelations(int i) {
    if (Document_Type.featOkTst && ((Document_Type)jcasType).casFeat_relations == null)
      jcasType.jcas.throwFeatMissing("relations", "de.julielab.jules.types.ace.Document");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Document_Type)jcasType).casFeatCode_relations), i);
    return (Relation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Document_Type)jcasType).casFeatCode_relations), i)));}
1228959
public String getTopicIds() {
    if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_topicIds == null)
      jcasType.jcas.throwFeatMissing("topicIds", "de.julielab.jules.types.Token");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Token_Type)jcasType).casFeatCode_topicIds);}
1283303
public java.util.List<DirectConnectGatewayAssociation> getDirectConnectGatewayAssociations() {
        if (directConnectGatewayAssociations == null) {
            directConnectGatewayAssociations = new com.amazonaws.internal.SdkInternalList<DirectConnectGatewayAssociation>();
        }
        return directConnectGatewayAssociations;
    }
48369
protected CSRelatedNodeWrapper findExistingRelatedNode(final Relationship relationship,
            final List<CSRelatedNodeWrapper> topicRelatedNodes) {
        if (topicRelatedNodes != null) {
            // Loop over the current nodes and see if any match
            for (final CSRelatedNodeWrapper relatedNode : topicRelatedNodes) {
                if (relationship instanceof TargetRelationship) {
                    if (doesRelationshipMatch((TargetRelationship) relationship, relatedNode)) {
                        return relatedNode;
                    }
                } else {
                    if (doesRelationshipMatch((TopicRelationship) relationship, relatedNode)) {
                        return relatedNode;
                    }
                }
            }
        }

        return null;
    }
275873
public List<ExtendedRelation> getRelationships() {
		List<ExtendedRelation> result = null;
		try {
			if (extendedRelationsDao.isTableExists()) {
				result = extendedRelationsDao.queryForAll();
			} else {
				result = new ArrayList<>();
			}
		} catch (SQLException e) {
			throw new GeoPackageException("Failed to query for relationships "
					+ "in " + EXTENSION_NAME, e);
		}
		return result;
	}
366880
public String[] getTopics()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getTopics");

    String[] topics = consumerDispatcherState.getTopics();
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())             
      SibTr.exit(tc, "getTopics", topics);
    return topics;
  }
460431
private ArrayList<CmsResourceStatusRelationBean> getRelationBeans() {

        switch (m_mode) {
            case targets:
                return m_statusBean.getRelationTargets();
            case sources:
                return m_statusBean.getRelationSources();
            case siblings:
            default:
                return m_statusBean.getSiblings();
        }
    }