com.bbn.swede.editor.visualeditors.restriction
Class RestrictionEditorProviderFactory

java.lang.Object
  extended bycom.bbn.swede.editor.visualeditors.restriction.RestrictionEditorProviderFactory

public class RestrictionEditorProviderFactory
extends Object

Returns a ILabelProvider and IContentProvider objects for the RestrictionEditor. The ILabelProvider implements ILabelProvider, ITableLabelProvider, and IFontProvider. The label and content providers are capable of supporting both Jena and OAST objects.

Author:
aperezlo

Nested Class Summary
protected  class RestrictionEditorProviderFactory.DefaultContentProvider
           
protected  class RestrictionEditorProviderFactory.DefaultTableLabelProvider
           
protected  class RestrictionEditorProviderFactory.JenaContentProvider
          Content provider for Jena-based restrictions in the table editor.
protected  class RestrictionEditorProviderFactory.JenaLabelProvider
          Label provider for Jena-based restrictions in the table editor.
protected  class RestrictionEditorProviderFactory.RestrictionContentProvider
           
protected  class RestrictionEditorProviderFactory.RestrictionLabelProvider
           
protected  class RestrictionEditorProviderFactory.SWeDEContentProvider
          Content provider for OAST-based restrictions in the table editor.
protected  class RestrictionEditorProviderFactory.SWeDELabelProvider
          Label provider for OAST-based restrictions in the table editor.
 
Field Summary
protected static RestrictionEditorProviderFactory _me
          The singleton instance.
static String NOT_DEFINED
          NOT_DEFINED- text used by all label providers for a null value.
 
Constructor Summary
RestrictionEditorProviderFactory()
           
 
Method Summary
 RestrictionEditorProviderFactory.RestrictionContentProvider getContentProvider(RestrictionEditorInspector detective, IOWLAbstractSyntaxTree oast)
          Retrieves a content provider for use in the restriction editor.
static RestrictionEditorProviderFactory getFactory()
          Returns, creating if neccesary, a singleton instance of the provider factory.
 RestrictionEditorProviderFactory.RestrictionLabelProvider getLabelProvider(RestrictionEditorInspector detective, IOWLAbstractSyntaxTree oast)
          Retrieves a label provider for use by the restiction editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_DEFINED

public static final String NOT_DEFINED
NOT_DEFINED- text used by all label providers for a null value.

See Also:
Constant Field Values

_me

protected static RestrictionEditorProviderFactory _me
The singleton instance.

Constructor Detail

RestrictionEditorProviderFactory

public RestrictionEditorProviderFactory()
Method Detail

getFactory

public static RestrictionEditorProviderFactory getFactory()
Returns, creating if neccesary, a singleton instance of the provider factory.

Returns:
the singleton instances

getLabelProvider

public RestrictionEditorProviderFactory.RestrictionLabelProvider getLabelProvider(RestrictionEditorInspector detective,
                                                                                  IOWLAbstractSyntaxTree oast)
Retrieves a label provider for use by the restiction editor.

Parameters:
detective - the RestrictionEditorInspector used to support the label provider
oast - the OAST of the current document
Returns:
a ILabelProvider suitable for the RestrictionEditor

getContentProvider

public RestrictionEditorProviderFactory.RestrictionContentProvider getContentProvider(RestrictionEditorInspector detective,
                                                                                      IOWLAbstractSyntaxTree oast)
Retrieves a content provider for use in the restriction editor.

Parameters:
detective - the RestrictionEditorInspector used to support the content provider
oast - the OAST of the current document
Returns:
a IContentProvider suitable for the RestrictionEditor


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.