|Home >> All >> org >> cantaloop >> [ tools Javadoc ]|
Page 1 2
org.cantaloop.tools: Javadoc index of package org.cantaloop.tools.
TableLayout: TableLayout is a layout manager that arranges components in rows and columns like a spreadsheet. TableLayout allows each row or column to be a different size. A row or column can be given an absolute size in pixels, a percentage of the available space, or it can grow and shrink to fill the remaining space after other rows and columns have been resized. Using spreadsheet terminology, a cell is the intersection of a row and column. Cells have finite, non-negative sizes measured in pixels. The dimensions of a cell depend solely upon the dimensions of its row and column. A component occupies a rectangular ...
PropertyUtils: Utility methods for using Java Reflection APIs to facilitate generic property getter and setter operations on Java objects. Much of this code was originally included in BeanUtils , but has been separated because of the volume of code involved. In general, the objects that are examined and modified using these methods are expected to conform to the property getter and setter method naming conventions described in the JavaBeans Specification (Version 1.0.1). No data type conversions are performed, and there are no usage of any PropertyEditor classes that have been registered, although a convenient ...
Configuration: This class reads the main configuration file cantaloop.properties and resolves the properties found in this configuration file. How the location of the configuration file is detected: Starting with the current directory, the algorithm searches for a directory called etc and checks if it contains the file cantaloop.properties . The algorithm searches up the directory tree until the configuration file is found or the root of the filesystem is reached. In the latter case, it checks if the configuration file can be accessed with getClass().getResource("/etc/cantaloop.properties") . It is also possible ...
FastHashMap: A customized implementation of java.util.HashMap designed to operate in a multithreaded environment where the large majority of method calls are read-only, instead of structural changes. When operating in "fast" mode, read calls are non-synchronized and write calls perform the following steps: Clone the existing collection Perform the modification on the clone Replace the existing collection with the (modified) clone When first created, objects of this class default to "slow" mode, where all accesses of any type are synchronized but no cloning takes place. This is appropriate for initially populating ...
Digester: A Digester processes an XML input stream by matching a series of element nesting patterns to execute Rules that have been added prior to the start of parsing. This package was inspired by the XmlMapper class that was part of Tomcat 3.0 and 3.1, but is organized somewhat differently. See the Digester Developer Guide for more information. IMPLEMENTATION NOTE - A single Digester instance may only be used within the context of a single thread at a time, and a call to parse() must be completed before another can be initiated even from the same thread.
Converter: Classes implementing this interface convert certain input objects to objects representing the same value (regarding certain aspects) but are instances of a different class. Converters that can or have to be configured may provide set methods for these configuration parameters. In any case the converter needs a zero argument constructor. For example a Converter could convert a String with the value 2001.12.11 to a object of type java.util.Date that represents this date.
TodoTag: A todo-tag describes some work that still needs to be accomplished. Typical examples include optimizing algorithms, proving correctness of new code, renaming fields or methods to conform to standards, cleaning up code, etc. (Taken from http://www.infospheres.caltech.edu/resources/code_standards/java_standard.html) Example: \@todo <written-by value="stefan"/><priority value="mid"/> <assign-to value="david"/><text>There's still a lot to do.</text>
Validator: Validates a given object. Implementing classes may provide set-methods for different constraints specific to the concrete validator. With these set-methods, validators can be configured. There are two reasons why validation can fail: The object to validate is not from the appropriate type. Example: You cannot validate a list with a DateValidator. The object to validate does not fulfill the constraints the validator was configure with.
ConvertUtils: Utility methods for converting String values to objects of the specified class. If you specify a Java primitive type, or an array of a Java primitive type, as a destination type, a scalar or array of the coresponding Java wrapper class will be created instead. If you attempt to convert an Object or Object array of a non-String and non-primitive type, it will be converted to a scalar String or array of Strings, as appropriate.
LoggingManager: Use the logging manager as a facade for log4j . The logging manager adds an appender to the root category. The property overrideTopicSettings can be used to specify if the log settings of a topic can be overriden by the log settings of a class. The property is set in the main configuration file cantaloop.properties .
IdenticalConverter: This converter is a dummy converter that returns every object to convert unmodified. It is not possible to implement the set of the output types in a reasonable manner. The contains method of this set returns always true although it does not contain any values.
ArrayStack: Implementation of the java.util.Stack API that is based on an ArrayList rather than a Vector . This means no synchronization locks are utilized internally, so you must synchronize externally if an instance is referenced from multiple threads.
TypedConverter: A TypedConverter wraps a Converter . When you call the convert method of the TypedConverter , this call is delegated to the wrapped converter by using the class specified in the constructor as output type.
SetOfIntegerLiteralConverter: Converts a set into its literal representation. The elements are converted using a IntegerLiteralConverter .
SetOfStringLiteralConverter: Converts a set into its literal representation. The elements are converted using a StringLiteralConverter .
IntegerLiteralConverter: Converts a Integer to its literal representation. Example: Let i be an java.lang.Integer with value 5 . The following string is returned: new Integer(5) .
IntLiteralConverter: Converts a Integer to its literal representation as an int Example: Let i be an int with value 5 . The following string is returned: 5 .
ListSet: A ListSet is a combination of a list and set. It is a set where the insertion order of the elements is stored in a list. The list does not allow duplicate elements.
IntegerConverter: Converts a object of type java.lang.String into a object of type java.lang.Integer . The converter respects the locale-specific representation of a integer number.
CallMethodRule: Rule implementation that calls a method on the top (parent) object, passing arguments collected from subsequent CallParamRule rules or from the body of this element.
CallParamRule: Rule implementation that saves a parameter from either an attribute of this element, or from the element body, to be used in a call generated by a surrounding CallMethodRule rule.
SetNextRule: Rule implementation that calls a method on the (top-1) (parent) object, passing the top object (child) as an argument. It is commonly used to establish parent-child relationships.
LinkedConverter: Chains two converters. Converts a given object to an intermediate type using the first converter and then converts it to the desired output type using the second converter.
ReflectionHelper: FIXME: add documentation (Note: differ between the methods declared in a class and the methods of a class. The latter includes the methods inherited from supertypes).
SetLiteralConverter: Converts a java.util.Set into its literal representation (this is a expression that creates a set containing the same element as the given set).