|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.data.DataModel
org.formaria.editor.visualizer.VisualiserDebuggerModel
org.formaria.editor.netbeans.visualizer.NbDebuggerModel
public class NbDebuggerModel
A wrapper for the debugger node.
Copyright (c) Formaria Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
$Revision: 1.9 $
| Field Summary |
|---|
| Fields inherited from class org.formaria.aria.data.DataModel |
|---|
parentModel, tagName |
| Constructor Summary | |
|---|---|
NbDebuggerModel(JPDADebugger jpdaDebugger,
ObjectVariable objVar)
Creates a new instance of JPDAModelNode |
|
| Method Summary | |
|---|---|
void |
append(DataModel childNode)
Append a node |
java.lang.Object |
append(java.lang.String elementName)
Append a new node with the specified name. |
java.lang.Object |
get()
gets the value attribute |
DataModel |
get(int i)
Get the DataModel at element i |
java.lang.Object |
get(java.lang.String element)
Get the value of the element located at the path in the element parameter If the attribName parameter is not null we get the value of the attributeValues |
java.lang.String |
getAttribName(int i)
Retrieve the name of the attribute at the specified index |
int |
getAttribute(java.lang.String attribName)
Returns the index of the attribiteNames array whose value is the same as the attribName |
java.lang.Object |
getAttribValue(int i)
Retrieve the value of the attribute at the specified index and return it. |
double |
getAttribValueAsDouble(int i)
Deprecated. use getAttribValueAsDouble( i, decimalSeparator, groupingSeparator ) instead, if the locale is different from the locale used to write the values to the model, then the parsed value may be incorrect. |
double |
getAttribValueAsDouble(int i,
char decimalSeparator,
char groupingSeparator)
Convert the attribute at the specified index to a double and return it |
int |
getAttribValueAsInt(int i)
Retrieve the value of the attribute at the specified index, convert it to an int and return it. |
java.lang.String |
getAttribValueAsString(int i)
Retrieve the value of the attribute at the specified index, convert it to a String and return it. |
java.lang.String |
getId()
Gets the value of the ID attribute |
java.lang.String |
getNodeString()
Calls the getToStringValue() method on the encapsulated object
and returns its value. |
int |
getNumAttributes()
Gets the number of attributes of this node |
int |
getNumChildren()
Gets the number of immediate children of this node |
DataModel |
getParent()
retrieve the parent DataModel of this DataModel instance |
java.lang.String |
getTagName()
Gets the model element tag name, e.g. |
double |
getValueAsDouble(java.lang.String elementName)
Retrieve the named child, convert it's value to a double and return it. |
int |
getValueAsInt(java.lang.String elementName)
Retrieve the named child, convert it's value to an int and return it. |
java.lang.String |
getValueAsString(java.lang.String elementName)
Retrieve the named child, convert it's value to a String and return it. |
boolean |
hasAutoId()
Determine if there is no id set for this model in the datasource |
void |
hasAutoId(boolean b)
Used for elements which need a name assigned temporarily because one doesn't exist in the DataSource. |
int |
hashCode()
Get a hash code for the node. |
void |
insertChildAt(DataModel newNode,
int idx)
Insert a node at a specified index in the list of children |
void |
removeChild(DataModel childNode)
Remove a child node |
void |
removeChild(java.lang.String name)
Remove a child |
DataModel |
reset()
Reset the whole model, giving a new root node and a new hierarchy 'deprecated since 1.0.3 |
void |
set(java.lang.Object s)
Sets the model value |
void |
set(java.lang.String elementName,
java.lang.Object newObject)
Set the named attribute value of this DataModel node. |
void |
setAttribValue(int i,
java.lang.Object value)
Sets the attribute value |
void |
setAttribValue(int i,
java.lang.String attribName,
java.lang.Object value)
Sets the attribute name and value |
void |
setId(java.lang.String newId)
Sets the ID attribute |
void |
setNumChildren(int num)
Set the number of children of this node |
void |
setObjectVariable(DataModel node)
|
void |
setTagName(java.lang.String name)
Sets the model element tag name, e.g. |
| Methods inherited from class org.formaria.aria.data.DataModel |
|---|
addModelListener, clear, fireModelUpdated, prefixOutputPath, removeChildren, reset, resetAttributes, setNumAttributes, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NbDebuggerModel(JPDADebugger jpdaDebugger,
ObjectVariable objVar)
| Method Detail |
|---|
public java.lang.String getNodeString()
getToStringValue() method on the encapsulated object
and returns its value. This method is used to determine
class which instance is wrapped by JPDAModelNode
object.
getNodeString in class VisualiserDebuggerModelpublic void setObjectVariable(DataModel node)
public DataModel reset()
public void setTagName(java.lang.String name)
DataModelsetTagName in class DataModelname - Set the name of the tag which should be set when outputting the DataModelpublic java.lang.String getTagName()
getTagName in class DataModelpublic boolean hasAutoId()
hasAutoId in class DataModelpublic java.lang.String getId()
getId in class DataModelpublic void setId(java.lang.String newId)
setId in class DataModelnewId - the new namepublic java.lang.Object get(java.lang.String element)
get in class DataModelelement - The path to the DataModel we require
public void set(java.lang.String elementName,
java.lang.Object newObject)
set in class DataModelelementName - The path to the DataModel in the format 'base/foonewObject - The new value of the DataModelpublic int getAttribute(java.lang.String attribName)
getAttribute in class DataModelattribName - The name of the attribute we are trying to locate
public void setAttribValue(int i,
java.lang.Object value)
setAttribValue in class DataModeli - The index of the attributeValues array whose value we wantvalue - the value object
public void setAttribValue(int i,
java.lang.String attribName,
java.lang.Object value)
setAttribValue in class DataModeli - The index of the attributeValues array whose value we wantattribName - the name of the attributevalue - the value objectpublic DataModel get(int i)
get in class DataModeli - The index of the values array
public DataModel getParent()
getParent in class DataModelpublic java.lang.Object get()
get in class DataModelpublic void set(java.lang.Object s)
set in class DataModels - the new valuepublic void hasAutoId(boolean b)
hasAutoId in class DataModelb - true if there was no name in the DataSourcepublic java.lang.String getAttribName(int i)
getAttribName in class DataModeli - The index of the attributeNames array whose value we want
public java.lang.String getAttribValueAsString(int i)
getAttribValueAsString in class DataModeli - The index of the attributeValues array whose value we want
public java.lang.Object getAttribValue(int i)
getAttribValue in class DataModeli - The index of the attributeValues array whose value we want
public double getAttribValueAsDouble(int i)
getAttribValueAsDouble in class DataModeli - The index of the attributeValues array whose value we want
public double getAttribValueAsDouble(int i,
char decimalSeparator,
char groupingSeparator)
getAttribValueAsDouble in class DataModeli - The index of the attributeValues array whose value we wantdecimalSeparator - the decimal separatorgroupingSeparator - the grouping (thousands) separator
public int getAttribValueAsInt(int i)
getAttribValueAsInt in class DataModeli - The index of the attributeValues array whose value we want
public double getValueAsDouble(java.lang.String elementName)
getValueAsDouble in class DataModelelementName - The name of the child whose value is required
public int getValueAsInt(java.lang.String elementName)
getValueAsInt in class DataModelelementName - The name of the child to be retrieved
public java.lang.String getValueAsString(java.lang.String elementName)
getValueAsString in class DataModelelementName - The name of the child whose value is required
public int hashCode()
hashCode in class DataModelpublic int getNumChildren()
getNumChildren in class DataModelpublic int getNumAttributes()
getNumAttributes in class DataModelpublic void setNumChildren(int num)
setNumChildren in class DataModelnum - the new number of childrenpublic void append(DataModel childNode)
append in class DataModelchildNode - the child nodepublic java.lang.Object append(java.lang.String elementName)
append in class DataModelelementName - The immediate path to the DataModel required
public void removeChild(java.lang.String name)
removeChild in class VisualiserDebuggerModelname - the ID or name of the nodepublic void removeChild(DataModel childNode)
removeChild in class VisualiserDebuggerModelchild - the child to be removed
public void insertChildAt(DataModel newNode,
int idx)
newNode - the new model nodeidx - the index at which to insert
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||