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.
-
Def_Constant(SGML_Tag)
- Create a new constant given its SGML tag representation.
-
Def_Constant(String, String)
- Create a new constant given its name and the prefixed name
of the category of which it is a member.
-
getCategoryId()
- Return an ontology independent identifier for the category
of which this constant is a member.
-
getCategoryName()
- Return the prefixed name of the category that this constant is
classified under.
-
getKey()
- Return a string that identifies the constant within the context
of the ontology.
-
getName()
- Return the name of the constant.
-
printSGML(PrintStream)
- Writes the objects and its components to the given print
stream in SGML format.
-
readSubTags(HTML_Tokenizer)
- Reads and processes the tokens from an HTML_Tokenizer until
the appropriate closing tag is encountered.
-
toString()
- Returns the string representation of the tag.
-
validate(SHOE_Obj, OntManager)
- Check the constant object for errors and update internal structures.
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.
Def_Constant
public Def_Constant(SGML_Tag sgmltag)
- Create a new constant given its SGML tag representation.
getCategoryName
public String getCategoryName()
- Return the prefixed name of the category that this constant is
classified under.
getKey
public String getKey()
- Return a string that identifies the constant within the context
of the ontology.
- Overrides:
- getKey in class SHOE_Obj
getName
public String getName()
- Return the name of the constant.
getCategoryId
public Unique_Elt getCategoryId()
- Return an ontology independent identifier for the category
of which this constant is a member.
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
validate
public Vector validate(SHOE_Obj parent,
OntManager ontman)
- Check the constant object for errors and update internal structures.
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
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