|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents some selection of elements from a viper tree.
This interface represents a looser interpretation of
a viper tree as a DAG, with the Config
and
AttrConfig
nodes being parallel to the
Sourcefile
node.
Method Summary | |
java.util.Iterator |
getAttrConfigs()
Get all the attribute configuration nodes currently in the selection. |
java.util.Iterator |
getAttributes()
Get all the attribute nodes currently in the selection. |
java.util.Iterator |
getConfigs()
Get all the descriptor configuration nodes currently in the selection. |
java.util.Iterator |
getDescriptors()
Get all the descriptor nodes currently in the selection. |
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. |
ViperData |
getRoot()
Gets the root these elements are selected from. |
java.util.Iterator |
getSelectedBy(java.lang.Class c)
Gets the selections of the given viper node type. |
java.util.Iterator |
getSourcefiles()
Get all the sourcefile nodes currently in the selection. |
boolean |
isFilteredBy(java.lang.Class type)
Only nodes beneath some subset of the nodes of the specified type are selected. |
boolean |
isMultipleSelectionAllowedOn(java.lang.Class type)
Determines if the given type is allowed to have more than one selection. |
Methods inherited from interface edu.umd.cfar.lamp.viper.util.ViperSelection |
addChangeListener, getChangeListeners, isEmpty, isSelected, removeChangeListener |
Method Detail |
public ViperData getRoot()
public boolean isFilteredBy(java.lang.Class type)
type
- one of the viper.api interfaces,
e.g. Sourcefile.class
false
if there is no filtering
by the given type (i.e. all children of selected
parents are selected)public boolean isMultipleSelectionAllowedOn(java.lang.Class type)
type
- one of the viper.api interfaces,
e.g. Sourcefile.class
false
if only one, all, or no
elements may be selected from the given typepublic java.util.Iterator getSelectedBy(java.lang.Class c)
c
- the node type, e.g. Sourcefile.class
public java.util.Iterator getSourcefiles()
public java.util.Iterator getConfigs()
public java.util.Iterator getAttrConfigs()
public java.util.Iterator getDescriptors()
public java.util.Iterator getAttributes()
public Sourcefile getFirstSourcefile()
public Config getFirstConfig()
public AttrConfig getFirstAttrConfig()
public Descriptor getFirstDescriptor()
public Attribute getFirstAttribute()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |