001    package jcolibri.test.test14;
002    
003    import jcolibri.cbrcore.Attribute;
004    import jcolibri.extensions.classification.ClassificationSolution;
005    
006    /**
007     * Bean storing the solution for the Glass data base.
008     * @author Lisa Cummins
009     * @version 1.0
010     */
011    public class GlassSolution implements ClassificationSolution {
012    
013            String type;
014            
015            /**
016             * Returns a String representation of this object.
017             * @return a String representation of this object.
018             */
019            public String toString()
020            {       return type;
021            }
022            
023            /**
024             * Returns the id attribute of this object.
025             * @return the id attribute of this object.
026             */
027            public Attribute getIdAttribute() 
028            {       return new Attribute("type", this.getClass());
029            }
030    
031            /**
032             * Returns the type of this object.
033             * @return the type of this object.
034             */
035            public String getType() 
036            {       return type;
037            }
038    
039            /**
040             * Sets the type of this object to be the given type.
041             * @param type The type to set.
042             */
043            public void setType(String type) 
044            {       this.type = type;
045            }
046    
047            public Object getClassification()
048            {
049                return type;
050            }       
051    }