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

Constructor Index

 o DataPrimitive(String, SGMLTree)
construct from a SGMLNode in a tree

Method Index

 o addBuiltin(Hashtable, String, String)
for use by other DTDs which use BUILTINs
 o drawIcon(Graphics, int, int)
at some stage make this useful to subclasses
 o getTitle()
get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
 o getType()
 o mayContain(SGMLNode)
XVAR and ARRAY may node contain other nodes (except PEL).
 o setType(String)
override the type of the array.

Constructors

 o DataPrimitive
  public DataPrimitive(String giName,
                       SGMLTree tree)
construct from a SGMLNode in a tree

Methods

 o addBuiltin
  public static void addBuiltin(Hashtable builtinTable,
                                String builtin,
                                String typ) throws IllegalArgumentException
for use by other DTDs which use BUILTINs
 o getType
  public String getType()
 o 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
 o getTitle
  public String getTitle()
get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
Overrides:
getTitle in class DrawableX_Node
 o 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
 o 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