Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.cantaloop.cgimlet.* (48)* (129)

Package Samples:



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 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 . 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/") . 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 ...
PropertyParser: A PropertyParser reads property-definitions and replaces their occurences in a XML file. A property is defined like this: <property name="basedir" value="."/> This sets the property `basedir' to the value `.'. From this point on the value of the property can be accessed in all attributes and all text-only elements by writing ${basedir} . It is an error to use a property that is not defined or to define a property a second time. A property can also be composed of existing properties. <property name="dir.src" value="${basedir}/src"> You can costomize the PropertyParser by setting the ...
OptionReader: Handlers can use a OptionReader to read configuration options. A options is a element which has a key and a value attribute, for example: <option name="input-dir" value="src"/> . By default, options are stored in a Options instance. To customize this behaviour you can use a OptionSetter , which is invoked every time a option is read. For a example of how to use an OptionReader have a look at the documentation of Options .
Options: Allows a handler the store options. Options can be grouped hierarchically by providing default values. Example: <foo> <option name="input-dir" value="${input}/src"/> <option name="output-dir" value="${output}/build"/> <bar> <option name="input-dir" value="${input}/src/foo"/> </bar> <foo> This options can be read as following: Element foo = root.element("foo"); Element bar = foo.element("bar"); OptionReaderConfigurator config = new OptionReaderConfigurator(MY_NAMESPACE); OptionReader fooReader = new OptionReader(config, foo, fooOpt); OptionReader barReader ...
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.
Main: Entry point of the code generation when starting it from the command line. This class can also be used to invoke the codegeneration from within another program. Just set the project file with setProjectFile(File) 55 , configure the codegeneration with the setXXX methods and call 55 .
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 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 .
ProjectRunner: This class should be used to run a codegeneration process. The commandline entry point ( Main ) and the ant task ( ProjectGeneratorTask ) are based on this class.
MemberClassTemplate: A MemberClassTemplate is used to describe a member class of a another class. The MemberClassTemplate is not part of the template API in org.cantaloop.cgimlet.lang , so you only use it if you are absolutely shure that you want to generate code only for the java programming language.
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 .
OptionSetter: A OptionSetter instance can be attached to a OptionReader to control to way how options are processed.
Type: This class represents the type of a certain variable. For languages without a typesystem it is quite useless and can be ignored as long as you don't want the generate code for several programming languages.
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 .

Home | Contact Us | Privacy Policy | Terms of Service