<commit_before>/*
 * $Log: not supported by cvs2svn $
 * Revision 1.7  2006/01/18 14:23:31  georgeda
 * TT# 376 - Updated to use new Java 1.5 features
 *
 * Revision 1.6  2005/11/14 14:16:51  georgeda
 * Cleanup
 *
 * 
 * $Id: ClinicalMarker.java,v 1.8 2006-04-17 19:13:46 pandyas Exp $
 */
package gov.nih.nci.camod.domain;

import java.io.Serializable;

import gov.nih.nci.camod.util.Duplicatable;
import gov.nih.nci.camod.util.HashCodeUtil;

public class ClinicalMarker extends BaseObject implements Comparable, Serializable, Duplicatable
{

    private static final long serialVersionUID = 3259615453799404851L;

    private String name;
    private String nameUnctrlVocab;    
    private String value;

    /**
     * @return Returns the name.
     */
    public String getName()
    {
        return name;
    }

    /**
     * @param name
     *            The name to set.
     */
    public void setName(String name)
    {
        this.name = name;
    }
    /**
     * @return Returns the nameUnctrlVocab.
     */
    public String getNameUnctrlVocab()
    {
        return nameUnctrlVocab;
    }

    /**
     * @param nameUnctrlVocab
     *            The nameUnctrlVocab to set.
     */
    public void setNameUnctrlVocab(String nameUnctrlVocab)
    {
        this.nameUnctrlVocab = nameUnctrlVocab;
    }    
    /**
     * @return Returns the value.
     */
    public String getValue()
    {
        return value;
    }

    /**
     * @param value
     *            The value to set.
     */
    public void setValue(String value)<commit_msg>Added displayName for left menu bar<commit_after>/*
 * $Log: not supported by cvs2svn $
 * Revision 1.8  2006/04/17 19:13:46  pandyas
 * caMod 2.1 OM changes and added log/id header
 *
 * Revision 1.7  2006/01/18 14:23:31  georgeda
 * TT# 376 - Updated to use new Java 1.5 features
 *
 * Revision 1.6  2005/11/14 14:16:51  georgeda
 * Cleanup
 *
 * 
 * $Id: ClinicalMarker.java,v 1.9 2006-04-27 15:01:04 pandyas Exp $
 */
package gov.nih.nci.camod.domain;

import java.io.Serializable;

import gov.nih.nci.camod.util.Duplicatable;
import gov.nih.nci.camod.util.HashCodeUtil;

public class ClinicalMarker extends BaseObject implements Comparable, Serializable, Duplicatable
{

    private static final long serialVersionUID = 3259615453799404851L;

    private String name;
    private String nameUnctrlVocab;    
    private String value;

    /**
     * @return Returns the name.
     */
    public String getName()
    {
        return name;
    }

    /**
     * @param name
     *            The name to set.
     */
    public void setName(String name)
    {
        this.name = name;
    }
    /**
     * @return Returns the nameUnctrlVocab.
     */
    public String getNameUnctrlVocab()
    {
        return nameUnctrlVocab;
    }

    /**
     * @param nameUnctrlVocab
     *            The nameUnctrlVocab to set.
     */
    public void setNameUnctrlVocab(String nameUnctrlVocab)
    {
        this.nameUnctrlVocab = nameUnctrlVocab;
    } 
    
    /**
     * @return Returns the display name.
     */
    public String getDisplayName()
    {
        String theDisplayName = name;
        if (theDisplayName == null && nameUnctrlVocab != null)
        {
            theDisplayName = "Other - " + nameUnctrlVocab;
        }

        return theDisplayName;
    }    
    /**
     * @return Returns the value.
     */
    public String getValue()
    {
        return value;
    }

    /**
     * @param value
     *            The value to set.
     */
    public void setValue(String value)
{'fraction_non_alphanumeric': 0.09688289806234204, 'fraction_numerical': 0.046054479078910415, 'mean_word_length': 2.0418445772843725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5519600', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1171, 'n_words': 290}