org.carrot2.util.attribute
Class BindableDescriptorBuilder

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

public class BindableDescriptorBuilder
extends Object

Builds BindableDescriptors based on the provided bindable type instances.


Constructor Summary
BindableDescriptorBuilder()
           
 
Method Summary
static BindableDescriptor buildDescriptor(Object initializedInstance)
          Builds a BindableDescriptor for an initialized instance of a Bindable type.
static BindableDescriptor buildDescriptor(Object initializedInstance, boolean loadMetadata)
          A variant of buildDescriptor(Object) that allows to skip loading metadata for the descriptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindableDescriptorBuilder

public BindableDescriptorBuilder()
Method Detail

buildDescriptor

public static BindableDescriptor buildDescriptor(Object initializedInstance)
Builds a BindableDescriptor for an initialized instance of a Bindable type. Notice that the set of AttributeDescriptor found in the returned BindableDescriptor may vary depending on how the provided instance is initialized.

Parameters:
initializedInstance - initialized instance of a Bindable type for which to build the descriptor
Returns:
the descriptor built

buildDescriptor

public static BindableDescriptor buildDescriptor(Object initializedInstance,
                                                 boolean loadMetadata)
A variant of buildDescriptor(Object) that allows to skip loading metadata for the descriptors.



Copyright (c) Dawid Weiss, Stanislaw Osinski