com.syncleus.ferma.annotations.Incidence Java Examples

The following examples show how to use com.syncleus.ferma.annotations.Incidence. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JavaTypeIllegalVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.BOTH)
public void addImplementsInterfaceTwoDirectionsEdge(
        ClassInitializer<? extends JavaInterfaceVertex> ifaceInitializer,
        ClassInitializer<? extends ImplementsEdge> edgeInitializer);
 
Example #2
Source File: JavaClassVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "extends", direction = Direction.BOTH, operation = Incidence.Operation.GET)
<T extends ExtendsEdge> Iterator<T> getBothDirectionsExtendEdgeFrames(Class<T> edgeType);
 
Example #3
Source File: Person.java    From peapod with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "knows")
public abstract Iterator<Knows> getKnows();
 
Example #4
Source File: JavaClassVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "extends", direction = Direction.BOTH, operation = Incidence.Operation.GET)
<T extends ExtendsEdge> Set<T> getBothDirectionsExtendEdgeFramesSet(Class<T> edgeType);
 
Example #5
Source File: JavaTypeVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "related", direction = Direction.OUT, operation = Incidence.Operation.ADD)
<EdgeType extends JavaTypeRelationsEdge, VertexType extends JavaTypeVertex> EdgeType createTypeWithRelation(
        ClassInitializer<VertexType> vertexInitializer,
        ClassInitializer<EdgeType> edgeInitializer
);
 
Example #6
Source File: JavaTypeIllegalVertex7.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.OUT)
public void unresolvableOperation(
        JavaInterfaceVertex iface1, 
        JavaInterfaceVertex iface2, 
        JavaInterfaceVertex iface3);
 
Example #7
Source File: JavaTypeIllegalVertex5.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.OUT, operation = Incidence.Operation.REMOVE)
public void removeAllImplementsEdges();
 
Example #8
Source File: JavaTypeIllegalVertex2.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.OUT, operation = Incidence.Operation.ADD)
public void implementThreeInterfaces(JavaInterfaceVertex i1, JavaInterfaceVertex i2, JavaInterfaceVertex i3);
 
Example #9
Source File: JavaTypeIllegalVertex4.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.OUT)
public Collection<ImplementsEdge> getImplementsEdges(JavaInterfaceVertex implementedIface1, JavaInterfaceVertex implementedIface2);
 
Example #10
Source File: JavaTypeIllegalVertex1.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.OUT, operation = Incidence.Operation.ADD)
public void implementTwoInterfaces(JavaInterfaceVertex i1, JavaInterfaceVertex i2);
 
Example #11
Source File: JavaTypeIllegalVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.BOTH)
public void addBidirectionalEdgeDefault();
 
Example #12
Source File: JavaTypeIllegalVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.BOTH)
public void addImplementsTwoDirectionsEdge(ClassInitializer<? extends JavaInterfaceVertex> vertexInitializer);
 
Example #13
Source File: JavaClassVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "extends", direction = Direction.BOTH, operation = Incidence.Operation.GET)
<T extends ExtendsEdge> List<T> getBothDirectionsExtendEdgeFramesList(Class<T> edgeType);
 
Example #14
Source File: JavaTypeIllegalVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "extends", direction = Direction.BOTH)
public void addExtendsBothDirections(JavaClassVertex other);
 
Example #15
Source File: JavaTypeIllegalVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "extends", direction = Direction.BOTH)
public void addExtendsBothDirections(JavaClassVertex other, ClassInitializer<? extends ExtendsEdge> edgeInitializer);
 
Example #16
Source File: JavaTypeIllegalVertex6.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.OUT, operation = Incidence.Operation.REMOVE)
public void removeImplementsEdges(
        JavaInterfaceVertex implementedIface1, 
        JavaInterfaceVertex implementedIface2, 
        JavaInterfaceVertex implementedIface3);
 
Example #17
Source File: JavaTypeIllegalVertex3.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.OUT)
public ImplementsEdge getImplementsEdge(JavaInterfaceVertex implementedIface);
 
Example #18
Source File: JavaInterfaceVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.BOTH, operation = Incidence.Operation.GET)
EdgeFrame getAnyImplementsEdge();
 
Example #19
Source File: JavaInterfaceVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.BOTH, operation = Incidence.Operation.GET)
<T extends ImplementsEdge> T getAnyImplementsEdge(Class<T> edgeType);
 
Example #20
Source File: JavaInterfaceVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.IN, operation = Incidence.Operation.GET)
Iterator<VertexFrame> getImplementors();
 
Example #21
Source File: JavaInterfaceVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "implements", direction = Direction.IN, operation = Incidence.Operation.GET)
<V extends JavaClassVertex> Iterator<V> getImplementors(Class<V> type);
 
Example #22
Source File: TestIncidenceBbbModel.java    From windup with Eclipse Public License 1.0 4 votes vote down vote up
@Incidence(label = TestIncidenceAaaToBbbEdgeModel.TYPE, direction = IN)
List<TestIncidenceAaaToBbbEdgeModel> getEdgesToAaa();
 
Example #23
Source File: TestIncidenceAaaModel.java    From windup with Eclipse Public License 1.0 4 votes vote down vote up
@Incidence(label = TestIncidenceAaaToBbbEdgeModel.TYPE, direction = OUT)
List<TestIncidenceAaaToBbbEdgeModel> getEdgesToBbb();
 
Example #24
Source File: JavaClassVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "extends", direction = Direction.OUT)
public AbstractEdgeFrame getSuperClassTEdge();
 
Example #25
Source File: Person.java    From peapod with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "knows")
public abstract Knows addKnows(Person friend);
 
Example #26
Source File: IncidenceMethodHandler.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Override
public Class<Incidence> getAnnotationType() {
    return Incidence.class;
}
 
Example #27
Source File: FileVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "parent", direction = Direction.OUT)
public abstract <EdgeType> Iterator<EdgeType> getOutEdges(Class<EdgeType> parentTypes);
 
Example #28
Source File: DirectoryVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "parent", direction = Direction.IN, operation = Incidence.Operation.ADD)
public abstract TEdge createSubDirParentEdge();
 
Example #29
Source File: DirectoryVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "parent", direction = Direction.OUT, operation = Incidence.Operation.ADD)
public abstract TEdge createSubDirChildEdge();
 
Example #30
Source File: DirectoryVertex.java    From Ferma with Apache License 2.0 4 votes vote down vote up
@Incidence(label = "parent", direction = Direction.IN, operation = Incidence.Operation.ADD)
public abstract <T extends FileVertex> TEdge addItemEdge(ClassInitializer<? extends T> initializer);