|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.gcubemodellibrary.elements.Conversions
public class Conversions
Constructor Summary | |
---|---|
Conversions()
|
Method Summary | |
---|---|
static java.lang.String |
calendarToString(java.util.Calendar calendar)
Formats a Calendar into a String . |
static GCubeDocument |
toDocument(GDoc doc)
Converts the specified GDoc into a GCubeDocument . |
static GCubeDocument |
toDocument(java.io.Reader r)
Returns a GCubeDocument from its textual representation. |
static GDoc |
toTree(GCubeDocument element)
Converts the a GCubeDocument to a GDoc . |
static java.lang.String |
toXML(GCubeDocument d)
Converts a GCubeDocument into its textual representation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Conversions()
Method Detail |
---|
public static GCubeDocument toDocument(java.io.Reader r) throws java.lang.Exception
GCubeDocument
from its textual representation.
xml
- the textual representation.
java.lang.Exception
- if the textual representation is not well-formed.public static java.lang.String toXML(GCubeDocument d) throws java.lang.Exception
GCubeDocument
into its textual representation.
d
- the document
java.lang.Exception
- if the conversion could not be performed.public static GCubeDocument toDocument(GDoc doc) throws java.lang.Exception
GDoc
into a GCubeDocument
.
doc
- the gDoc to convert.
java.lang.Exception
public static GDoc toTree(GCubeDocument element) throws java.lang.Exception
GCubeDocument
to a GDoc
.
document
- the document to convert.
java.lang.Exception
- if an error occurs during the conversion.public static java.lang.String calendarToString(java.util.Calendar calendar)
Calendar
into a String
.
calendar
- the calendar.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |