ConQAT Commons Library

From Conqat

(Redirected from CCSM Commons)

The ConQAT.lib Commons are a library of utility functions and classes used by ConQAT.


Contents

Highlights

  • String Utilities
  • File System Utilitites
  • Collection Utilities
  • Reflection Utilities
  • GraphViz Interface
  • XML Reader & Writer
  • HTML & CSS Writer

Download

ConQAT.lib Commons are released under Apache License 2.0. They can be downloaded here. The latest version is 2011.9.

API Documentenation

The API documentation can be found here.

History

Changes from version 2011.7 to version 2011.9

CR 3875 Provide proper toString for CollectionMap
CR 3872 Implement support for sub-file level ratings
CR 3857 Support method for converting color oto HTML color code
CR 3892 Implement utility methods for set union and intersection
CR 3945 Need method to remove key from CounterSet
CR 3903 MaxWeightMatching usses too many queries to weight provider

Changes from version 2.7 to version 2011.7

CR 3728 Move ANT pattern support into commons
CR 3681 Make Diff support customizable comparison
CR 3674 toString for PairList
CR 3679 Implement getRest() method in CollectionUtils
CR 3714 Move file rating code to commons
CR 3692 Provide convenience method for retrieving tmp directory
CR 3490 extractJarFileFromJarURL fails for pathes with spaces
CR 3211 Create abstraction layer to handle directories and ZIP files consistently
CR 3124 Extend DateUtils
CR 3745 Implement runnable with result
CR 3797 Convenience method incAll(Collection<T>) for CounterSet
CR 2631 Simplify CollectionUtils.copyArray
CR 3331 Allow to disable randomization in union find structure
CR 2111 Investigate potential performance gains available through Java NIO
CR 3621 XMLReader should support functionality akin to XSLT's apply-template
CR 2815 Add methods to RegionSet: getFirstPosition and positionsEqual
CR 3381 Move NullOutputStream to commons
CR 2816 Create method that returns last element from list
CR 2814 Implement toString for RegionSet to simplify debugging
CR 3383 Create method for sorting PairList
CR 3439 Provide "raw" access to XPath evluation in XPathEvaluator
CR 3193 Make Pair classes serializable
CR 3239 Implement reader that transparently support UTF-BOMs
CR 3238 XMLReader: Add constructor that works on String
CR 3592 Intruduce timer task to interrupt a running thread
CR 3591 Move ClassPathUtils to lib.commons
CR 3397 Add size()-like methods to HashedListMap
CR 3398 Create method asRandomAccessList in CollectionUtils
CR 3794 Provide proper toString for MemoryEfficientStringMap
CR 3394 Create collection that manages a map of collections
CR 3790 Add a method to MathUtils to calculate percentiles
CR 3649 Provide predicate support in commons
CR 3704 Extend ETrafficLightColor by new value BASELINE
CR 3607 Provide central method to retrieve the current date/time
CR 3563 Create InThreadExecutor
CR 2932 Provide method for escaping replacement strings
CR 3359 Add swap method to PairList
CR 3756 Create wrapper class for byte arrays.
CR 3472 Create generic caching framework: cache4j
CR 3474 Class Digester should expose interface for byte arrays
CR 3376 Create utility class for converting between line numbers and character offsets
CR 3566 Revise MultiplexedOutputStream

Changes from version 2.6 to version 2.7

CR 2699 Create method to extract JAR file from JAR URL
CR 2767 Assert size of MD5 digest in MD5Digest class
CR 2808 Add support for int/byte[] conversion
CR 2832 Implement memory efficient maps
CR 2835 Create caching factory with LRU strategy
CR 2862 Improve deep clone test facility
CR 2892 HashedListMap: add method that removes several lists at once
CR 2907 Add copy constructor and addAll() to PairList
CR 2910 Create method isAbsolutePath in FileSystemUtils
CR 2913 Create classes/methods for performing sorting and binary search on arbitrary data
CR 2929 Create methods for reading entire byte arrays from a stream.
CR 2935 Create faster comparator for strings
CR 2960 Create support classes for sockets and RMI
CR 3024 Support custom class loader for SerializationUtils.deserialize()
CR 3099 FileSystemUtils.readFile() should deal with BOMs in UTF-8
CR 3118 Support addAll() operation for HashedListMap

Changes from version 2.5 to version 2.6

CR 2645 Create FilenameComparator
CR 2683 Add support for serialization
CR 2682 Extends MD5Digest class
CR 2483 Create Range class
CR 2670 Implement factorial function
CR 2613 Adopt to Java 1.6
CR 2471 Create test cases for dealing with encodings when parsing XML
CR 2669 Implement base classes for LRU caches
CR 1559 Add methods that support specification of encodings
CR 2458 Create method to simplify finally-block of code dealing with streams
CR 2629 Create method computeUnorderedPairs in CollectionUtils
CR 2463 FileSystemUtils.commonRoot: Also work on CanonicalFiles
CR 2462 FileSystemUtils.ensureParentDirectoryExist throws NPE if called for file without parent
CR 2632 Make CCSMTestCaseBase aware of CanonicalFiles
CR 2638 Fix listFiles in CanonicalFiles
CR 2451 Create generic functionality to create trees from path expressions

Changes from version 2.0 to version 2.5

CR 2138 Add reverse to CollectionUtils
CR 2141 Add commonRoot method to FileSystemUtils
CR 2142 Add stripSuffix method to StringUtils
CR 2217 Create isNotNull methods in contract classes
CR 2232 Require method to determine if a type is constructible from a string
CR 2297 Add method listInstancesOf to ReflectionUtils
CR 2304 Add FilenameFilter
CR 2306 Move Java executable stuff from Eclipse commons to commons
CR 2309 Support SAX parsing in XMLUtils
CR 2310 Provide dedicated class for canonical files
CR 2317 Create support for possibly compressed streams
CR 2330 Create methods for converting byte-Arrays to and from hex strings
CR 2335 HashedListMap: add method listsToArrays
CR 2349 Move Region and RegionSet into ccsm-commons
CR 2351 Create DateUtils
CR 2352 Create CanonicalFilePool
CR 2369 Create utility class for basic drawing operations
CR 2372 Add resolveType(typeName, classLoader) to ReflactionUtils

Changes from version 1.3 to version 2.0

CR 1698 Add any method to CollectionUtils
CR 1720 Create enhanced union find datastructure
CR 1756 Create ProcessUtils that encapsulate execution of system process
CR 1780 Extend EJavaPrimitive to support wrapper types
CR 1782 Create exception for format problems in provided strings
CR 1783 Add support for version parsing and version checking
CR 1784 Create ClassLoader for loading classes from memory
CR 1797 Create comparator that is based on the toString() representation.
CR 1818 ProcessUtils: stderr and stdout of executed process are lost
CR 1832 Added containsOneOf-Method to StringUtils
CR 1882 CSSManagerBase should provide finer granular control for writing CSS
CR 1898 Create method to extract versions of class files from jar file
CR 1906 Make unmodifiable collections serializable
CR 1907 Make version serializable

Changes from version 1.2 to version 1.3

CR 1156 UnmodifiableSet should provide constructor for collections, too
CR 1497 Merge commons code from CQ.edit
CR 1504 XML parsing does not work for files whose pathes contain spaces
CR 1539 ReflectionUtils.convertString: support Object as target type
CR 1581 Create more convenient support for XPath evaluation
CR 1582 Create Diff support
CR 1583 Create BidirectionalMap
CR 1637 FileSystemUtils.unjar does not close jar file
CR 1639 Creat method for type resolution that supports primitives
CR 1670 Provide function for longest common prefix
CR 1691 Add asUnmodifiableSortedList method to CollectionUtils
CR 1693 Add classloader debug facility

Changes from version 1.1 to version 1.2

CR 1355 Make FileExtensionFilter handle multiple extensions
CR 1356 Add endsWithOneOf()-method to StringUtils
CR 1444 StringUtils.concat: add implementation that works on part of an array only

Changes from version 1.0 to version 1.1

CR 1142 FileSystemUtils needs a method for copying entire directory structures
CR 1143 FileSystemUtils should support jaring and unjaring
CR 1150 Add simple aggregation support
CR 1158 Add remove-first-level-key method to TowDimHashmap
CR 1179 Move collection and algorithm code from ConQAT model clones to commons
CR 1186 Create assertion support
CR 1188 Add putAll()-method to TwoDimHashMap
CR 1208 Add generic deep cloning test support
CR 1210 Create getFileExtension method
CR 1222 Add stacktrace-method to StringUtils
CR 1223 Add startsWithOneOf() to StringUtils
CR 1224 Add AllEqualComparator
CR 1238 Introduce generic logging interface
CR 1240 Add IFactory interface
CR 1242 Create generic visitor interface
CR 1243 Add areAllListsEmpty() method to HashedListMap
CR 1245 Add line-prefixing method to StringUtils()
CR 1249 Create constraint/validation support in commons
CR 1256 Improve visitors: Support DFS traversal
CR 1257 XMLReader: add processDecendants Method
CR 1258 XMLReader: add constructor that takes InputSource