org.carrot2.source
Class MultipageSearchEngineDescriptor

java.lang.Object
  extended by org.carrot2.source.MultipageSearchEngineDescriptor
All Implemented Interfaces:
IBindableDescriptor

@Generated(value="Generated from org.carrot2.source.MultipageSearchEngine")
public final class MultipageSearchEngineDescriptor
extends Object
implements IBindableDescriptor

Metadata and attributes of the MultipageSearchEngine component. You can use this descriptor to obtain metadata, such as human readable name and description, about the component as a whole as well as about its attributes. Using the attributeBuilder(Map) you can obtain a builder for type-safe generation of the attribute maps. Please see the main overview for a complete code example.


Nested Class Summary
static class MultipageSearchEngineDescriptor.AttributeBuilder
          Attribute map builder for the MultipageSearchEngine component.
static class MultipageSearchEngineDescriptor.Attributes
          All attributes of the MultipageSearchEngine component.
static class MultipageSearchEngineDescriptor.Keys
          Constants for all attribute keys of the MultipageSearchEngine component.
 
Field Summary
static MultipageSearchEngineDescriptor.Attributes attributes
          Attributes of the component.
 String bindableClassName
          The component class for which this descriptor was generated.
 String description
          A longer, possibly multi sentence, description of the component.
 String label
          A short label for the component.
 String prefix
          Attribute prefix used by the component.
 String title
          A one sentence summary of the component.
 
Constructor Summary
MultipageSearchEngineDescriptor()
           
 
Method Summary
static MultipageSearchEngineDescriptor.AttributeBuilder attributeBuilder(Map<String,Object> attributeValues)
          Creates an attribute map builder for the component.
 Set<AttributeInfo> getAttributes()
          Returns descriptors of attributes declared by the component or its superclasses.
 Map<String,AttributeInfo> getAttributesByFieldName()
          Returns descriptors of attributes declared by the component or its superclasses mapped by the field name.
 Map<String,AttributeInfo> getAttributesByKey()
          Returns descriptors of attributes declared by the component or its superclasses mapped by the attribute key.
 String getDescription()
          Returns a one sentence summary of the component.
 String getLabel()
          Returns a short label for the component.
 Set<AttributeInfo> getOwnAttributes()
          Returns descriptors of attributes declared directly by the component.
 String getPrefix()
          Returns the attribute prefix used by the component.
 String getTitle()
          Returns a one sentence summary of the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bindableClassName

public final String bindableClassName
The component class for which this descriptor was generated.

See Also:
Constant Field Values

prefix

public final String prefix
Attribute prefix used by the component.

See Also:
Constant Field Values

title

public final String title
A one sentence summary of the component. It could be presented as a header of the tool tip of the corresponding UI component.

See Also:
Constant Field Values

label

public final String label
A short label for the component. It can be presented as a label of the corresponding UI component.

See Also:
Constant Field Values

description

public final String description
A longer, possibly multi sentence, description of the component. It could be presented as a body of the tool tip of the corresponding UI component.

See Also:
Constant Field Values

attributes

public static final MultipageSearchEngineDescriptor.Attributes attributes
Attributes of the component. Note that only statically reachable fields are included. Additional attributes may be available at run time.

Constructor Detail

MultipageSearchEngineDescriptor

public MultipageSearchEngineDescriptor()
Method Detail

attributeBuilder

public static MultipageSearchEngineDescriptor.AttributeBuilder attributeBuilder(Map<String,Object> attributeValues)
Creates an attribute map builder for the component. You can use this builder as a type-safe alternative to populating the attribute map using attribute keys.

Parameters:
attributeValues - An existing map which should be used to collect attribute values. Attribute values set by this builder will be added to the provided map, overwriting previously defined mappings, if any.

getPrefix

public String getPrefix()
Description copied from interface: IBindableDescriptor
Returns the attribute prefix used by the component.

Specified by:
getPrefix in interface IBindableDescriptor

getTitle

public String getTitle()
Description copied from interface: IBindableDescriptor
Returns a one sentence summary of the component. It could be presented as a header of the tool tip of the corresponding UI component.

Specified by:
getTitle in interface IBindableDescriptor

getLabel

public String getLabel()
Description copied from interface: IBindableDescriptor
Returns a short label for the component. It can be presented as a label of the corresponding UI component.

Specified by:
getLabel in interface IBindableDescriptor

getDescription

public String getDescription()
Description copied from interface: IBindableDescriptor
Returns a one sentence summary of the component. It could be presented as a header of the tool tip of the corresponding UI component.

Specified by:
getDescription in interface IBindableDescriptor

getOwnAttributes

public Set<AttributeInfo> getOwnAttributes()
Description copied from interface: IBindableDescriptor
Returns descriptors of attributes declared directly by the component.

Specified by:
getOwnAttributes in interface IBindableDescriptor

getAttributes

public Set<AttributeInfo> getAttributes()
Description copied from interface: IBindableDescriptor
Returns descriptors of attributes declared by the component or its superclasses.

Specified by:
getAttributes in interface IBindableDescriptor

getAttributesByKey

public Map<String,AttributeInfo> getAttributesByKey()
Description copied from interface: IBindableDescriptor
Returns descriptors of attributes declared by the component or its superclasses mapped by the attribute key.

Specified by:
getAttributesByKey in interface IBindableDescriptor

getAttributesByFieldName

public Map<String,AttributeInfo> getAttributesByFieldName()
Description copied from interface: IBindableDescriptor
Returns descriptors of attributes declared by the component or its superclasses mapped by the field name.

Specified by:
getAttributesByFieldName in interface IBindableDescriptor


Copyright (c) Dawid Weiss, Stanislaw Osinski