All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class SHOE.Def_Constant

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

public class Def_Constant
extends SHOE_Obj
A class for representing the definition of a SHOE constant. A constant is essentially an instance declared in the ontology to promote the interoperability of shared concepts.


Constructor Index

 o Def_Constant(SGML_Tag)
Create a new constant given its SGML tag representation.
 o Def_Constant(String, String)
Create a new constant given its name and the prefixed name of the category of which it is a member.

Method Index

 o getCategoryId()
Return an ontology independent identifier for the category of which this constant is a member.
 o getCategoryName()
Return the prefixed name of the category that this constant is classified under.
 o getKey()
Return a string that identifies the constant within the context of the ontology.
 o getName()
Return the name of the constant.
 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.
 o validate(SHOE_Obj, OntManager)
Check the constant object for errors and update internal structures.

Constructors

 o Def_Constant
 public Def_Constant(String name,
                     String category_name)
Create a new constant given its name and the prefixed name of the category of which it is a member.

 o Def_Constant
 public Def_Constant(SGML_Tag sgmltag)
Create a new constant given its SGML tag representation.

Methods

 o getCategoryName
 public String getCategoryName()
Return the prefixed name of the category that this constant is classified under.

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

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

 o getCategoryId
 public Unique_Elt getCategoryId()
Return an ontology independent identifier for the category of which this constant is a member.

 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 validate
 public Vector validate(SHOE_Obj parent,
                        OntManager ontman)
Check the constant object for errors and update internal structures.

 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