Package org.apache.uima.tools.cpm
Class CpmPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.uima.tools.cpm.CpmPanel
- All Implemented Interfaces:
ActionListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
,TabClosedListener
,FileSelectorListener
,TransportControlListener
public class CpmPanel
extends JPanel
implements ActionListener, FileSelectorListener, TabClosedListener, TransportControlListener
The Class CpmPanel.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
MetaDataPanel used for Collection Reader & AE selection and configuration.(package private) class
The Class StatusCallbackListenerImpl.Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JButton
The add ae button.private JButton
The add consumer button.private JFileChooser
The ae file chooser.private JPanel
The ae main panel.private Vector
The ae specifiers.private JTabbedPaneWithCloseIcons
The ae tabbed pane.private TitledBorder
The ae titled border.private CasInitializerDescription
The cas initializer desc.private FileSelector
The cas initializer file selector.private long
The cas initializer last file sync timestamp.private CpmPanel.ResetableMetaDataPanel
The cas initializer panel.private TitledBorder
The cas initializer titled border.private JMenuItem
The clear all menu item.private CollectionReaderDescription
The collection reader desc.private long
The collection reader last file sync timestamp.private CpmPanel.ResetableMetaDataPanel
The collection reader panel.private TitledBorder
The collection reader titled border.private JFileChooser
The consumer file chooser.private JPanel
The consumers panel.private Vector
The consumer specifiers.private JTabbedPaneWithCloseIcons
The consumer tabbed pane.private TitledBorder
The consumer titled border.private CpeDescription
The current cpe desc.private final ResourceManager
The default resource manager.private int
The elapsed time.private File
The file chooser root dir.static final String
The Constant HELP_MESSAGE.private boolean
The indeterminate progress pause.private long
The last file sync user prompt time.private JSplitPane
The main split pane.private CollectionProcessingEngine
The m CPE.private JButton
The move ae left button.private JButton
The move ae right button.private JButton
The move consumer left button.private JButton
The move consumer right button.private boolean
The m paused.private boolean
The m shutting down.private JMenuItem
The open cpe desc menu item.private JFileChooser
The open save file chooser.private Timer
The performance query timer.private Preferences
Stores user preferences.private static final String
The Constant PREFS_CPE_DESCRIPTOR_FILE.private static final String
The Constant PREFS_SAVE_USING_IMPORTS.private JProgressBar
The progress bar.private Timer
The progress timer.private FileSelector
The reader file selector.private JSplitPane
The reader initializer split pane.private JMenuItem
The refresh menu item.private JMenuItem
The save cpe desc menu item.private JCheckBoxMenuItem
The save using import menu item.private boolean
The save using imports.private boolean
The selected components changed.private static final long
The Constant serialVersionUID.private AbstractButton
The start button.private JLabel
The status label.private AbstractButton
The stop button.private TransportControlPanel
The transport control panel.private JMenuItem
The view cas initializer panel menu item.Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
Adds the AE.private boolean
addAE
(CpeCasProcessor cpeCasProc) Adds the AE.private void
addConsumer
(String consumerSpecifierFile) Adds the consumer.private boolean
addConsumer
(CpeCasProcessor cpeCasProc) Adds the consumer.void
Check for out of sync files.private void
clearAll()
Resets the GUI to an empty state.private void
Marks all fields as not dirty.boolean
Ask user to confirm exist.void
Control paused.void
Control resumed.void
Control started.void
Control stopped.private CpeDescription
Creates the empty cpe description.Creates JMenuItems that should be added to the File menu.private void
createParameterOverrides
(CasProcessorConfigurationParameterSettings aSettings, MetaDataPanel aPanel) Called by createCpeDescription to add configuration parameter overrides to the CpeDescription being constructed, based on the user's changes in the GUI.Creates JMenuItems that should be added to the View menu.void
displayError
(String aErrorString) Displays an error message to the user.void
displayError
(Throwable aThrowable) Displays an error message to the user.private void
Display progress.private void
doSaveCpeDescriptor
(File aFile) Do save cpe descriptor.boolean
fileSelected
(JComponent source, String fileString) File selected.private Frame
Gets the parent frame.private void
Initialize the file choosers.private boolean
isCasConsumerSpecifier
(ResourceSpecifier specifier) Checks if is cas consumer specifier.private boolean
isDirty()
Returns whether the GUI is dirty; that is, whether configuration settings have been modified since the last save.private String
makeUniqueCasProcessorName
(String baseName) Make unique cas processor name.void
On completion.private void
openCpeDescriptor
(File aFile) Open cpe descriptor.private boolean
Populate cas initializer panel.private boolean
Populate collection reader panel.void
Prints the stats.private void
Read preferences.void
Refresh out of sync files.private void
Removes the all A es and consumers.private void
Reset screen.private void
Prompt user for file to save CPE Descriptor to, and do the save.private void
setCasInitializerPanelVisible
(boolean visible) Sets the cas initializer panel visible.private void
setFrameEnabled
(boolean onOff) Called to lock the GUI while processing is occurring.private void
setSaveUsingImports
(boolean b) Sets the save using imports.private void
Start processing.void
tabClosed
(JTabbedPaneWithCloseIcons source, int tabPos) Tab closed.private void
Updates the configuration parameter settings in this.currentCpeDesc to match the current state of the GUI.private void
updateImport
(CpeComponentDescriptor descriptor, File cpeDescSaveFile) Update import.private void
updateImports
(File cpeDescSaveFile) Update imports.private File
Utility method for convertion a URL to a File name, taking care of proper escaping.Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDThe Constant serialVersionUID.- See Also:
-
HELP_MESSAGE
The Constant HELP_MESSAGE.- See Also:
-
PREFS_CPE_DESCRIPTOR_FILE
The Constant PREFS_CPE_DESCRIPTOR_FILE.- See Also:
-
PREFS_SAVE_USING_IMPORTS
The Constant PREFS_SAVE_USING_IMPORTS.- See Also:
-
openCpeDescMenuItem
The open cpe desc menu item. -
saveCpeDescMenuItem
The save cpe desc menu item. -
refreshMenuItem
The refresh menu item. -
clearAllMenuItem
The clear all menu item. -
mainSplitPane
The main split pane. -
readerInitializerSplitPane
The reader initializer split pane. -
collectionReaderPanel
The collection reader panel. -
collectionReaderTitledBorder
The collection reader titled border. -
casInitializerPanel
The cas initializer panel. -
casInitializerTitledBorder
The cas initializer titled border. -
readerFileSelector
The reader file selector. -
casInitializerFileSelector
The cas initializer file selector. -
aeMainPanel
The ae main panel. -
aeTabbedPane
The ae tabbed pane. -
moveAeRightButton
The move ae right button. -
moveAeLeftButton
The move ae left button. -
addAeButton
The add ae button. -
aeTitledBorder
The ae titled border. -
consumersPanel
The consumers panel. -
consumerTitledBorder
The consumer titled border. -
addConsumerButton
The add consumer button. -
moveConsumerRightButton
The move consumer right button. -
moveConsumerLeftButton
The move consumer left button. -
consumerTabbedPane
The consumer tabbed pane. -
aeSpecifiers
The ae specifiers. -
consumerSpecifiers
The consumer specifiers. -
progressBar
The progress bar. -
transportControlPanel
The transport control panel. -
startButton
The start button. -
stopButton
The stop button. -
statusLabel
The status label. -
progressTimer
The progress timer. -
elapsedTime
private int elapsedTimeThe elapsed time. -
performanceQueryTimer
The performance query timer. -
collectionReaderDesc
The collection reader desc. -
casInitializerDesc
The cas initializer desc. -
mCPE
The m CPE. -
indeterminateProgressPause
private boolean indeterminateProgressPauseThe indeterminate progress pause. -
aeFileChooser
The ae file chooser. -
consumerFileChooser
The consumer file chooser. -
openSaveFileChooser
The open save file chooser. -
fileChooserRootDir
The file chooser root dir. -
collectionReaderLastFileSyncTimestamp
private long collectionReaderLastFileSyncTimestampThe collection reader last file sync timestamp. -
casInitializerLastFileSyncTimestamp
private long casInitializerLastFileSyncTimestampThe cas initializer last file sync timestamp. -
lastFileSyncUserPromptTime
private long lastFileSyncUserPromptTimeThe last file sync user prompt time. -
prefs
Stores user preferences. -
mShuttingDown
private boolean mShuttingDownThe m shutting down. -
mPaused
private boolean mPausedThe m paused. -
selectedComponentsChanged
private boolean selectedComponentsChangedThe selected components changed. -
viewCasInitializerPanelMenuItem
The view cas initializer panel menu item. -
currentCpeDesc
The current cpe desc. -
defaultResourceManager
The default resource manager. -
saveUsingImports
private boolean saveUsingImportsThe save using imports. -
saveUsingImportMenuItem
The save using import menu item.
-
-
Constructor Details
-
CpmPanel
public CpmPanel()Instantiates a new cpm panel.
-
-
Method Details
-
initFileChoosers
private void initFileChoosers()Initialize the file choosers. This is called initially from the constructor but can be called again to reset the file choosers to their default state. -
getParentFrame
Gets the parent frame.- Returns:
- the parent frame
-
createFileMenuItems
Creates JMenuItems that should be added to the File menu.- Returns:
- a List of JMenuItems
-
createViewMenuItems
Creates JMenuItems that should be added to the View menu.- Returns:
- a List of JMenuItems
-
setCasInitializerPanelVisible
private void setCasInitializerPanelVisible(boolean visible) Sets the cas initializer panel visible.- Parameters:
visible
- the new cas initializer panel visible
-
readPreferences
private void readPreferences()Read preferences. -
setSaveUsingImports
private void setSaveUsingImports(boolean b) Sets the save using imports.- Parameters:
b
- the new save using imports
-
startProcessing
private void startProcessing()Start processing. -
updateCpeDescriptionParameterOverrides
Updates the configuration parameter settings in this.currentCpeDesc to match the current state of the GUI.- Throws:
Exception
- the exception
-
createParameterOverrides
private void createParameterOverrides(CasProcessorConfigurationParameterSettings aSettings, MetaDataPanel aPanel) throws CpeDescriptorException Called by createCpeDescription to add configuration parameter overrides to the CpeDescription being constructed, based on the user's changes in the GUI.- Parameters:
aSettings
- the CasProcessorConfigurationParameterSettings element that will be modifiedaPanel
- the GUI panel representing settings for the CAS Processor- Throws:
CpeDescriptorException
- the cpe descriptor exception
-
clearDirty
private void clearDirty()Marks all fields as not dirty. To be called when CPE descriptor is opened or saved. -
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
clearAll
private void clearAll()Resets the GUI to an empty state. -
createEmptyCpeDescription
Creates the empty cpe description.- Returns:
- the cpe description
-
saveCpeDescriptor
private void saveCpeDescriptor()Prompt user for file to save CPE Descriptor to, and do the save. -
doSaveCpeDescriptor
Do save cpe descriptor.- Parameters:
aFile
- the a file- Throws:
Exception
- the exception
-
updateImports
Update imports.- Parameters:
cpeDescSaveFile
- the cpe desc save file- Throws:
Exception
- the exception
-
updateImport
Update import.- Parameters:
descriptor
- the descriptorcpeDescSaveFile
- the cpe desc save file- Throws:
Exception
- the exception
-
urlToFile
Utility method for convertion a URL to a File name, taking care of proper escaping.- Parameters:
url
- a URL- Returns:
- File corresponding to that URL
- Throws:
URISyntaxException
- the URI syntax exception
-
displayProgress
private void displayProgress()Display progress. -
confirmExit
public boolean confirmExit()Ask user to confirm exist. Return true if they confirm, false if not.- Returns:
- true, if successful
-
checkForOutOfSyncFiles
public void checkForOutOfSyncFiles()Check for out of sync files. -
refreshOutOfSyncFiles
public void refreshOutOfSyncFiles()Refresh out of sync files. -
displayError
Displays an error message to the user.- Parameters:
aErrorString
- error message to display
-
displayError
Displays an error message to the user.- Parameters:
aThrowable
- Throwable whose message is to be displayed.
-
populateCollectionReaderPanel
private boolean populateCollectionReaderPanel(CpeCollectionReaderIterator cpeColRdr) throws InvalidXMLException, IOException, ResourceConfigurationException Populate collection reader panel.- Parameters:
cpeColRdr
- the cpe col rdr- Returns:
- true, if successful
- Throws:
InvalidXMLException
- the invalid XML exceptionIOException
- Signals that an I/O exception has occurred.ResourceConfigurationException
- the resource configuration exception
-
populateCasInitializerPanel
private boolean populateCasInitializerPanel(CpeCollectionReaderCasInitializer cpeCasIni) throws InvalidXMLException, IOException, ResourceConfigurationException Populate cas initializer panel.- Parameters:
cpeCasIni
- the cpe cas ini- Returns:
- true, if successful
- Throws:
InvalidXMLException
- the invalid XML exceptionIOException
- Signals that an I/O exception has occurred.ResourceConfigurationException
- the resource configuration exception
-
addAE
private void addAE(String aeSpecifierFile) throws CpeDescriptorException, InvalidXMLException, IOException, ResourceConfigurationException Adds the AE.- Parameters:
aeSpecifierFile
- the ae specifier file- Throws:
CpeDescriptorException
- the cpe descriptor exceptionInvalidXMLException
- the invalid XML exceptionIOException
- Signals that an I/O exception has occurred.ResourceConfigurationException
- the resource configuration exception
-
addAE
private boolean addAE(CpeCasProcessor cpeCasProc) throws CpeDescriptorException, InvalidXMLException, IOException, ResourceConfigurationException Adds the AE.- Parameters:
cpeCasProc
- the cpe cas proc- Returns:
- true, if successful
- Throws:
CpeDescriptorException
- the cpe descriptor exceptionInvalidXMLException
- the invalid XML exceptionIOException
- Signals that an I/O exception has occurred.ResourceConfigurationException
- the resource configuration exception
-
addConsumer
private void addConsumer(String consumerSpecifierFile) throws CpeDescriptorException, InvalidXMLException, IOException, ResourceConfigurationException Adds the consumer.- Parameters:
consumerSpecifierFile
- the consumer specifier file- Throws:
CpeDescriptorException
- the cpe descriptor exceptionInvalidXMLException
- the invalid XML exceptionIOException
- Signals that an I/O exception has occurred.ResourceConfigurationException
- the resource configuration exception
-
addConsumer
private boolean addConsumer(CpeCasProcessor cpeCasProc) throws CpeDescriptorException, InvalidXMLException, IOException, ResourceConfigurationException Adds the consumer.- Parameters:
cpeCasProc
- the cpe cas proc- Returns:
- true, if successful
- Throws:
CpeDescriptorException
- the cpe descriptor exceptionInvalidXMLException
- the invalid XML exceptionIOException
- Signals that an I/O exception has occurred.ResourceConfigurationException
- the resource configuration exception
-
makeUniqueCasProcessorName
Make unique cas processor name.- Parameters:
baseName
- the base name- Returns:
- the string
-
removeAllAEsAndConsumers
private void removeAllAEsAndConsumers()Removes the all A es and consumers. -
fileSelected
Description copied from interface:FileSelectorListener
File selected.- Specified by:
fileSelected
in interfaceFileSelectorListener
- Parameters:
source
- the sourcefileString
- the file string- Returns:
- true, if successful
-
tabClosed
Description copied from interface:TabClosedListener
Tab closed.- Specified by:
tabClosed
in interfaceTabClosedListener
- Parameters:
source
- the JTabbedPaneWithCloseIcons control sending this eventtabPos
- position of the tab that was closed
-
controlStarted
public void controlStarted()Description copied from interface:TransportControlListener
Control started.- Specified by:
controlStarted
in interfaceTransportControlListener
-
controlPaused
public void controlPaused()Description copied from interface:TransportControlListener
Control paused.- Specified by:
controlPaused
in interfaceTransportControlListener
-
controlResumed
public void controlResumed()Description copied from interface:TransportControlListener
Control resumed.- Specified by:
controlResumed
in interfaceTransportControlListener
-
controlStopped
public void controlStopped()Description copied from interface:TransportControlListener
Control stopped.- Specified by:
controlStopped
in interfaceTransportControlListener
-
resetScreen
private void resetScreen()Reset screen. -
setFrameEnabled
private void setFrameEnabled(boolean onOff) Called to lock the GUI while processing is occurring. We don't actually disable the JFrame, because we don't want to disable the stop/pause buttons. Instead we disable all of the controls that the user shouldn't mess with while processing is occurring.- Parameters:
onOff
- true to enable, false to disable
-
onCompletion
public void onCompletion()On completion. -
printStats
public void printStats()Prints the stats. -
isDirty
private boolean isDirty()Returns whether the GUI is dirty; that is, whether configuration settings have been modified since the last save.- Returns:
- whether the GUI is dirty
-
openCpeDescriptor
private void openCpeDescriptor(File aFile) throws InvalidXMLException, IOException, CpeDescriptorException, ResourceConfigurationException Open cpe descriptor.- Parameters:
aFile
- the a file- Throws:
InvalidXMLException
- the invalid XML exceptionIOException
- Signals that an I/O exception has occurred.CpeDescriptorException
- the cpe descriptor exceptionResourceConfigurationException
- the resource configuration exception
-
isCasConsumerSpecifier
Checks if is cas consumer specifier.- Parameters:
specifier
- the specifier- Returns:
- true, if is cas consumer specifier
-