1 17 package org.alfresco.repo.search.impl.lucene.query; 18 19 import java.io.IOException ; 20 21 public class SelfAxisStructuredFieldPosition extends AbstractStructuredFieldPosition 22 { 23 24 public SelfAxisStructuredFieldPosition() 25 { 26 super(null, true, false); 27 } 28 29 public int matches(int start, int end, int offset) throws IOException  30 { 31 return offset; 32 } 33 34 public String getDescription() 35 { 36 return "Self Axis"; 37 } 38 39 public boolean linkSelf() 40 { 41 return true; 42 } 43 44 public boolean isTerminal() 45 { 46 return false; 47 } 48 49 50 51 52 } 53 | Popular Tags |