Class AggTypeFrame
java.lang.Object
|
+----Frame
|
+----AggTypeFrame
- public class AggTypeFrame
- extends Frame
The class `AggTypeFrame', a subclass of Frame,
represents a frame internally as an exjava AggType object - such frames
should only be used to represent aggregation types in EXPRESS models.
-
AggTypeFrame(AggType)
- Constructs this frame by plugging in the given exjava AggType object
(it does so by copying the reference, which is maximally efficient
but the client should not then alter the AggType directly, as that
would compromise the integrity of the frame).
-
AggTypeFrame(AggType, Hashtable)
- Constructs this frame by plugging in the given exjava AggType object
(it does so by copying the reference, which is maximally efficient,
but the client should not then alter the AggType directly, as that
would compromise the integrity of the frame).
-
buildFrame()
- Fills in the slots for this frame from the underlying exjava AggType
object.
-
buildQueuedFrames()
- Builds any AggType Frames that are queued to be built (those that
were constructed before the frame class was constructed).
-
getFrameClass()
- Returns the frame class of this frame.
-
initialise(Express)
- Initialises the AggTypeFrame class by setting the class variable
_frameClass after looking up the `aggregation_type' entity in the
given EXPRESS (meta)model.
-
readClass(ObjectInput)
- Deserialises the static data members (class variables) of
AggTypeFrame.
-
writeClass(ObjectOutput)
- Serialises the static data members (class variables) of
AggTypeFrame.
AggTypeFrame
public AggTypeFrame(AggType instanceData) throws FrameAlreadyExists
- Constructs this frame by plugging in the given exjava AggType object
(it does so by copying the reference, which is maximally efficient
but the client should not then alter the AggType directly, as that
would compromise the integrity of the frame).
- Parameters:
- instanceData - An exjava AggType object to wrap in this frame.
- Throws: FrameAlreadyExists
- If an AggType has already been
constructed for `instanceData'.
AggTypeFrame
public AggTypeFrame(AggType instanceData,
Hashtable moreInstanceData) throws FrameAlreadyExists
- Constructs this frame by plugging in the given exjava AggType object
(it does so by copying the reference, which is maximally efficient,
but the client should not then alter the AggType directly, as that
would compromise the integrity of the frame). This constructor allows
the aggregation type frame to be tagged with extra slots, given in a
hash table.
- Parameters:
- instanceData - An exjava AggType object to wrap in this frame.
- moreInstanceData - Extra slots to tag this aggregation type
frame with.
- Throws: FrameAlreadyExists
- If an AggType has already been
constructed for `instanceData'.
initialise
public static void initialise(Express metamodel)
- Initialises the AggTypeFrame class by setting the class variable
_frameClass after looking up the `aggregation_type' entity in the
given EXPRESS (meta)model.
- Parameters:
- metamodel - An EXPRESS metamodel, which is expected to contain
the entity `aggregation_type'.
buildQueuedFrames
public static void buildQueuedFrames()
- Builds any AggType Frames that are queued to be built (those that
were constructed before the frame class was constructed). Their slots
are filled from the exjava objects with which they were constructed,
and they are then validated.
buildFrame
public void buildFrame()
- Fills in the slots for this frame from the underlying exjava AggType
object.
getFrameClass
public FrameClass getFrameClass()
- Returns the frame class of this frame.
- Returns:
- The frame class of this frame.
- Overrides:
- getFrameClass in class Frame
writeClass
public static void writeClass(ObjectOutput oo) throws IOException
- Serialises the static data members (class variables) of
AggTypeFrame.
- Parameters:
- oo - An output object to save the class data to.
- Throws: IOException
- If an I/O exception occurs.
readClass
public static void readClass(ObjectInput oi) throws IOException
- Deserialises the static data members (class variables) of
AggTypeFrame.
- Parameters:
- ois - An input object to save the class data to.
- Throws: IOException
- If an I/O exception occurs.