public class Utils extends Object
Modifier and Type | Field and Description |
---|---|
static org.gcube.common.core.utils.logging.GCUBELog |
logger |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
consumeStream(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> stream) |
static String |
getParameterFromWSResource(org.gcube.common.core.informationsystem.client.RPDocument resource,
String field) |
static org.gcube.data.trees.patterns.Pattern |
getPattern(org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder h)
Converts a
AnyHolder returned by the service into a Pattern . |
static String |
replaceUnderscore(String input) |
static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder |
toHolder(Element e) |
static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder |
toHolder(org.gcube.data.trees.data.Node n)
Transforms a
Node into a AnyHolder accepted by the service. |
static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder |
toHolder(org.gcube.data.trees.patterns.Pattern p) |
public static org.gcube.data.trees.patterns.Pattern getPattern(org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder h) throws Exception
AnyHolder
returned by the service into a Pattern
.h
- the holderException
- if the conversion failspublic static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder toHolder(org.gcube.data.trees.patterns.Pattern p) throws Exception
Exception
public static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder toHolder(Element e)
public static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder toHolder(org.gcube.data.trees.data.Node n) throws Exception
Node
into a AnyHolder
accepted by the service.n
- the nodeException
- if the conversion failspublic static boolean consumeStream(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> stream)
Copyright © 2015. All Rights Reserved.