All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class SHOE.Def_Type

java.lang.Object
   |
   +----SHOE.SHOE_Obj
           |
           +----SHOE.Def_Type

public class Def_Type
extends SHOE_Obj
A class for representing a SHOE type definition. Note that SHOE does not provide the expressivity to define complex types, the type mechanism is merely a place holder so that the custom applications can know when special typing mechanisms might apply.


Constructor Index

 o Def_Type(SGML_Tag)
Create a new type given its SGML tag representation.
 o Def_Type(String, String, String)
Create a new type given its name, description, and a short phrase.

Method Index

 o getDescription()
Return a description of the type.
 o getKey()
Return a string that identifies the type within the context of the ontology.
 o getName()
Return the name of the type.
 o getPhrase()
Returns a short phrase that describes the type.
 o printSGML(PrintStream)
Writes the objects and its components to the given print stream in SGML format.
 o readSubTags(HTML_Tokenizer)
Reads and processes the tokens from an HTML_Tokenizer until the appropriate closing tag is encountered.
 o toString()
Returns the string representation of the tag.

Constructors

 o Def_Type
 public Def_Type(String name,
                 String description,
                 String short_para)
Create a new type given its name, description, and a short phrase.

 o Def_Type
 public Def_Type(SGML_Tag sgmltag)
Create a new type given its SGML tag representation.

Methods

 o getDescription
 public String getDescription()
Return a description of the type.

 o getKey
 public String getKey()
Return a string that identifies the type within the context of the ontology.

Overrides:
getKey in class SHOE_Obj
 o getName
 public String getName()
Return the name of the type.

 o getPhrase
 public String getPhrase()
Returns a short phrase that describes the type. This is the SHORT field in the DEF-TYPE tag.

 o readSubTags
 public Vector readSubTags(HTML_Tokenizer intokens)
Reads and processes the tokens from an HTML_Tokenizer until the appropriate closing tag is encountered.

Overrides:
readSubTags in class SHOE_Obj
 o printSGML
 public void printSGML(PrintStream out)
Writes the objects and its components to the given print stream in SGML format.

Overrides:
printSGML in class SHOE_Obj
 o toString
 public String toString()
Returns the string representation of the tag. Any contents or end tags are not included.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index