1 6 7 package com.hp.hpl.jena.shared; 8 9 15 public class ReificationStyle 16 { 17 public static final ReificationStyle Standard = new ReificationStyle( true, false ); 18 public static final ReificationStyle Convenient = new ReificationStyle( true, true ); 19 public static final ReificationStyle Minimal = new ReificationStyle( false, true ); 20 21 private boolean intercept; 22 private boolean conceal; 23 24 public ReificationStyle( boolean intercept, boolean conceal ) 25 { 26 this.intercept = intercept; 27 this.conceal = conceal; 28 } 29 30 public boolean intercepts() 31 { return intercept; } 32 33 public boolean conceals() 34 { return conceal; } 35 36 42 public String toString() 43 { 44 if (this == Minimal) return "Minimal"; 45 if (this == Standard) return "Standard"; 46 if (this == Convenient) return "Convenient"; 47 return "<style int=" + intercept + ", con=" + conceal + ">"; 48 } 49 } 50 | Popular Tags |