Changeset 116


Ignore:
Timestamp:
Jul 5, 2011, 12:09:47 PM (8 years ago)
Author:
hailiang.mei@…
Message:
 
Location:
trunk/code/conceptwiki/conceptwiki-storage/src/main/java/nl/nbic/conceptwiki/storage
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/code/conceptwiki/conceptwiki-storage/src/main/java/nl/nbic/conceptwiki/storage/Vertex.java

    r114 r116  
    55
    66import java.util.*;
    7 import org.neo4j.graphdb.*;
    87
    98/**
     
    1211 */
    1312public interface Vertex {
     13    /**
     14     * Retrieves whether the property with name propertyName exists.
     15     * @param propertyName the name of the property.
     16     * @return whether the property exists.
     17     */
     18    boolean hasProperty(String propertyName);
     19   
     20    /**
     21     * Retrieves the property value.
     22     * @param propertyName the name of the property.
     23     * @return the property value or null when the property does not exist.
     24     */
    1425    String getProperty(String propertyName);
     26
     27    /*
     28     * Retrieves a list of edges that connect to this vertex
     29     * @param direction: .
     30     * @return the property value or null when the property does not exist.
     31     */
     32    Iterator<Edge> linkIterator(Orientation orientation, EdgeType edgeType);
    1533   
    16     boolean hasProperty(String propertyName);
     34    boolean connectToNewVertex(Orientation orientation, Vertex newVertex, String edgeProperties, String vertexProperties);       
    1735
    18     Iterator<Edge> linkIterator(Direction direction, String linkType);
    19    
    20     boolean connectToNewVertex(Direction direction, Vertex newVertex, String edgeProperties, String vertexProperties);       
    21 
    22     boolean connectToExistingVertex(Direction direction, Vertex existingVertex, String edgeProperties, String vertexProperties);
     36    boolean connectToExistingVertex(Orientation orientation, Vertex existingVertex, String edgeProperties, String vertexProperties);
    2337
    2438}
Note: See TracChangeset for help on using the changeset viewer.