tag in a SHOE document.
-
Def_Category(SGML_Tag)
- Creates a new Def_Category object using the given SGML tag.
-
Def_Category(String, Vector)
- Creates a new Def_Category object with the given name and set of
direct super-categories.
-
Def_Category(String, Vector, String, String)
- Creates a new Def_Category object with the given name, set of
direct super-categories, description, and short phrase.
-
getChildIds()
- Returns the unique element ids of each child category, including
those of categories defined in other ontologies.
-
getDescription()
- Returns a description of the category.
-
getIsaString()
- Returns the list of prefixed names of parent categories as a
whitespace separated string.
-
getKey()
- Returns an identifier for the SHOE object.
-
getLabel()
- Returns a label suitable for display the Category name to a user.
-
getName()
- Returns the name of the category.
-
getParentIds()
- Returns the unique element ids of each parent category, including
those of categories defined in other ontologies.
-
getParentNames()
- Returns an array of the prefixed names of the category's parents.
-
getPhrase()
- Returns a short phrase that describes the category.
-
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)
- Validate the Def_Category by determining the element ids for each
of its parents.
Def_Category
public Def_Category(String name,
Vector isa)
- Creates a new Def_Category object with the given name and set of
direct super-categories. The super-categories are specified as
Strings, where each is a SHOE prefixed name.
Def_Category
public Def_Category(String name,
Vector isa,
String description,
String short_para)
- Creates a new Def_Category object with the given name, set of
direct super-categories, description, and short phrase.
Def_Category
public Def_Category(SGML_Tag sgmltag)
- Creates a new Def_Category object using the given SGML tag.
getDescription
public String getDescription()
- Returns a description of the category.
getKey
public String getKey()
- Returns an identifier for the SHOE object.
- Overrides:
- getKey in class SHOE_Obj
getName
public String getName()
- Returns the name of the category.
getParentNames
public String[] getParentNames()
- Returns an array of the prefixed names of the category's parents.
getPhrase
public String getPhrase()
- Returns a short phrase that describes the category. This is
the SHORT field in the DEF-CATEGORY tag.
getLabel
public String getLabel()
- Returns a label suitable for display the Category name to a user.
If the category has a SHORT name, it is returned, otherwise the
name of the category is returned
getIsaString
public String getIsaString()
- Returns the list of prefixed names of parent categories as a
whitespace separated string.
getParentIds
public Enumeration getParentIds()
- Returns the unique element ids of each parent category, including
those of categories defined in other ontologies.
getChildIds
public Enumeration getChildIds()
- Returns the unique element ids of each child category, including
those of categories defined in other ontologies.
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)
- Validate the Def_Category by determining the element ids for each
of its parents. In the process we also add the current category
as a child to each of those. Here, parent is the ontology that
contains the Def-Category.
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