00001 /* 00002 * Created on Sep 29, 2009 00003 * 00004 * TODO To change the template for this generated file go to 00005 * Window - Preferences - Java - Code Style - Code Templates 00006 */ 00007 package edu.tum.cs.srldb.datadict.domain; 00008 00009 import kdl.prox3.dbmgr.DataTypeEnum; 00010 00011 public class DiscardedDomain extends Domain<String> { 00012 00013 private DiscardedDomain() { 00014 super("#unused#"); 00015 } 00016 00017 private static DiscardedDomain singleton = null; 00018 00019 public static DiscardedDomain getInstance() { 00020 if(singleton != null) 00021 return singleton; 00022 return singleton = new DiscardedDomain(); 00023 } 00024 00028 private static final long serialVersionUID = 1L; 00029 00030 @Override 00031 public boolean contains(String value) { 00032 return false; 00033 } 00034 00035 @Override 00036 public boolean containsString(String value) { 00037 return false; 00038 } 00039 00040 @Override 00041 public DataTypeEnum getType() { 00042 return null; 00043 } 00044 00045 @Override 00046 public String[] getValues() { 00047 return new String[0]; 00048 } 00049 00050 @Override 00051 public boolean isFinite() { 00052 return true; 00053 } 00054 00055 }