Class DomainRuleFrame
java.lang.Object
|
+----Frame
|
+----DomainRuleFrame
- public class DomainRuleFrame
- extends Frame
The class `DomainRuleFrame', a subclass of Frame,
represents a frame internally as an exjava DomainRule object - such frames
should only be used to represent domain rules in EXPRESS models.
-
DomainRuleFrame(DomainRule, Frame)
- Constructs this frame by plugging in the given exjava DomainRule
object (it does so by copying the reference, which is maximally
efficient, but the client should not then alter the DomainRule
directly, as that would compromise the integrity of the frame).
-
DomainRuleFrame(DomainRule, Frame, Hashtable)
- Constructs this frame by plugging in the given exjava DomainRule
object (it does so by copying the reference, which is maximally
efficient, but the client should not then alter the DomainRule
directly, as that would compromise the integrity of the frame).
-
buildFrame()
- Fills in the slots for this frame from the underlying exjava
DomainRule object.
-
buildQueuedFrames()
- Builds any DomainRuleFrames 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 DomainRuleFrame class by setting the class variable
_frameClass after looking up the `domain_rule' entity in the given
EXPRESS (meta)model.
-
readClass(ObjectInput)
- Deserialises the static data members (class variables) of
DomainRuleFrame.
-
writeClass(ObjectOutput)
- Serialises the static data members (class variables) of
DomainRuleFrame.
DomainRuleFrame
public DomainRuleFrame(DomainRule instanceData,
Frame theEntity) throws FrameAlreadyExists
- Constructs this frame by plugging in the given exjava DomainRule
object (it does so by copying the reference, which is maximally
efficient, but the client should not then alter the DomainRule
directly, as that would compromise the integrity of the frame).
- Parameters:
- instanceData - An exjava DomainRule object to wrap in this
frame.
- theEntity - The entity which contains this domain rule.
- Throws: FrameAlreadyExists
- If an DomainRuleFrame has already
been constructed for `instanceData'.
DomainRuleFrame
public DomainRuleFrame(DomainRule instanceData,
Frame theEntity,
Hashtable moreInstanceData) throws FrameAlreadyExists
- Constructs this frame by plugging in the given exjava DomainRule
object (it does so by copying the reference, which is maximally
efficient, but the client should not then alter the DomainRule
directly, as that would compromise the integrity of the frame). This
constructor allows the domain rule frame to be tagged with
extra slots, given in a hash table.
- Parameters:
- instanceData - An exjava DomainRule object to wrap in this
frame.
- theEntity - The entity which contains this domain rule.
- moreInstanceData - Extra slots to tag this domain rule frame
with.
- Throws: FrameAlreadyExists
- If an DomainRuleFrame has already
been constructed for `instanceData'.
initialise
public static void initialise(Express metamodel)
- Initialises the DomainRuleFrame class by setting the class variable
_frameClass after looking up the `domain_rule' entity in the given
EXPRESS (meta)model.
- Parameters:
- metamodel - An EXPRESS metamodel, which is expected to contain
the entity `domain_rule'.
buildQueuedFrames
public static void buildQueuedFrames()
- Builds any DomainRuleFrames 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
DomainRule 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
DomainRuleFrame.
- 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
DomainRuleFrame.
- Parameters:
- ois - An input object to save the class data to.
- Throws: IOException
- If an I/O exception occurs.