|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.tm.utils.Utils
public class Utils
Library-wide utilities.
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static void |
notNull(Object... values)
Checks that one or more values are not null. |
static org.gcube.data.tm.stubs.AnyHolder |
toAnyHolder(org.gcube.data.trees.data.Tree t)
Transforms a Tree into a AnyHolder accepted by the service. |
static Element |
toElement(org.gcube.data.tm.stubs.AnyHolder d)
Converts an AnyHolder into an Element. |
static org.gcube.data.tm.stubs.AnyHolder |
toHolder(Element e)
Converts an Element into a AnyHolder accepted by the service. |
static org.gcube.data.tm.stubs.AnyHolder |
toHolder(org.gcube.data.trees.data.Node n)
Transforms a Node into a AnyHolder accepted by the service. |
static org.gcube.data.tm.stubs.AnyHolder |
toHolder(org.gcube.data.trees.patterns.Pattern p)
Converts a Pattern into an AnyHolder accepted by the service. |
static org.gcube.data.trees.patterns.Pattern |
toPattern(org.gcube.data.tm.stubs.AnyHolder h)
Converts a AnyHolder returned by the service into a Pattern. |
static org.gcube.data.trees.data.Tree |
toTree(org.gcube.data.tm.stubs.AnyHolder h)
Converts an AnyHolder into an Element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static void notNull(Object... values)
throws IllegalArgumentException
null.
values - the values
IllegalArgumentException - if any of the input values is nullpublic static org.gcube.data.tm.stubs.AnyHolder toHolder(org.gcube.data.trees.patterns.Pattern p)
Pattern into an AnyHolder accepted by the service.
p - the pattern
public static org.gcube.data.trees.patterns.Pattern toPattern(org.gcube.data.tm.stubs.AnyHolder h)
throws Exception
AnyHolder returned by the service into a Pattern.
h - the holder
Exception - if the conversion failspublic static org.gcube.data.tm.stubs.AnyHolder toAnyHolder(org.gcube.data.trees.data.Tree t)
Tree into a AnyHolder accepted by the service.
t - the tree
Exception - if the conversion failspublic static org.gcube.data.tm.stubs.AnyHolder toHolder(Element e)
Element into a AnyHolder accepted by the service.
e - the element
public static org.gcube.data.tm.stubs.AnyHolder toHolder(org.gcube.data.trees.data.Node n)
throws Exception
Node into a AnyHolder accepted by the service.
n - the node
Exception - if the conversion failspublic static Element toElement(org.gcube.data.tm.stubs.AnyHolder d)
AnyHolder into an Element.
d - the holder
public static org.gcube.data.trees.data.Tree toTree(org.gcube.data.tm.stubs.AnyHolder h)
throws Exception
AnyHolder into an Element.
h - the holder
Exception - if the conversion fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||