![]() |
|||
DomainNameSubset.javaGo to the documentation of this file.00001 /* 00002 * DomainNameSubset.java 00003 * 00004 * Created on 20 mars 2003, 11:17 00005 * Copyright (C) 2003 Philippe MOULIN 00006 * www.net2map.org 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License 00010 * as published by the Free Software Foundation; either version 2 00011 * of the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 */ 00022 00023 package org.net2map.pov.dimension.domainName; 00024 00025 import java.beans.*; 00026 import org.apache.lucene.document.Document; 00027 00032 public class DomainNameSubset 00033 extends org.net2map.pov.dimension.Subset 00034 implements java.io.Serializable 00035 { 00036 private static org.apache.log4j.Logger logger = 00037 org.apache.log4j.Logger.getLogger(DomainNameSubset.class.getName()); 00038 private static final String PROP_SAMPLE_PROPERTY = "SampleProperty"; 00039 00040 private String sampleProperty; 00041 00042 private PropertyChangeSupport propertySupport; 00043 00045 public DomainNameSubset (org.net2map.pov.dimension.Container paramContainer) 00046 { 00047 super(paramContainer); 00048 logger.setLevel((org.apache.log4j.Level)org.apache.log4j.Priority.DEBUG); 00049 logger.warn("Creating..."); 00050 propertySupport = new PropertyChangeSupport ( this ); 00051 logger.warn("...Created"); 00052 } 00053 00054 00055 public void addPropertyChangeListener (PropertyChangeListener listener) 00056 { 00057 propertySupport.addPropertyChangeListener (listener); 00058 } 00059 00060 public void removePropertyChangeListener (PropertyChangeListener listener) 00061 { 00062 propertySupport.removePropertyChangeListener (listener); 00063 } 00064 00065 00066 public void buildSubset () 00067 { 00068 //TODO: add real code 00069 } 00070 00071 00072 public void addToSearch(org.net2map.pov.server.Search theSearch) throws java.rmi.RemoteException 00073 { 00074 } 00075 00076 public long getLeftmostValue () 00077 { 00078 return(0);//TODO: Code this! 00079 } 00080 00081 public long getRightmostValue () 00082 { 00083 return(1);//TODO: Code this! 00084 } 00085 00086 public long toLong (org.net2map.pov.server.Result theResult) 00087 { 00088 return((long)0.5); 00089 } 00090 00091 public String toString (long value) 00092 { 00093 return("Notimplemented yet"); 00094 } 00095 00096 public org.net2map.pov.dimension.Subset toCriteria() 00097 { 00098 return(null); 00099 } 00100 00101 public void addPropertyChangeListener(String PropertyName, PropertyChangeListener listener) 00102 { 00103 } 00104 00105 public void removePropertyChangeListener(String PropertyName, PropertyChangeListener listener) 00106 { 00107 } 00108 00109 public String toXml() 00110 { 00111 return("NOT IMPLEMENTED YET");//TODO! 00112 } 00113 00114 public String getLuceneFieldName() 00115 { 00116 return("domainname"); 00117 } 00118 00119 public boolean isValid(Document lucenedoc) 00120 { 00121 return(true);//TODO:! 00122 } 00123 public String toString() 00124 { 00125 return("");//TODO:! 00126 } 00127 00128 } |
|||
|
Accueil | Téléchargement | Manuel
| Doc. technique | Sources CVS |
Faq | Nous contacter
©2003 - All Rights Reserved |
|||