Class Values
java.lang.Object
|
+----Values
- public class Values
- extends Object
The class `Values' provides a library of utilities for values (values of slot
fillers and values to be wrapped in defined type instances) such as
validating them with respect to their type in the frame system, converting
values from exjava objects to values for frame slot fillers, and writing the
FIL for a value. This class is not meant to be instantiated.
-
convert(Object)
- Converts a given object from exjava to the corresponding object for
the frame system.
-
convert(Object, Frame)
- Converts a given object from exjava to the corresponding object for
the frame system.
-
FILise(Object, boolean)
- Writes FIL for a given value.
FILise
public static String FILise(Object value,
boolean HTML)
- Writes FIL for a given value. If it is a frame, it generates a
corresponding hypertext link. If it is an aggregation, it sticks it
in brackets and recurses for each element. Otherwise, it just leaves
it as it is.
- Parameters:
- value - The value to be FIL-ised.
- HTML - If true, FIL will be augmented with HTML tags.
- Returns:
- s The FIL for `value'.
convert
public static Object convert(Object source)
- Converts a given object from exjava to the corresponding object for
the frame system.
- Parameters:
- value - An object from exjava.
- Returns:
- s The corresponding object for the frame system. If it doesn't
know to convert it, it returns it as is.
convert
public static Object convert(Object source,
Frame entityOrTypeFrame)
- Converts a given object from exjava to the corresponding object for
the frame system. To be used for converting IdRef, which requires
an entity frame to be passed in as a parameter, and for converting
anything that might contain an IdRef.
- Parameters:
- value - An object from exjava.
- entityOrTypeFrame - A frame representing the current entity (in
the scope of which the IdRef is interpreted).
- Returns:
- s The corresponding object for the frame system. If it doesn't
know to convert it, it passes it on to convert(Object).