1 6 package com.hp.hpl.jena.graph; 7 8 14 public class GraphEvents 15 { 16 public static final GraphEvents removeAll = new GraphEvents( "removeAll", "" ); 17 18 public static final GraphEvents startRead = new GraphEvents( "startRead", "" ); 19 20 public static final GraphEvents finishRead = new GraphEvents( "finishRead", "" ); 21 22 private String title; 23 private Object content; 24 25 public GraphEvents( String title, Object content ) 26 { this.title = title; 27 this.content = content; } 28 29 public boolean equals( Object o ) 30 { return o instanceof GraphEvents && same( (GraphEvents) o ); } 31 32 public boolean same( GraphEvents o ) 33 { return title.equals( o.title ) && content.equals( o.content ); } 34 35 public static Object remove( Node s, Node p, Node o ) 36 { return new GraphEvents( "remove", Triple.create( s, p, o ) ); } 37 38 public String toString() 39 { return "<GE " + title + ">"; } 40 } 41 42 | Popular Tags |