| Home >> All >> org >> apache >> jorphan |
Package Samples:
org.apache.jorphan.collections
org.apache.jorphan.gui.layout
org.apache.jorphan.gui
org.apache.jorphan.io
org.apache.jorphan.logging
org.apache.jorphan.math
org.apache.jorphan.reflect
org.apache.jorphan.test
org.apache.jorphan.timer
org.apache.jorphan.util
Classes:
AllTests: Provides a quick and easy way to run all junit unit tests in your java project. It will find all unit test classes and run all their test methods. There is no need to configure it in any way to find these classes except to give it a path to search. Here is an example Ant target (See Ant at Apache ) that runs all your unit tests: <target name="test" depends="compile"> <java classname="org.apache.jorphan.test.AllTests" fork="yes"> <classpath> <path refid="YOUR_CLASSPATH"/> <pathelement location="ROOT_DIR_OF_YOUR_COMPILED_CLASSES"/> ...
HashTreeTraverser: By implementing this interface, a class can easily traverse a HashTree object, and be notified via callbacks of certain events. There are three such events: When a node is first encountered, the traverser's addNode(Object,HashTree) 55 method is called. It is handed the object at that node, and the entire sub-tree of the node. When a leaf node is encountered, the traverser is notified that a full path has been finished via the processPath() 55 method. It is the traversing class's responsibility to know the path that has just finished (this can be done by keeping a simple stack of all added nodes). ...
HashTree: This class is used to create a tree structure of objects. Each element in the tree is also a key to the next node down in the tree. It provides many ways to add objects and branches, as well as many ways to retrieve. HashTree implements the Map interface for convenience reasons. The main difference between a Map and a HashTree is that the HashTree organizes the data into a recursive tree structure, and provides the means to manipulate that structure. Of special interest is the traverse(HashTreeTraverser) 55 method, which provides an expedient way to traverse any HashTree by implementing the HashTreeTraverser ...
SearchByClass: Useful for finding all nodes in the tree that represent objects of a particular type. For instance, if your tree contains all strings, and a few StringBuffer objects, you can use the SearchByClass traverser to find all the StringBuffer objects in your tree. Usage is simple. Given a HashTree object "tree", and a SearchByClass object: HashTree tree = new HashTree(); // ... tree gets filled with objects SearchByClass searcher = new SearchByClass(StringBuffer.class); tree.traverse(searcher); Iterator iter = searcher.getSearchResults().iterator(); while (iter.hasNext()) { StringBuffer foundNode = (StringBuffer) ...
ListedHashTree: ListedHashTree is a different implementation of the HashTree collection class. In the ListedHashTree, the order in which values are added is preserved (not to be confused with SortedHashTree , which sorts the order of the values using the compare() function). Any listing of nodes or iteration through the list of nodes of a ListedHashTree will be given in the order in which the nodes were added to the tree.
ITimer: A simple interface for measuring time intervals. An instance of this goes through the following lifecycle states: ready timer is ready to start a new measurement started timer has recorded the starting time interval point stopped timer has recorded the ending time interval point See individual methods for details. If this library has been compiled with ITimerConstants#DO_STATE_CHECKS set to 'true' the implementation will enforce this lifecycle model and throw IllegalStateException when it is violated.
JavaSystemTimer: A package-private implementation of ITimer based around Java system timer [ System.currentTimeMillis() method]. It is used when HRTimer implementation is unavailable. TimerFactory acts as the Factory for this class. MT-safety: an instance of this class is safe to be used within the same thread only.
HRTimer: A package-private implementation of ITimer based around native getTime method. It will work on any platform for which a JNI implementation of "hrtlib" library is available. TimerFactory acts as the Factory for this class. MT-safety: an instance of this class is safe to be used within the same thread only.
VerticalLayout: A vertical layout manager similar to java.awt.FlowLayout. Like FlowLayout components do not expand to fill available space except when the horizontal alignment is BOTH in which case components are stretched horizontally. Unlike FlowLayout, components will not wrap to form another column if there isn't enough space vertically. VerticalLayout can optionally anchor components to the top or bottom of the display area or center them between the top and bottom. Revision date 04 April 1999
SortedHashTree: SortedHashTree is a different implementation of the HashTree collection class. In the SortedHashTree, the ordering of values in the tree is made explicit via the compare() function of objects added to the tree. This works in exactly the same fashion as it does for a SortedSet.
JLabeledTextArea: A Helper component that wraps a JTextField with a label into a JPanel (this). This component also has an efficient event handling mechanism for handling the text changing in the Text Field. The registered change listeners are only called when the text has changed.
JLabeledTextField: A Helper component that wraps a JTextField with a label into a JPanel (this). This component also has an efficient event handling mechanism for handling the text changing in the Text Field. The registered change listeners are only called when the text has changed.
Data: Use this class to store database-like data. This class uses rows and columns to organize its data. It has some convenience methods that allow fast loading and retrieval of the data into and out of string arrays. It is also handy for reading CSV files.
ITimerConstants: A package-private collection of constants used by ITimer implementations in HRTimer and JavaSystemTimer classes.
TimerFactory: This non-instantiable non-extendible class acts as a Factory for ITimer implementations.
ClassContext: Class to get access to the protected getClassContext() method of SecurityManager, thus obtaining the call stack. May not work with applications that install their own security managers.
UnitTestManager: Implement this interface to work with the AllTests class. This interface allows AllTests to pass a configuration file to your application before running the junit unit tests.
TextFile: Utility class to handle text files as a single lump of text. Note this is just as memory-inefficient as handling a text file can be. Use with restraint.
JMeterStopThreadException: This Exception is for use by functions etc to signal a Stop Thread condition where there is no access to the normal stop method
JMeterStopTestException: This Exception is for use by functions etc to signal a Stop Test condition where there is no access to the normal stop method
ComponentUtil: This class is a Util for awt Component and could be used to place them in center of an other.
StatCalculator: This class serves as a way to calculate the median of a list of values. It is not threadsafe.
ClassFinder: This class finds classes that implement one or more specified interfaces.
JMeterError: The rationale for this class is to support chained Errors in JDK 1.3
JMeterException: The rationale for this class is to support chained Errors in JDK 1.3
| Home | Contact Us | Privacy Policy | Terms of Service |