| com.xoetrope.carousel.visualizer.VisualiserDebuggerModel com.xoetrope.editor.eclipse.visualizer.EclipseDebuggerModel
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) 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. | 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 getValueString() method on the encapsulated
IJavaObject instance. | public int | getNumAttributes() | public int | getNumChildren() | public XModel | getParent() | public String | getTagName() | 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 elementName) | 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 object) | 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 | setTagName(String name) |
EclipseDebuggerModel | public EclipseDebuggerModel(IJavaStackFrame sFrame, IJavaObject jObject)(Code) | | Creates a new instance of EclipseDebuggerModel
Parameters: sFrame - a stack frame in a thread on a JVM Parameters: jObject - IjavaObject instance that is to be adaptedby this object. |
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 no replace any
existing nodes.
Parameters: elementName - The immediate path to the XModel requried 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 Parameters: 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 getValueString() method on the encapsulated
IJavaObject instance.
|
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
the number of child nodes |
getParent | public XModel getParent()(Code) | | Retrieve the parent XModel of this XModel instance
The parent XModel to which this instance belongs |
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) | | Inserts a node at the 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 elementName)(Code) | | Remove a child
Parameters: value - the ID or name of this node |
removeChild | public void removeChild(XModel childNode)(Code) | | Remove a child node
childNode the child node to be removed
|
reset | public XModel reset()(Code) | | |
set | public void set(String elementName, Object newObject)(Code) | | Set the named attribute value of this XModel node. If the attribute name if null
than 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 object)(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) | | Sets the number of children of this node
Parameters: num - the new number of children |
|
|