Class ExperimentBeanDescription
java.lang.Object
uk.ac.gda.client.experimentdefinition.ExperimentBeanDescription
- All Implemented Interfaces:
org.eclipse.richbeans.xml.cell.IXMLFileListProvider,IExperimentBeanDescription
Immutable class representing an Exafs Specialisation of a Bean Description
-
Constructor Summary
ConstructorsConstructorDescriptionExperimentBeanDescription(String name, String type, String commandId, XMLCommandHandler handler, Class<? extends XMLRichBean> beanClass, org.eclipse.core.runtime.content.IContentType contentType, boolean includeInNew) -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends XMLRichBean> Get the bean class we are describingRetrieve all the Bean Descriptions provided byExperimentBeanManager.getBeanDescriptions()filtered by receivers bean typeShould return which Exafs type of top level bean this is.Return the command id (org.eclipse.ui.commands) that corresponds to this describer.org.eclipse.core.runtime.content.IContentTypeGet the content type for this bean.Collection<org.eclipse.core.runtime.content.IContentType> Retrieve all content types provided bygetBeanDescriptions()getName()Returns the user displayed name for this Bean.List<org.eclipse.core.resources.IFile> getSortedFileList(org.eclipse.core.resources.IFolder dir) Return an instance of theXMLCommandHandlerthe corresponds to this describer.booleanReturns whether the bean described by this description should be included in a newly created (default) scantoString()Formats the toString output in Title Case
-
Constructor Details
-
ExperimentBeanDescription
public ExperimentBeanDescription(String name, String type, String commandId, XMLCommandHandler handler, Class<? extends XMLRichBean> beanClass, org.eclipse.core.runtime.content.IContentType contentType, boolean includeInNew)
-
-
Method Details
-
toString
-
getName
Description copied from interface:IExperimentBeanDescriptionReturns the user displayed name for this Bean.- Specified by:
getNamein interfaceIExperimentBeanDescription- Returns:
- name, will not be
nullor empty string
-
getBeanClass
Description copied from interface:IExperimentBeanDescriptionGet the bean class we are describing- Specified by:
getBeanClassin interfaceIExperimentBeanDescription- Returns:
- the bean class, will not be
null
-
includeInNew
public boolean includeInNew()Description copied from interface:IExperimentBeanDescriptionReturns whether the bean described by this description should be included in a newly created (default) scan- Specified by:
includeInNewin interfaceIExperimentBeanDescription- Returns:
- whether to include in a new scan
-
getContentType
public org.eclipse.core.runtime.content.IContentType getContentType()Description copied from interface:IExperimentBeanDescriptionGet the content type for this bean.- Specified by:
getContentTypein interfaceIExperimentBeanDescription- Returns:
- content type, or
nullif bean is not registered with Eclipse
-
getBeanType
Description copied from interface:IExperimentBeanDescriptionShould return which Exafs type of top level bean this is.- Specified by:
getBeanTypein interfaceIExperimentBeanDescription- Returns:
- applicable type, must not return
null
-
getCommandId
Description copied from interface:IExperimentBeanDescriptionReturn the command id (org.eclipse.ui.commands) that corresponds to this describer.- Specified by:
getCommandIdin interfaceIExperimentBeanDescription- Returns:
- command id, or null if there is no corresponding command
-
getXmlCommandHander
Description copied from interface:IExperimentBeanDescriptionReturn an instance of theXMLCommandHandlerthe corresponds to this describer.The implementer should cache the result and return it each time.
- Specified by:
getXmlCommandHanderin interfaceIExperimentBeanDescription- Returns:
- XMLCommandHandler. Must not return
null
-
toStringTitleCase
Formats the toString output in Title Case- Specified by:
toStringTitleCasein interfaceIExperimentBeanDescription- Returns:
- title case of the enum name
-
getSortedFileList
public List<org.eclipse.core.resources.IFile> getSortedFileList(org.eclipse.core.resources.IFolder dir) - Specified by:
getSortedFileListin interfaceorg.eclipse.richbeans.xml.cell.IXMLFileListProvider
-
getBeanDescriptions
Retrieve all the Bean Descriptions provided byExperimentBeanManager.getBeanDescriptions()filtered by receivers bean type- Returns:
- unmodifiable collection of matching descriptions
-
getContentTypes
Retrieve all content types provided bygetBeanDescriptions()- Returns:
- unmodifiable collection of content types
-