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;
Human-readable metadata about an attribute. Metadata contains such elements as title, label and description.
@Root(name = "attribute-metadata")
public class AttributeMetadata extends CommonMetadata
    @Element(required = false)
    private String group;
    @Element(required = false)
    private AttributeLevel level;
    public AttributeMetadata()
    {
    }
    public AttributeMetadata(String titleString labelString description)
    {
        this(titlelabeldescriptionnullnull);
    }
    public AttributeMetadata(String titleString labelString descriptionString groupAttributeLevel level)
    {
        this. = title;
        this. = label;
        this. = description;
        this. = group;
        this. = level;
    }
    @Override
    public String toString()
    {
        return "[" +  + ", " +  + ", " +  + "]";
    }

    
Returns the label of the group this attribute belongs to or null if the attribute is not assigned to any group.
    public String getGroup()
    {
        return ;
    }
    public void setGroup(String group)
    {
        this. = group;
    }

    
Returns the attribute level (basic, medium, advanced) or null if the attribute has no level assigned.
    public AttributeLevel getLevel()
    {
        return ;
    }
    
    public void setLevel(AttributeLevel level)
    {
        this. = level;
    }
New to GrepCode? Check out our FAQ X