org.carrot2.util.attribute.metadata
Class BindableMetadata

java.lang.Object
  extended by org.carrot2.util.attribute.metadata.CommonMetadata
      extended by org.carrot2.util.attribute.metadata.BindableMetadata

public class BindableMetadata
extends CommonMetadata

Human-readable metadata for a Bindable type.


Field Summary
 
Fields inherited from class org.carrot2.util.attribute.metadata.CommonMetadata
description, label, title
 
Method Summary
static BindableMetadata forClassWithParents(Class<?> clazz)
          Load metadata of a given bindable class, merged with bindable attributes from parent classes marked with Bindable as well.
 Map<String,AttributeMetadata> getAttributeMetadata()
          Returns metadata for all attributes in the bindable type.
 String toString()
           
 
Methods inherited from class org.carrot2.util.attribute.metadata.CommonMetadata
getDescription, getLabel, getLabelOrTitle, getTitle, setDescription, setLabel, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAttributeMetadata

public Map<String,AttributeMetadata> getAttributeMetadata()
Returns metadata for all attributes in the bindable type.

Returns:
metadata for all attributes in the bindable type. Key in the map represents the attribute key as defined by Attribute.key(). The returned map is unmodifiable.

toString

public String toString()
Overrides:
toString in class Object

forClassWithParents

public static BindableMetadata forClassWithParents(Class<?> clazz)
Load metadata of a given bindable class, merged with bindable attributes from parent classes marked with Bindable as well.



Copyright (c) Dawid Weiss, Stanislaw Osinski