|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.edit.language.model.LanguageModelElement com.ibm.etools.iseries.edit.language.model.LanguageModel
public class LanguageModel
This model contains child elements. An element contains attributes that are properties of the element. The model object is an element itself and is considered to be the root. However, this root is not a part of the tree that is displayed. This root element should only have one child. The entire tree can be printed to the console using the printElementTree method.
Field Summary | |
---|---|
protected boolean |
_bNotifyListeners
|
protected Vector<ILanguageModelListener> |
_vectorListeners
|
static String |
Copyright
|
Fields inherited from class com.ibm.etools.iseries.edit.language.model.LanguageModelElement |
---|
_elementParent, _iLineNumberFirst, _iLineNumberLast, _model, _name, _objData, _strImage, _strName, _vectorAttributes, _vectorChildElements |
Constructor Summary | |
---|---|
LanguageModel()
Constructor. |
Method Summary | |
---|---|
static void |
addAttributeToElement(LanguageModelElement element,
String strAttributeName,
String strValue,
boolean bEditable)
Convenience method that adds an attribute (property) to the element. |
void |
addLanguageModelListener(ILanguageModelListener listener)
Adds a listener to this model. |
static LanguageModelElement |
createChildElement(LanguageModelElement elementParent,
String strName,
String strImageName,
int iLineNumberFirst,
int iLineNumberLast,
int iLocation)
Convenience method that creates a child element of the given parent element. |
static void |
deleteElement(LanguageModel model,
LanguageModelElement element)
Convenience method to delete an element from a model. |
protected void |
elementAdded(LanguageModelElement elementAdded)
Used by elements to notify the model that an element has been added. |
void |
elementChanged(LanguageModelElement elementChanged)
Used by elements to notify the model that an element has changed. |
protected void |
elementRemoved(LanguageModelElement elementRemoved)
Used by elements to notify the model that an element has been removed |
LanguageModelElement |
getRootElement()
Returns the root element which is this one. |
void |
printElementTree()
This overrides the default behaviour since this is the root element that really is not a part of the element tree. |
void |
removeLanguageModelListener(ILanguageModelListener listener)
Adds a listener to this model. |
void |
setNotifyListeners(boolean bNotifyListeners)
When set to false, listeners are not notified when elements have been added, removed, or changed. |
Methods inherited from class com.ibm.etools.iseries.edit.language.model.LanguageModelElement |
---|
addAttribute, addChildElement, addChildElement, findElementFromHashValue, getAdapter, getAttribute, getAttributeValue, getChildElement, getChildElementAt, getChildElementIndex, getChildren, getData, getEditableValue, getElementFromLineNumber, getImageName, getLineRangeExtent, getLineRangeOrigin, getModel, getName, getNumberOfAttributes, getNumberOfChildElements, getParent, getPropertyDescriptors, getPropertyValue, hasChildren, hasDescendent, isPropertySet, printElementTree, removeAllChildElements, removeChildElement, resetPropertyValue, setData, setPropertyValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
protected Vector<ILanguageModelListener> _vectorListeners
protected boolean _bNotifyListeners
Constructor Detail |
---|
public LanguageModel()
Method Detail |
---|
public static void addAttributeToElement(LanguageModelElement element, String strAttributeName, String strValue, boolean bEditable)
public void addLanguageModelListener(ILanguageModelListener listener)
public static LanguageModelElement createChildElement(LanguageModelElement elementParent, String strName, String strImageName, int iLineNumberFirst, int iLineNumberLast, int iLocation)
public static void deleteElement(LanguageModel model, LanguageModelElement element)
protected void elementAdded(LanguageModelElement elementAdded)
public void elementChanged(LanguageModelElement elementChanged)
protected void elementRemoved(LanguageModelElement elementRemoved)
public LanguageModelElement getRootElement()
public void printElementTree()
printElementTree
in class LanguageModelElement
public void removeLanguageModelListener(ILanguageModelListener listener)
public void setNotifyListeners(boolean bNotifyListeners)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |