org.carrot2.util.attribute
Class AttributeUtils

java.lang.Object
  extended by org.carrot2.util.attribute.AttributeUtils

public final class AttributeUtils
extends Object

A number of utility methods for working with Attributes.


Method Summary
static String getKey(Class<?> clazz, String fieldName)
          Computes the attribute key according to the definition in Attribute.key().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKey

public static String getKey(Class<?> clazz,
                            String fieldName)
Computes the attribute key according to the definition in Attribute.key().

Parameters:
clazz - class containing the attribute
fieldName - name of the field representing the attribute
Returns:
key of the attribute


Copyright (c) Dawid Weiss, Stanislaw Osinski