Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 /*
  * Carrot2 project.
  *
  * Copyright (C) 2002-2012, Dawid Weiss, Stanisław Osiński.
  * All rights reserved.
  *
  * Refer to the full license file "carrot2.LICENSE"
  * in the root folder of the repository checkout or at:
 * http://www.carrot2.org/carrot2.LICENSE
 */
package org.carrot2.util.attribute;
Common metadata items for BindableMetadata and AttributeMetadata.
public class CommonMetadata
    @Element(required = false, data = true)
    protected String title;
    @Element(required = false)
    protected String label;
    @Element(required = false, data = true)
    protected String description;

    
A one sentence summary of the element. Could be presented as a header of the tool tip of the corresponding UI component.
    public String getTitle()
    {
        return ;
    }
    public void setTitle(String title)
    {
        this. = title;
    }

    
A short label for the element which can be presented as the label of the corresponding UI component.
    public String getLabel()
    {
        return ;
    }
    public void setLabel(String label)
    {
        this. = label;
    }

    
Returns the label if it is not-null, otherwise returns title.
    public String getLabelOrTitle()
    {
        return Strings.isNullOrEmpty() ?  : ;
    }
    
    
A longer, possibly multi sentence, description of the element. Could be presented as a body of the tool tip of the corresponding UI component.
    public String getDescription()
    {
        return ;
    }
    public void setDescription(String plainTextDescription)
    {
        this. = plainTextDescription;
    }
New to GrepCode? Check out our FAQ X