Package com.buschmais.jqassistant.core.store.api.model

Examples of com.buschmais.jqassistant.core.store.api.model.Relation


     * @param mapper     The mapper.
     */
    private <T extends Descriptor> void flushRelations(T descriptor, Node node, DescriptorMapper<T> mapper) {
        Map<Relation, Set<? extends Descriptor>> relations = mapper.getRelations(descriptor);
        for (Entry<Relation, Set<? extends Descriptor>> relationEntry : relations.entrySet()) {
            Relation relationType = relationEntry.getKey();
            Set<? extends Descriptor> targetDescriptors = relationEntry.getValue();
            if (!targetDescriptors.isEmpty()) {
                Set<Node> existingTargetNodes = new HashSet<>();
                Iterable<Relationship> relationships = node.getRelationships(relationType, Direction.OUTGOING);
                if (relationships != null) {
View Full Code Here


        descriptor.setFullQualifiedName((String) node.getProperty(NodeProperty.FQN.name()));
        this.descriptorCache.put(descriptor);
        // create outgoing relationships
        Map<Relation, Set<Descriptor>> relations = new HashMap<Relation, Set<Descriptor>>();
        for (Relationship relationship : node.getRelationships(Direction.OUTGOING)) {
            Relation relation = Relation.getRelation(relationship.getType().name());
            if (relation != null) {
                Node targetNode = relationship.getEndNode();
                Descriptor targetDescriptor = getDescriptor(targetNode);
                Set<Descriptor> set = relations.get(relation);
                if (set == null) {
View Full Code Here

TOP

Related Classes of com.buschmais.jqassistant.core.store.api.model.Relation

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.