|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DefinedType
The class `DefinedType' represents a defined type which can have instances in the frame system, doing for DefinedTypeInstance what FrameClass does for Frame.
Constructor Summary | |
DefinedType(jex.Type definedTypeType)
Constructs this defined type by plugging in the given Jex Type object which is taken to represent it (it does so by copying the reference, which is maximally efficient, but the client should not then alter the Type directly, as that would compromise the integrity of the frame). |
Method Summary | |
static void |
createDefinedTypes(jex.Schema schema)
Create a DefinedType for every defined type in a given schema. |
static java.util.Enumeration |
getAllDefinedTypes()
Returns all the defined types in the frame system. |
java.lang.String |
getName()
Returns the name of this defined type. |
Frame |
getTypeFrame()
Delivers up the underlying frame of this defined type. |
static DefinedType |
lookup(java.lang.String definedTypeName)
Looks up the defined type with the given name. |
static DefinedType |
lookup(java.lang.String definedTypeName,
jex.Schema frameClassModel)
Looks up the defined type with the given name. |
static void |
readClass(java.io.ObjectInput oi)
Deserialises the static data members (class variables) of DefinedType. |
java.lang.String |
toString()
Returns a string representation of this defined type. |
static void |
writeClass(java.io.ObjectOutput oo)
Serialises the static data members (class variables) of DefinedType. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefinedType(jex.Type definedTypeType)
definedTypeType
- A Jex Type object to wrap in this frame.Method Detail |
public Frame getTypeFrame()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public static void createDefinedTypes(jex.Schema schema)
schema
- The schema.public static java.util.Enumeration getAllDefinedTypes()
public static DefinedType lookup(java.lang.String definedTypeName)
definedTypeName
- The name of the frame class to return.lookup(String,Schema)
public static DefinedType lookup(java.lang.String definedTypeName, jex.Schema frameClassModel) throws DefinedTypeDoesNotExist
definedTypeName
- The name of the defined type to return.frameClassModel
- The EXPRESS model in which `definedTypeName'
is defined, in case that defined type hasn't been constructed yet.DefinedTypeDoesNotExist
- If no defined type of that name
exists already, and there is no defined type of that name in the
frame class schema either.lookup(String)
public static void writeClass(java.io.ObjectOutput oo) throws java.io.IOException
oo
- An output stream to save the class data to.java.io.IOException
- If an I/O exception occurs.public static void readClass(java.io.ObjectInput oi) throws java.io.IOException
oi
- An input stream to save the class data to.java.io.IOException
- If an I/O exception occurs.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |