A B C D E F G H I J L M N O P R S T U V W X 

A

addCollection(Collection<T>) - Method in class org.fusesource.common.util.Collectors
Convenience method for adding an existing collection to the collector directly
addCollector(Collector<T>) - Method in class org.fusesource.common.util.Collectors
 

B

booleanValue(Map<String, ?>, String) - Static method in class org.fusesource.common.util.Maps
Returns the boolean value of the given property in the map or false
booleanValue(Map<String, ?>, String, boolean) - Static method in class org.fusesource.common.util.Maps
Returns the boolean value of the given property in the map or returns the default value if its not present
BUFFER_SIZE - Static variable in class org.fusesource.common.util.IOHelpers
 

C

ClassLoaders - Class in org.fusesource.common.util
 
ClassLoaders() - Constructor for class org.fusesource.common.util.ClassLoaders
 
close() - Method in class org.fusesource.common.util.LoggingOutputStream
 
Collector<T> - Interface in org.fusesource.common.util
Represents an object capable of collecting stuff (dependencies, bundles, features, ...)
Collectors<T> - Class in org.fusesource.common.util
A container for multiple Collector instances that just aggregates the collected results from all collectors it contains
Collectors() - Constructor for class org.fusesource.common.util.Collectors
 
Collectors(Collector<T>...) - Constructor for class org.fusesource.common.util.Collectors
 
compare(Comparable, Comparable) - Static method in class org.fusesource.common.util.Objects
 
compare(List<T>, List<T>) - Static method in class org.fusesource.common.util.Objects
 
CompositeFilter<T> - Class in org.fusesource.common.util
Represents a filter which ORs together a collection of filters, returning true if any of the filters are true
CompositeFilter(Collection<Filter<T>>) - Constructor for class org.fusesource.common.util.CompositeFilter
 
compositeFilter(List<Filter<T>>) - Static method in class org.fusesource.common.util.Filters
 
createBuffer() - Method in class org.fusesource.common.util.LoggingOutputStream
 
createNamespaceFinder() - Static method in class org.fusesource.common.util.XmlHelper
 
createParser(SAXParserFactory) - Method in class org.fusesource.common.util.XmlNamespaceFinder
 
createStringFilter(String) - Static method in class org.fusesource.common.util.Filters
Returns a String pattern matching filter using ! for not and * for any characters

D

defaultIfEmpty(String, String) - Static method in class org.fusesource.common.util.Strings
 
detach(Node) - Static method in class org.fusesource.common.util.DomHelper
If the node is attached to a parent then detach it
Dictionaries - Class in org.fusesource.common.util
A helper class for working with Dictionary
Dictionaries() - Constructor for class org.fusesource.common.util.Dictionaries
 
DomHelper - Class in org.fusesource.common.util
A collection of helper methods for working with the DOM API
DomHelper() - Constructor for class org.fusesource.common.util.DomHelper
 

E

element(Object) - Method in class org.fusesource.common.util.XPathFacade
Evaluates the XPath expression on the given item and return the first Element or null
elements(Object) - Method in class org.fusesource.common.util.XPathFacade
Evaluates the XPath expression on the given item and return a list of nodes
elementTextContent(Object) - Method in class org.fusesource.common.util.XPathFacade
Returns the text content of the selected item or null if no element is found
emptyIfNull(String) - Static method in class org.fusesource.common.util.Strings
 
equal(Object, Object) - Static method in class org.fusesource.common.util.Objects
 
equals(Object) - Method in class org.fusesource.common.util.Pair
 

F

falseFilter() - Static method in class org.fusesource.common.util.Filters
 
Files - Class in org.fusesource.common.util
 
Files() - Constructor for class org.fusesource.common.util.Files
 
Files.DownloadCycle - Exception in org.fusesource.common.util
 
Files.DownloadCycle(String) - Constructor for exception org.fusesource.common.util.Files.DownloadCycle
 
Filter<T> - Interface in org.fusesource.common.util
Represents a filter or predicate
Filters - Class in org.fusesource.common.util
 
Filters() - Constructor for class org.fusesource.common.util.Filters
 
flush() - Method in class org.fusesource.common.util.LoggingOutputStream
 

G

getBuilder() - Method in class org.fusesource.common.util.XPathFacade
 
getCollection() - Method in interface org.fusesource.common.util.Collector
Access the collection of items gathered by this collector
getCollection() - Method in class org.fusesource.common.util.Collectors
 
getEnvVar(String, String) - Static method in class org.fusesource.common.util.Systems
Returns the value of the given environment variable if its not blank or the given default value
getExpression() - Method in class org.fusesource.common.util.XPathFacade
 
getFactory() - Static method in class org.fusesource.common.util.XmlHelper
 
getFactory() - Method in class org.fusesource.common.util.XmlNamespaceFinder
 
getFirst() - Method in class org.fusesource.common.util.Pair
 
getManifest(File) - Static method in class org.fusesource.common.util.Manifests
Returns the entry from the manifest for the given name
getManifestEntry(File, String) - Static method in class org.fusesource.common.util.Manifests
Returns the entry from the manifest for the given name
getNamespaces(File) - Static method in class org.fusesource.common.util.XmlHelper
Returns the namespace URIs found in the given XML file
getNamespaces(InputStream) - Static method in class org.fusesource.common.util.XmlHelper
Returns the namespace URIs found in the given XML file
getNamespaces(InputSource) - Static method in class org.fusesource.common.util.XmlHelper
Returns the namespace URIs found in the given XML file
getNamespaces() - Method in class org.fusesource.common.util.XmlNamespaceFinder
 
getPublicPort(int) - Static method in class org.fusesource.common.util.PublicPortMapper
 
getSecond() - Method in class org.fusesource.common.util.Pair
 
getTransformer() - Static method in class org.fusesource.common.util.DomHelper
 
getTransformerFactory() - Static method in class org.fusesource.common.util.DomHelper
 
getXPath() - Method in class org.fusesource.common.util.XPathBuilder
 
getXPathFactory() - Method in class org.fusesource.common.util.XPathBuilder
 
getXpathText() - Method in class org.fusesource.common.util.XPathFacade
 

H

hashCode(Object...) - Static method in class org.fusesource.common.util.Objects
A helper class to create nice hash codes using a similar algorithm to Josh Bloch's Effective Java book
hashCode() - Method in class org.fusesource.common.util.Pair
 
hasNamespace(File, String...) - Static method in class org.fusesource.common.util.XmlHelper
Returns true if the file can be parsed as XML and it contains one of the given namespace URs
hasNamespace(InputStream, String...) - Static method in class org.fusesource.common.util.XmlHelper
Returns true if the file can be parsed as XML and it contains one of the given namespace URs
hasNamespace(InputSource, String...) - Static method in class org.fusesource.common.util.XmlHelper
Returns true if the file can be parsed as XML and it contains one of the given namespace URs
hasNamespace(Set<String>, String...) - Static method in class org.fusesource.common.util.XmlHelper
Returns true if the set of namespaces containers one of the given given namespace URIs

I

IOHelpers - Class in org.fusesource.common.util
 
IOHelpers() - Constructor for class org.fusesource.common.util.IOHelpers
 
isEmpty() - Method in class org.fusesource.common.util.CompositeFilter
 
isEmpty(Filter<T>) - Static method in class org.fusesource.common.util.Filters
 
isNotBlank(String) - Static method in class org.fusesource.common.util.Strings
 
isNullOrBlank(String) - Static method in class org.fusesource.common.util.Strings
 

J

join(Collection<?>, String) - Static method in class org.fusesource.common.util.Strings
joins a collection of objects together as a String using a separator
join(String, Object...) - Static method in class org.fusesource.common.util.Strings
joins a collection of objects together as a String using a separator
joinNotNull(String, Object...) - Static method in class org.fusesource.common.util.Strings
joins a collection of objects together as a String using a separator, filtering out null values

L

LoggingOutputStream - Class in org.fusesource.common.util
A OutputStream which logs to a Logger
LoggingOutputStream() - Constructor for class org.fusesource.common.util.LoggingOutputStream
 
LoggingOutputStream(Logger) - Constructor for class org.fusesource.common.util.LoggingOutputStream
 
logMessage(String) - Method in class org.fusesource.common.util.LoggingOutputStream
 

M

Manifests - Class in org.fusesource.common.util
 
Manifests() - Constructor for class org.fusesource.common.util.Manifests
 
Maps - Class in org.fusesource.common.util
Some helper methods for working with maps
Maps() - Constructor for class org.fusesource.common.util.Maps
 
matches(T) - Method in class org.fusesource.common.util.CompositeFilter
 
matches(T) - Method in interface org.fusesource.common.util.Filter
 
matches(T, List<? extends Filter<T>>) - Static method in class org.fusesource.common.util.Filters
Returns true if any of the filters matches the given value
matches(T, List<? extends Filter<T>>, List<? extends Filter<T>>) - Static method in class org.fusesource.common.util.Filters
Return true if the value matches an include filter if specified and does not match an exclude filter

N

node(Object) - Method in class org.fusesource.common.util.XPathFacade
Evaluates the XPath expression on the given item and return the first node or null
nodes(Object) - Method in class org.fusesource.common.util.XPathFacade
Evaluates the XPath expression on the given item and return a list of nodes
not(Filter<T>) - Static method in class org.fusesource.common.util.Filters
 
notEmpty(String) - Static method in class org.fusesource.common.util.Strings
Returns true if the given text is not null and not empty
notNull(Object, String) - Static method in class org.fusesource.common.util.Objects
Asserts whether the value is not null
nullIfEmpty(String) - Static method in class org.fusesource.common.util.Strings
 

O

Objects - Class in org.fusesource.common.util
Some helper classes for objects comparing and equality
Objects() - Constructor for class org.fusesource.common.util.Objects
 
or(Filter<T>...) - Static method in class org.fusesource.common.util.Filters
 
org.fusesource.common.util - package org.fusesource.common.util
 

P

Pair<A,B> - Class in org.fusesource.common.util
Represents a pair of values so its easy to return 2 values from a function call
Pair(A, B) - Constructor for class org.fusesource.common.util.Pair
 
parseContents(InputSource) - Method in class org.fusesource.common.util.XmlNamespaceFinder
 
PublicPortMapper - Class in org.fusesource.common.util
Use to handle mapping local ports to public ports that clients can connect to.
PublicPortMapper() - Constructor for class org.fusesource.common.util.PublicPortMapper
 
PublicPortMapper.DefaultSPI - Class in org.fusesource.common.util
 
PublicPortMapper.DefaultSPI() - Constructor for class org.fusesource.common.util.PublicPortMapper.DefaultSPI
 
PublicPortMapper.OpenShiftSPI - Class in org.fusesource.common.util
 
PublicPortMapper.OpenShiftSPI() - Constructor for class org.fusesource.common.util.PublicPortMapper.OpenShiftSPI
 
PublicPortMapper.SPI - Class in org.fusesource.common.util
 
PublicPortMapper.SPI() - Constructor for class org.fusesource.common.util.PublicPortMapper.SPI
 
putAll(Map<K, V>, Map<K, V>, K...) - Static method in class org.fusesource.common.util.Maps
Copies the entries for the given keys form the input map to the output map

R

readString(Dictionary, String) - Static method in class org.fusesource.common.util.Dictionaries
Reads the specified key as a String from configuration.
readString(Dictionary, String, String) - Static method in class org.fusesource.common.util.Dictionaries
Reads the specified key as a String from configuration or returns the default value
recursiveDelete(File) - Static method in class org.fusesource.common.util.Files
Recursively deletes the given file whether its a file or directory returning the number of files deleted
removeNextSiblingText(Element) - Static method in class org.fusesource.common.util.DomHelper
Removes any next siblings text nodes
removePreviousSiblingText(Element) - Static method in class org.fusesource.common.util.DomHelper
Removes any previous siblings text nodes
replaceWith(Node, Node) - Static method in class org.fusesource.common.util.DomHelper
Replaces the old node with the new node

S

save(Document, File) - Static method in class org.fusesource.common.util.DomHelper
 
setFactory(SAXParserFactory) - Static method in class org.fusesource.common.util.XmlHelper
 
setFactory(SAXParserFactory) - Method in class org.fusesource.common.util.XmlNamespaceFinder
 
setTransformer(Transformer) - Static method in class org.fusesource.common.util.DomHelper
 
setTransformerFactory(TransformerFactory) - Static method in class org.fusesource.common.util.DomHelper
 
setValue(Map, String, Object) - Static method in class org.fusesource.common.util.Maps
Sets the value in the map for the given key; if the value is null then remove the value from the map
setXPath(XPath) - Method in class org.fusesource.common.util.XPathBuilder
 
setXPathFactory(XPathFactory) - Method in class org.fusesource.common.util.XPathBuilder
 
splitAndTrimAsList(String, String) - Static method in class org.fusesource.common.util.Strings
splits a string into a list of strings.
splitAsList(String, String) - Static method in class org.fusesource.common.util.Strings
splits a string into a list of strings, ignoring the empty string
startElement(String, String, String, Attributes) - Method in class org.fusesource.common.util.XmlNamespaceFinder
 
Strings - Class in org.fusesource.common.util
 
Strings() - Constructor for class org.fusesource.common.util.Strings
 
stringValue(Map, String) - Static method in class org.fusesource.common.util.Maps
Returns the String value of the given property in the map or null
stringValue(Map, String, String) - Static method in class org.fusesource.common.util.Maps
Returns the String value of the given property in the map if its defined or the default value
stripSuffix(String, String) - Static method in class org.fusesource.common.util.Strings
 
Systems - Class in org.fusesource.common.util
 
Systems() - Constructor for class org.fusesource.common.util.Systems
 

T

toString() - Method in class org.fusesource.common.util.CompositeFilter
 
toString() - Method in class org.fusesource.common.util.Pair
 
toString(Object) - Static method in class org.fusesource.common.util.Strings
 
toString() - Method in class org.fusesource.common.util.XPathFacade
 
trueFilter() - Static method in class org.fusesource.common.util.Filters
 

U

unquote(String) - Static method in class org.fusesource.common.util.Strings
 
urlToFile(String, String, String) - Static method in class org.fusesource.common.util.Files
 
urlToFile(URL, String, String) - Static method in class org.fusesource.common.util.Files
Attempts to convert a URL to a file or copies the URL to a temporary file if it can't be easily converted

V

value(Map<String, Object>, String, Object) - Static method in class org.fusesource.common.util.Maps
Returns the value of the given property in the map

W

withContextClassLoader(ClassLoader, Callable<T>) - Static method in class org.fusesource.common.util.ClassLoaders
Invokes the given Callable while the thread context class loader is set to the given class loader
write(int) - Method in class org.fusesource.common.util.LoggingOutputStream
 
writeTo(File, InputStream) - Static method in class org.fusesource.common.util.IOHelpers
 
writeTo(File, String) - Static method in class org.fusesource.common.util.IOHelpers
Writes the given string as data to the given file
writeTo(File, InputStream, int) - Static method in class org.fusesource.common.util.IOHelpers
 
writeTo(OutputStream, InputStream, boolean) - Static method in class org.fusesource.common.util.IOHelpers
 
writeTo(OutputStream, InputStream, int, boolean) - Static method in class org.fusesource.common.util.IOHelpers
 

X

XmlHelper - Class in org.fusesource.common.util
A helper method to get the namespaces on an XML file
XmlHelper() - Constructor for class org.fusesource.common.util.XmlHelper
 
XmlNamespaceFinder - Class in org.fusesource.common.util
 
XmlNamespaceFinder() - Constructor for class org.fusesource.common.util.XmlNamespaceFinder
 
xpath(String) - Method in class org.fusesource.common.util.XPathBuilder
Creates an XPath expression facade
XPathBuilder - Class in org.fusesource.common.util
A helper class for creating XPath expressions
XPathBuilder() - Constructor for class org.fusesource.common.util.XPathBuilder
 
XPathFacade - Class in org.fusesource.common.util
A facade for working with XPath expressions created via the XPathBuilder helper class.
XPathFacade(XPathBuilder, String, XPathExpression) - Constructor for class org.fusesource.common.util.XPathFacade
 
A B C D E F G H I J L M N O P R S T U V W X 

Copyright © 2016 Red Hat. All Rights Reserved.