org.pfsw.joi.inspectors
Class StringSpy

java.lang.Object
  extended by org.pfsw.joi.Spy
      extended by org.pfsw.joi.AbstractObjectSpy
          extended by org.pfsw.joi.inspectors.StringSpy

public class StringSpy
extends AbstractObjectSpy

Instances of this class are responsible to provide the internal state of strings for presentation in an inspector.


Field Summary
 
Fields inherited from class org.pfsw.joi.Spy
PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, RENDERER_MAPPING_FILENAME, RENDERER_MAPPING_FILENAME_ALL, RENDERER_MAPPING_FILENAME_CLASSLOADER
 
Constructor Summary
StringSpy(java.lang.Object obj)
          Initialize the new instance with default values.
 
Method Summary
protected  void addAllElements()
           
protected  boolean canBeSorted()
          Returns whether or not the elements of the underlying object can be sorted.
protected  java.lang.String getString()
          Returns the wrapped String (is doing the type cast).
 
Methods inherited from class org.pfsw.joi.AbstractObjectSpy
allowsElementModification, createNewElementList, getElementFilter, getElementHolders, getElementNamed, getElements, getFullElementCount, getModifiers, getName, getObject, getType, getValue, initializeElements, setElementFilter, setElementHolders, setElementValue, setName, setObject, sortElements
 
Methods inherited from class org.pfsw.joi.Spy
getRendererRegistry, getTypeString, getTypeStringOf, getValueComponent, getValueString, getValueTypeString, invokeInspectString, is_boolean, is_byte, is_char, is_double, is_float, is_int, is_long, is_short, isEditable, isElementSpy, isPrimitive, objectAsComponent, objectAsString, rendererFor, setRendererRegistry, setValue, valueIsNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringSpy

public StringSpy(java.lang.Object obj)
          throws java.lang.SecurityException
Initialize the new instance with default values.

Throws:
java.lang.SecurityException
Method Detail

getString

protected java.lang.String getString()
Returns the wrapped String (is doing the type cast).


addAllElements

protected void addAllElements()
                       throws java.lang.SecurityException
Specified by:
addAllElements in class AbstractObjectSpy
Throws:
java.lang.SecurityException

canBeSorted

protected boolean canBeSorted()
Returns whether or not the elements of the underlying object can be sorted.

Overrides:
canBeSorted in class AbstractObjectSpy