Class pmr.cml.DataPrimitive
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.cml.DataPrimitive
java.lang.Object
|
+----pmr.sgml.SGMLNode
|
+----pmr.sgml.DrawableSGMLNode
|
+----pmr.cml.DrawableX_Node
|
+----pmr.cml.DataPrimitive
- public class DataPrimitive
- extends DrawableX_Node
the superclass of XVAR and ARRAY. Holds common features like FUZZY and TYPE
- Author:
- (C) P. Murray-Rust, 1997
-
DataPrimitive(String, SGMLTree)
- construct from a SGMLNode in a tree
-
addBuiltin(Hashtable, String, String)
- for use by other DTDs which use BUILTINs
-
drawIcon(Graphics, int, int)
- at some stage make this useful to subclasses
-
getTitle()
- get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
-
getType()
-
-
mayContain(SGMLNode)
- XVAR and ARRAY may node contain other nodes (except PEL).
-
setType(String)
- override the type of the array.
DataPrimitive
public DataPrimitive(String giName,
SGMLTree tree)
- construct from a SGMLNode in a tree
addBuiltin
public static void addBuiltin(Hashtable builtinTable,
String builtin,
String typ) throws IllegalArgumentException
- for use by other DTDs which use BUILTINs
getType
public String getType()
setType
public void setType(String type)
- override the type of the array. Only to be used where you know that it could
be interpreted differently from present (e.g. integers could have been
read as strings
getTitle
public String getTitle()
- get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
- Overrides:
- getTitle in class DrawableX_Node
mayContain
public boolean mayContain(SGMLNode n)
- XVAR and ARRAY may node contain other nodes (except PEL). This is
hardcoded, but should come from the DTD later.
- Overrides:
- mayContain in class DrawableX_Node
drawIcon
public int drawIcon(Graphics g,
int x,
int y)
- at some stage make this useful to subclasses
- Overrides:
- drawIcon in class DrawableX_Node
All Packages Class Hierarchy This Package Previous Next Index