| com.xoetrope.carousel.visualizer.VisualiserDebuggerModel com.xoetrope.editor.netbeans.visualizer.NbDebuggerModel
NbDebuggerModel | public class NbDebuggerModel extends VisualiserDebuggerModel (Code) | | A wrapper for the debugger node.
Copyright (c) Xoetrope 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 Xoetrope.
$Revision: 1.9 $
|
Constructor Summary | |
public | NbDebuggerModel(JPDADebugger jpdaDebugger, ObjectVariable objVar) |
Method Summary | |
public void | append(XModel childNode) | public Object | append(String elementName) Append a new node with the specified name. | public Object | get(String element) | public XModel | get(int i) | public Object | get() | public String | getAttribName(int i) | public Object | getAttribValue(int i) Retrieve the value of the attribute at the specified index and return it. | public double | getAttribValueAsDouble(int i) Retrieve the value of the attribute at the specified index, convert it to a
double and return it. | public double | getAttribValueAsDouble(int i, char decimalSeparator, char groupingSeparator) | public int | getAttribValueAsInt(int i) Retrieve the value of the attribute at the specified index, convert it to an int
and return it. | public String | getAttribValueAsString(int i) Retrieve the value of the attribute at the specified index, convert it to a
String and return it. | public int | getAttribute(String attribName) | public String | getId() | public String | getNodeString() Calls the getToStringValue() method on the encapsulated object
and returns its value. | public int | getNumAttributes() | public int | getNumChildren() | public XModel | getParent() | public String | getTagName() Gets the model element tag name, e.g. | public double | getValueAsDouble(String elementName) Retrieve the named child, convert it's value to a double and return it. | public int | getValueAsInt(String elementName) Retrieve the named child, convert it's value to an int and return it. | public String | getValueAsString(String elementName) Retrieve the named child, convert it's value to a String and return it. | public boolean | hasAutoId() Determine if there is no id set for this model in the datasource
true if there was no name for the element in the DataSource, anexample of this is the annonymouse nodes used to represent the record ofa table e.g. | public void | hasAutoId(boolean b) Used for elements which need a name assigned temporarily because one doesn't
exist in the DataSource. | public int | hashCode() Get a hash code for the node. | public void | insertChildAt(XModel newNode, int idx) | public void | removeChild(String name) | public void | removeChild(XModel childNode) | public XModel | reset() | public void | set(String elementName, Object newObject) Set the named attribute value of this XModel node. | public void | set(Object s) | public void | setAttribValue(int i, Object value) | public void | setAttribValue(int i, String attribName, Object value) | public void | setId(String newId) | public void | setNumChildren(int num) | public void | setObjectVariable(XModel node) | public void | setTagName(String name) |
NbDebuggerModel | public NbDebuggerModel(JPDADebugger jpdaDebugger, ObjectVariable objVar)(Code) | | Creates a new instance of JPDAModelNode
|
append | public void append(XModel childNode)(Code) | | Append a node
Parameters: childNode - the child node |
append | public Object append(String elementName)(Code) | | Append a new node with the specified name. This method does not replace any
existing nodes.
Parameters: elementName - The immediate path to the XModel required The value of the XModel or the attribute |
get | public Object get(String element)(Code) | | 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
Parameters: element - The path to the XModel we require The value of the XModel or the attribute |
get | public XModel get(int i)(Code) | | Get the XModel at element i
Parameters: i - The index of the values array The XModel at location i |
get | public Object get()(Code) | | gets the value attribute
the value of the model |
getAttribName | public String getAttribName(int i)(Code) | | Retrieve the name of the attribute at the specified index
Parameters: i - The index of the attributeNames array whose value we want The string value of the attributeNames array at position i |
getAttribValue | public Object getAttribValue(int i)(Code) | | Retrieve the value of the attribute at the specified index and return it.
Parameters: i - The index of the attributeValues array whose value we want The string value of the attributeValues array at position i |
getAttribValueAsDouble | public double getAttribValueAsDouble(int i)(Code) | | Retrieve the value of the attribute at the specified index, convert it to a
double and return it.
Parameters: i - The index of the attributeValues array whose value we want The double value of the attributeValues array at position i |
getAttribValueAsDouble | public double getAttribValueAsDouble(int i, char decimalSeparator, char groupingSeparator)(Code) | | Convert the attribute at the specified index to a double and return it
Parameters: i - The index of the attributeValues array whose value we want Parameters: decimalSeparator - the decimal separator Parameters: groupingSeparator - the grouping (thousands) separator The double value of the attributeValues array at position i |
getAttribValueAsInt | public int getAttribValueAsInt(int i)(Code) | | Retrieve the value of the attribute at the specified index, convert it to an int
and return it.
Parameters: i - The index of the attributeValues array whose value we want The int value of the attributeValues array at position i |
getAttribValueAsString | public String getAttribValueAsString(int i)(Code) | | Retrieve the value of the attribute at the specified index, convert it to a
String and return it.
Parameters: i - The index of the attributeValues array whose value we want The string value of the attributeValues array at position i |
getAttribute | public int getAttribute(String attribName)(Code) | | Returns the index of the attribiteNames array whose value is the same
as the attribName
Parameters: attribName - The name of the attribute we are trying to locate The index of the attributeNames array containg the name |
getId | public String getId()(Code) | | Gets the value of the ID attribute
the ID attribute |
getNodeString | public String getNodeString()(Code) | | Calls the getToStringValue() method on the encapsulated object
and returns its value. This method is used to determine
class which instance is wrapped by JPDAModelNode
object.
String containing name of the wrapped class. |
getNumAttributes | public int getNumAttributes()(Code) | | Gets the number of attributes of this node
the number of attributes |
getNumChildren | public int getNumChildren()(Code) | | Gets the number of immediate children of this node
|
getParent | public XModel getParent()(Code) | | retrieve the parent XModel of this XModel instance
The parent XModel to which this instance belongs |
getTagName | public String getTagName()(Code) | | Gets the model element tag name, e.g. 'Component' from the XML fragment
|
getValueAsDouble | public double getValueAsDouble(String elementName)(Code) | | Retrieve the named child, convert it's value to a double and return it.
Parameters: elementName - The name of the child whose value is required the value as a double |
getValueAsInt | public int getValueAsInt(String elementName)(Code) | | Retrieve the named child, convert it's value to an int and return it.
Parameters: elementName - The name of the child to be retrieved the value as an int |
getValueAsString | public String getValueAsString(String elementName)(Code) | | Retrieve the named child, convert it's value to a String and return it.
Parameters: elementName - The name of the child whose value is required the value as a string |
hasAutoId | public boolean hasAutoId()(Code) | | Determine if there is no id set for this model in the datasource
true if there was no name for the element in the DataSource, anexample of this is the annonymouse nodes used to represent the record ofa table e.g. | ... | ... |
hasAutoId | public void hasAutoId(boolean b)(Code) | | Used for elements which need a name assigned temporarily because one doesn't
exist in the DataSource.
Parameters: b - true if there was no name in the DataSource |
hashCode | public int hashCode()(Code) | | Get a hash code for the node.
the node's hash code |
insertChildAt | public void insertChildAt(XModel newNode, int idx)(Code) | | Insert a node at a specified index in the list of children
Parameters: newNode - the new model node Parameters: idx - the index at which to insert |
removeChild | public void removeChild(String name)(Code) | | Remove a child
Parameters: name - the ID or name of the node |
removeChild | public void removeChild(XModel childNode)(Code) | | Remove a child node
Parameters: child - the child to be removed |
reset | public XModel reset()(Code) | | Reset the whole model, giving a new root node and a new hierarchy
'deprecated since 1.0.3
The base model |
set | public void set(String elementName, Object newObject)(Code) | | Set the named attribute value of this XModel node. If the attribName is
null then this node's value is updated.
Parameters: elementName - The path to the XModel in the format 'base/foo Parameters: newObject - The new value of the XModel |
set | public void set(Object s)(Code) | | Sets the model value
Parameters: s - the new value |
setAttribValue | public void setAttribValue(int i, Object value)(Code) | | Sets the attribute value
Parameters: i - The index of the attributeValues array whose value we want Parameters: value - the value object |
setAttribValue | public void setAttribValue(int i, String attribName, Object value)(Code) | | Sets the attribute name and value
Parameters: i - The index of the attributeValues array whose value we want Parameters: attribName - the name of the attribute Parameters: value - the value object |
setId | public void setId(String newId)(Code) | | Sets the ID attribute
Parameters: newId - the new name |
setNumChildren | public void setNumChildren(int num)(Code) | | Set the number of children of this node
Parameters: num - the new number of children |
setObjectVariable | public void setObjectVariable(XModel node)(Code) | | |
|
|