Class JexToFrames
java.lang.Object
|
+--JexToFrames
- public class JexToFrames
- extends java.lang.Object
The class `JexToFrames' is responsible for converting Jex objects to
frames. It is not meant to be instantiated by the client.
Method Summary |
static Frame |
convert(jex.Model model,
boolean createFrameClasses)
Converts the objects in the given Jex EXPRESS model to frames. |
static Frame |
getCachedFrame(java.lang.Object jObject)
Returns the frame associated with a given Jex object. |
static void |
readClass(java.io.ObjectInput oi)
Deserialises the static data members (class variables) of
JexToFrames. |
static void |
writeClass(java.io.ObjectOutput oo)
Serialises the static data members (class variables) of
JexToFrames. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JexToFrames
public JexToFrames()
getCachedFrame
public static Frame getCachedFrame(java.lang.Object jObject)
- Returns the frame associated with a given Jex object. Exits with an
internal error if it is not in the cache.
- Parameters:
jObject
- The Jex object.- Returns:
- The frame associated with the Jex object.
convert
public static Frame convert(jex.Model model,
boolean createFrameClasses)
- Converts the objects in the given Jex EXPRESS model to frames.
- Parameters:
model
- The EXPRESS model.createFrameClasses
- If true, will also create a FrameClass
for each entity, a Slot for each attribute and a DefinedType for
each defined type in the model.- Returns:
- The top level frame of the model (i.e. the "model_frame").
writeClass
public static void writeClass(java.io.ObjectOutput oo)
throws java.io.IOException
- Serialises the static data members (class variables) of
JexToFrames.
- Parameters:
oo
- An output stream to save the class data to.- Throws:
java.io.IOException
- If an I/O exception occurs.
readClass
public static void readClass(java.io.ObjectInput oi)
throws java.io.IOException
- Deserialises the static data members (class variables) of
JexToFrames.
- Parameters:
oi
- An input stream to save the class data to.- Throws:
java.io.IOException
- If an I/O exception occurs.