|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.tml.utils.Utils
public class Utils
Data type conversion utilities
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | ||
|---|---|---|
static org.gcube.data.trees.patterns.Pattern |
getPattern(org.gcube.data.tm.stubs.AnyHolder h)
Converts a AnyHolder returned by the service into a Pattern. |
|
static
|
newFault(E fault,
Throwable cause)
Returns a given fault after serialising into it an original cause. |
|
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.tm.stubs.AnyHolder |
toHolder(org.gcube.data.trees.data.Tree t)
Transforms a Tree into a AnyHolder accepted by the service. |
|
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 org.gcube.data.tm.stubs.AnyHolder toHolder(org.gcube.data.trees.patterns.Pattern p)
throws Exception
Pattern into an AnyHolder accepted by the service.
p - the pattern
Exception - if the conversion fails
public static org.gcube.data.trees.patterns.Pattern getPattern(org.gcube.data.tm.stubs.AnyHolder h)
throws Exception
AnyHolder returned by the service into a Pattern.
h - the holder
Exception - if the conversion fails
public static org.gcube.data.tm.stubs.AnyHolder toHolder(org.gcube.data.trees.data.Tree t)
throws Exception
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
public static <E extends org.gcube.common.core.faults.GCUBEFault> E newFault(E fault,
Throwable cause)
E - the type of the faultfault - the faultcause - the cause
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||