Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(E) - Method in class org.faktorips.util.collections.IdentityHashSet
-
Adds the specified element to this set if it is not already present.
- ArgumentCheck - Class in org.faktorips.util
-
A class that provides static methods to check method arguments, e.g. check if an argument is not null or is an instance of a specific class.
- ArrayListFactory() - Constructor for class org.faktorips.util.MultiMap.ArrayListFactory
- asMap() - Method in class org.faktorips.util.MultiMap
-
Returns an unmodifiable
Mapcontaining the entries of this multi map. - atLeast(Collection<?>, int) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the given collection has at least the given size.
B
- BLANK - Static variable in class org.faktorips.util.StringUtil
C
- CAMEL_CASE_SEPERATORS - Static variable in class org.faktorips.util.StringUtil
- camelCaseToUnderscore(String) - Static method in class org.faktorips.util.StringUtil
-
Returns a String where an occurrence of a character followed by an upper case character is replaced by these characters divided by an underscore.
- camelCaseToUnderscore(String, boolean) - Static method in class org.faktorips.util.StringUtil
-
Returns a String where an occurrence of a character followed by an upper case character is replaced by these characters divided by an underscore.
- CHARSET_ISO_8859_1 - Static variable in class org.faktorips.util.StringUtil
- CHARSET_UTF8 - Static variable in class org.faktorips.util.StringUtil
- check(MessageList, String) - Method in class org.faktorips.util.MethodAccess
-
Creates a new
MethodAccess.Checkobject for this class and method name. - ClassToInstancesMap<T> - Class in org.faktorips.util
-
This class is a map with a class as key and a collection of instances of this class as value.
- ClassToInstancesMap() - Constructor for class org.faktorips.util.ClassToInstancesMap
- clear() - Method in class org.faktorips.util.ClassToInstancesMap
-
Remove every object in the map.
- clear() - Method in class org.faktorips.util.collections.IdentityHashSet
-
Removes all of the elements from this set.
- clear() - Method in class org.faktorips.util.MultiMap
-
Removes all mappings from this map.
- clone() - Method in class org.faktorips.util.collections.IdentityHashSet
-
Returns a shallow copy of this
IdentityHashSetinstance: the elements themselves are not cloned. - close(Closeable) - Static method in class org.faktorips.util.IoUtil
-
Tries to close the given
Closeable. - compare(Collection<T>, Collection<T>) - Method in class org.faktorips.util.collections.DistinctElementComparator
- compare(List<T>, List<T>) - Method in class org.faktorips.util.collections.ListComparator
- contains(Object) - Method in class org.faktorips.util.collections.IdentityHashSet
-
Returns
trueif this set contains the specified element. - containsValue(Object) - Method in class org.faktorips.util.ClassToInstancesMap
-
Check if the map contains the value.
- containsValuesOf(Class<? extends T>) - Method in class org.faktorips.util.ClassToInstancesMap
-
Check if the map contains a list of values for the specified type.
- containsWhitespace(String) - Static method in class org.faktorips.util.StringUtil
-
Checks whether the
Stringcontains whitespace. - copy(InputStream) - Static method in class org.faktorips.util.StreamUtil
-
Copies the content of the provided InputStream into a ByteArrayInputStream and closes the provided stream.
- count() - Method in class org.faktorips.util.MultiMap
-
Returns the count of objects contained in this multi map.
- createCollection() - Method in class org.faktorips.util.MultiMap.ArrayListFactory
- createCollection() - Method in interface org.faktorips.util.MultiMap.CollectionFactory
-
Creates collections that are used as values in a
MultiMap - createCollection() - Method in class org.faktorips.util.MultiMap.HashSetFactory
- createCollection() - Method in class org.faktorips.util.MultiMap.LinkedHashSetFactory
- createCollection() - Method in class org.faktorips.util.SortedMultiMap.SortedSetFactory
- createComparator(Comparator<T>) - Static method in class org.faktorips.util.collections.DistinctElementComparator
- createWithLinkedSetAsValues() - Static method in class org.faktorips.util.MultiMap
- createWithListsAsValues() - Static method in class org.faktorips.util.MultiMap
- createWithSetsAsValues() - Static method in class org.faktorips.util.MultiMap
D
- DistinctElementComparator<T> - Class in org.faktorips.util.collections
-
Compares two collections by sorting the content using the element comparator and then compare one element after the other.
- DistinctElementComparator(Comparator<T>) - Constructor for class org.faktorips.util.collections.DistinctElementComparator
E
- equals(Object, Object) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated arguments are equal.
- equals(Object, Object, Object) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated arguments are equal.
- exists() - Method in class org.faktorips.util.MethodAccess.Check
-
Checks whether the method exists.
- exists() - Method in class org.faktorips.util.MethodAccess
-
Returns whether the wrapped method actually exists.
G
- get(Class<K>) - Method in class org.faktorips.util.ClassToInstancesMap
-
Getting the list of instances stored of the type given by the key.
- get(Object) - Method in class org.faktorips.util.MultiMap
-
This method returns collection to which the specified key is mapped.
- getFileExtension(String) - Static method in class org.faktorips.util.StringUtil
- getFilenameWithoutExtension(String) - Static method in class org.faktorips.util.StringUtil
-
Returns the filename without extension.
- getInputStreamForString(String, String) - Static method in class org.faktorips.util.StringUtil
-
Returns the input stream to read the given data.
- getOriginator() - Method in interface org.faktorips.util.memento.Memento
-
Returns the object this is a memento of.
- getOriginator() - Method in class org.faktorips.util.memento.StringMemento
- getOriginator() - Method in class org.faktorips.util.memento.XmlMemento
- getPackageName(String) - Static method in class org.faktorips.util.StringUtil
-
Returns the package name for a given class name.
- getRangeString(int, int) - Static method in class org.faktorips.util.StringUtil
-
Returns a String of the form ' [x..y]', where x and y are the minimum and maximum values of a range.
- getRangeString(int, int, int) - Static method in class org.faktorips.util.StringUtil
-
Returns a String of the form ' [x..y, z]', where x and y are the minimum and maximum values of a range, and z is the default value of that range.
- getState() - Method in class org.faktorips.util.memento.StringMemento
-
Returns the originator's state stored in the memento.
- getState() - Method in class org.faktorips.util.memento.XmlMemento
-
Returns the originator's state stored in the memento.
H
- HashSetFactory() - Constructor for class org.faktorips.util.MultiMap.HashSetFactory
I
- IdentityHashSet<E> - Class in org.faktorips.util.collections
- IdentityHashSet() - Constructor for class org.faktorips.util.collections.IdentityHashSet
-
Constructs a new, empty set.
- invoke(String, Object, Object...) - Method in class org.faktorips.util.MethodAccess
-
Invokes the wrapped method on the given object with the given arguments.
- invokeStatic(String, Object...) - Method in class org.faktorips.util.MethodAccess
-
Invokes the wrapped static method on the wrapped class with the given arguments.
- IoUtil - Class in org.faktorips.util
- isEmpty() - Method in class org.faktorips.util.ClassToInstancesMap
-
Return true if this map is empty
- isEmpty() - Method in class org.faktorips.util.collections.IdentityHashSet
-
Returns
trueif this set contains no elements. - isEmpty() - Method in class org.faktorips.util.MultiMap
-
Returns true if this multi map contains no key-value pairs.
- isInstanceOf(Object, Class<?>) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated argument is an instance of the indicated class.
- isInstanceOf(Object, Class<?>, Object) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated argument is an instance of the indicated class.
- isNotStatic() - Method in class org.faktorips.util.MethodAccess.Check
-
If the method
MethodAccess.Check.exists(), checks whether the method is not static. - isStatic() - Method in class org.faktorips.util.MethodAccess.Check
-
If the method
MethodAccess.Check.exists(), checks whether the method is static. - isSubclassOf(Class<?>, Class<?>) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the given subclass is a subclass of the given superclass.
- isTrue(boolean) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated argument is true.
- isTrue(boolean, Object) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated argument is true.
- iterator() - Method in class org.faktorips.util.collections.IdentityHashSet
-
Returns an iterator over the elements in this set.
K
L
- length(Object[], int) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated array has the indicated length.
- length(Object[], int, Object) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated array has the indicated length.
- LinkedHashSetFactory() - Constructor for class org.faktorips.util.MultiMap.LinkedHashSetFactory
- listComparator(Comparator<T>) - Static method in class org.faktorips.util.collections.ListComparator
- ListComparator<T> - Class in org.faktorips.util.collections
-
Compares two lists in their current order that means it compares the list one element after the other.
- ListComparator(Comparator<T>) - Constructor for class org.faktorips.util.collections.ListComparator
- LocalizeHelper - Class in org.faktorips.util.localization
-
THIS IS A UTIL CLASS TO COPY LOCALIZE-PROPERTY FILES.
- LocalizeHelper(String, String, String) - Constructor for class org.faktorips.util.localization.LocalizeHelper
-
Creates a new LocalizeHelper working on the given directories and with the given language.
M
- main(String[]) - Static method in class org.faktorips.util.localization.LocalizeHelper
-
First argument:
Path to the base directory, where the source-language files are stored.
Second argument:
Path to the base directory, where the target-language files are stored.
Third argument:
The target language (and, optional, the region) as de_RR (e.g. de_AT for german language with austrian region or only de for german with no special region information. - Memento - Interface in org.faktorips.util.memento
-
A memento stores the state of another object called the originator in memory.
- MementoSupport - Interface in org.faktorips.util.memento
-
An interface that marks an object as one supporting the memento pattern.
- merge(MultiMap<K, V>) - Method in class org.faktorips.util.MultiMap
-
Merges the specified multi map to this multi map.
- MethodAccess - Class in org.faktorips.util
-
Wraps access to a method.
- MethodAccess.Check - Class in org.faktorips.util
-
Offers multiple checks on a
MethodAccessin a fluent API. - MethodAccess.MethodAccessException - Exception Class in org.faktorips.util
- MethodAccessException(String) - Constructor for exception class org.faktorips.util.MethodAccess.MethodAccessException
- MethodAccessException(String, Throwable) - Constructor for exception class org.faktorips.util.MethodAccess.MethodAccessException
- MSG_CODE_SUFFIX_DOES_NOT_EXIST - Static variable in class org.faktorips.util.MethodAccess.Check
- MSG_CODE_SUFFIX_INCOMPATIBLE_RETURN_TYPE - Static variable in class org.faktorips.util.MethodAccess.Check
- MSG_CODE_SUFFIX_NOT_STATIC - Static variable in class org.faktorips.util.MethodAccess.Check
- MSG_CODE_SUFFIX_STATIC - Static variable in class org.faktorips.util.MethodAccess.Check
- MultiMap<K,
V> - Class in org.faktorips.util -
A data structure that maps a key to a collection of values.
- MultiMap() - Constructor for class org.faktorips.util.MultiMap
- MultiMap(Map<K, Collection<V>>, MultiMap.CollectionFactory<V>) - Constructor for class org.faktorips.util.MultiMap
- MultiMap(MultiMap.CollectionFactory<V>) - Constructor for class org.faktorips.util.MultiMap
-
Creates a new
MultiMapwith an givenMultiMap.CollectionFactory. - MultiMap.ArrayListFactory<V> - Class in org.faktorips.util
- MultiMap.CollectionFactory<V> - Interface in org.faktorips.util
-
Factory for creating collection instances to be used as values in a
MultiMap. - MultiMap.HashSetFactory<V> - Class in org.faktorips.util
- MultiMap.LinkedHashSetFactory<V> - Class in org.faktorips.util
- MultiMaps - Class in org.faktorips.util
-
MultiMap utilities
N
- newMemento() - Method in interface org.faktorips.util.memento.MementoSupport
-
Creates a new memento that holds the object's current state.
- nodeName(Node, String) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the given xml node has the given name.
- notNull(Object) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated argument is not null.
- notNull(Object[]) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the provided array or one of the objects at the array's positions is null.
- notNull(Object[], Object) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the provided array or the objects at the array positions are null.
- notNull(Object, Object) - Static method in class org.faktorips.util.ArgumentCheck
-
Checks if the indicated argument is not null.
O
- of(Class<?>, String, Class<?>...) - Static method in class org.faktorips.util.MethodAccess
-
Creates a
MethodAccessfor the given class and method name. - org.faktorips.util - package org.faktorips.util
- org.faktorips.util.collections - package org.faktorips.util.collections
- org.faktorips.util.localization - package org.faktorips.util.localization
- org.faktorips.util.memento - package org.faktorips.util.memento
-
This package defines some interfaces for the memento pattern.
P
- put(Class<K>, K) - Method in class org.faktorips.util.ClassToInstancesMap
-
Putting the value to the classes of key.
- put(K) - Method in class org.faktorips.util.ClassToInstancesMap
-
Putting the value to the classes of its type.
- put(K, Collection<V>) - Method in class org.faktorips.util.MultiMap
-
Adds the specified values to the collection the key maps to.
- put(K, V...) - Method in class org.faktorips.util.MultiMap
-
Adds the specified values to the collection the key maps to.
- putReplace(K, Collection<V>) - Method in class org.faktorips.util.MultiMap
-
Put the collection of values into the map, identified by the specified key.
- putWithRuntimeCheck(Class<? extends T>, T) - Method in class org.faktorips.util.ClassToInstancesMap
-
This method puts the value into the list specified by the key class.
R
- readFromInputStream(InputStream, String) - Static method in class org.faktorips.util.StringUtil
-
Reads the available bytes from the input stream and returns them as a string using the given
charset. - readFromInputStream(InputStream, Charset) - Static method in class org.faktorips.util.StringUtil
-
Reads the available bytes from the input stream and returns them as a string using the given
charset. - remove(Class<? extends T>, T) - Method in class org.faktorips.util.ClassToInstancesMap
-
Remove a single element from the list and returns true if it was removed successfully.
- remove(Object) - Method in class org.faktorips.util.collections.IdentityHashSet
-
Removes the specified element from this set if it is present.
- remove(Object) - Method in class org.faktorips.util.MultiMap
-
Removes key and its associated collection from the map.
- remove(Object, Object) - Method in class org.faktorips.util.MultiMap
-
Removes the value in the collection the key maps to.
- removeAll(Class<K>) - Method in class org.faktorips.util.ClassToInstancesMap
-
Remove all objects for a given key and returns the list of removed objects.
- returnTypeIsCompatible(Class<?>...) - Method in class org.faktorips.util.MethodAccess.Check
-
If the method
MethodAccess.Check.exists(), checks whether the method return type is compatible to any one of the given return types.
S
- setState(Memento) - Method in interface org.faktorips.util.memento.MementoSupport
-
Sets the object's state to the one stored in the memento.
- size() - Method in class org.faktorips.util.ClassToInstancesMap
-
The whole size of the map that means how many instances are stored in this map.
- size() - Method in class org.faktorips.util.collections.IdentityHashSet
-
Returns the number of elements in this set (its cardinality).
- size(Class<K>) - Method in class org.faktorips.util.ClassToInstancesMap
-
Getting the number of objects stored for the specified key.
- SortedMultiMap<K,
V> - Class in org.faktorips.util -
This implementation of
MultiMapuses a sorted map and set. - SortedMultiMap() - Constructor for class org.faktorips.util.SortedMultiMap
-
Creates a multi map with natural ordering for the keys and the values.
- SortedMultiMap(Comparator<? super K>, Comparator<? super V>) - Constructor for class org.faktorips.util.SortedMultiMap
-
Creates a multi map with the given
Comparators. - SortedMultiMap.SortedSetFactory<V> - Class in org.faktorips.util
- SortedSetFactory() - Constructor for class org.faktorips.util.SortedMultiMap.SortedSetFactory
-
Creates a sorted set with a
nullComparator, therefore using the natural order of its values. - SortedSetFactory(Comparator<? super V>) - Constructor for class org.faktorips.util.SortedMultiMap.SortedSetFactory
-
Creates a sorted set with the given comparator.
- spliterator() - Method in class org.faktorips.util.collections.IdentityHashSet
- StreamUtil - Class in org.faktorips.util
-
A utility class for streams.
- StringMemento - Class in org.faktorips.util.memento
-
A memento that stores the originator's state as string.
- StringMemento(Object, String) - Constructor for class org.faktorips.util.memento.StringMemento
-
Creates a new memento.
- StringUtil - Class in org.faktorips.util
-
A collection of utility methods for Strings.
T
- toArray() - Method in class org.faktorips.util.collections.IdentityHashSet
- toArray(T[]) - Method in class org.faktorips.util.collections.IdentityHashSet
- toByteArrayOutputStream(InputStream) - Static method in class org.faktorips.util.StreamUtil
-
Copies the content of the provided InputStream into a ByteArrayOutputStream and closes the provided stream.
- toCamelCase(String, boolean) - Static method in class org.faktorips.util.StringUtil
- toString() - Method in class org.faktorips.util.MethodAccess
U
- unmodifiableMultimap(MultiMap<K, V>) - Static method in class org.faktorips.util.MultiMaps
-
Returns an unmodifiable view of the specified multi map.
- unqualifiedName(String) - Static method in class org.faktorips.util.StringUtil
-
Takes a name like a class name and removes the package information from the beginning.
V
- values() - Method in class org.faktorips.util.ClassToInstancesMap
-
This method returns all values in one collection.
- values() - Method in class org.faktorips.util.MultiMap
X
- XmlMemento - Class in org.faktorips.util.memento
-
A memento that stores the originator's state as XML element.
- XmlMemento(Object, Element) - Constructor for class org.faktorips.util.memento.XmlMemento
-
Creates a new memento.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form