edu.umd.cfar.lamp.viper.util
Class AbstractMultipleViperSubTree

java.lang.Object
  extended byedu.umd.cfar.lamp.viper.util.AbstractViperSelection
      extended byedu.umd.cfar.lamp.viper.util.AbstractViperSubTree
          extended byedu.umd.cfar.lamp.viper.util.AbstractMultipleViperSubTree
All Implemented Interfaces:
ViperSelection, ViperSubTree

public abstract class AbstractMultipleViperSubTree
extends AbstractViperSubTree

A simple subtree that can have multiple children at each node, unlike the chain-version that abstractViperSubtree supports.


Field Summary
 
Fields inherited from class edu.umd.cfar.lamp.viper.util.AbstractViperSelection
notifyingListeners
 
Constructor Summary
AbstractMultipleViperSubTree()
           
 
Method Summary
 AttrConfig getFirstAttrConfig()
          Get all the first attribute schema node in the selection.
 Attribute getFirstAttribute()
          Get all the first attribute node in the selection.
 Config getFirstConfig()
          Get all the first descriptor schema node in the selection.
 Descriptor getFirstDescriptor()
          Get all the first descriptor node in the selection.
 Sourcefile getFirstSourcefile()
          Get all the first sourcefile node in the selection.
 
Methods inherited from class edu.umd.cfar.lamp.viper.util.AbstractViperSubTree
fireChangeEvent, fireSelectionChanged, getSelectedBy, isEmpty, isFilteredBy, toString
 
Methods inherited from class edu.umd.cfar.lamp.viper.util.AbstractViperSelection
addChangeListener, getChangeListeners, removeChangeListener, writeLock, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.umd.cfar.lamp.viper.util.ViperSubTree
getAttrConfigs, getAttributes, getConfigs, getDescriptors, getRoot, getSourcefiles, isMultipleSelectionAllowedOn
 
Methods inherited from interface edu.umd.cfar.lamp.viper.util.ViperSelection
addChangeListener, getChangeListeners, isSelected, removeChangeListener
 

Constructor Detail

AbstractMultipleViperSubTree

public AbstractMultipleViperSubTree()
Method Detail

getFirstSourcefile

public Sourcefile getFirstSourcefile()
Get all the first sourcefile node in the selection.

Returns:
the first selected sourcefile node

getFirstConfig

public Config getFirstConfig()
Get all the first descriptor schema node in the selection.

Returns:
the first selected descriptor schema node

getFirstAttrConfig

public AttrConfig getFirstAttrConfig()
Get all the first attribute schema node in the selection.

Returns:
the first selected attribute schema node

getFirstDescriptor

public Descriptor getFirstDescriptor()
Get all the first descriptor node in the selection.

Returns:
the first selected descriptor node

getFirstAttribute

public Attribute getFirstAttribute()
Get all the first attribute node in the selection.

Returns:
the first selected attribute node