All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class SHOE.RelArg

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

public class RelArg
extends SHOE_Obj
A class representing an argument of a relationship.


Constructor Index

 o RelArg(int, String)
Create a new relation argument with the given position and value.
 o RelArg(SGML_Tag)
Create a new relation argument from its SGML tag representation.

Method Index

 o getKey()
Returns an identifier for the SHOE object.
 o getOntReference()
If the argument value is a reference to an ontology element, return the unique element id of this element.
 o getPosition()
Return the argument number of the argument.
 o getValue()
Retrun the value of the argument.
 o isVariable()
Returns true if the argument is a variable.
 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 setPosAsText(boolean)
Sets whether text strings should be used as the values of the POS attribute when printing the tag.
 o setValue(String)
Sets the value of the argument.
 o toString()
Returns the string representation of the tag.
 o validate(SHOE_Obj, OntManager)
Checks the argument for errors and updates internal information.

Constructors

 o RelArg
 public RelArg(int pos,
               String value)
Create a new relation argument with the given position and value.

 o RelArg
 public RelArg(SGML_Tag sgmltag)
Create a new relation argument from its SGML tag representation.

Methods

 o getKey
 public String getKey()
Returns an identifier for the SHOE object.

Overrides:
getKey in class SHOE_Obj
 o getValue
 public String getValue()
Retrun the value of the argument.

 o getPosition
 public int getPosition()
Return the argument number of the argument.

 o getOntReference
 public Unique_Elt getOntReference()
If the argument value is a reference to an ontology element, return the unique element id of this element.

 o isVariable
 public boolean isVariable()
Returns true if the argument is a variable.

 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)
Checks the argument for errors and updates internal information.

 o setValue
 public void setValue(String val)
Sets the value of the argument.

 o setPosAsText
 protected void setPosAsText(boolean textPos)
Sets whether text strings should be used as the values of the POS attribute when printing the tag. If true, then "FROM" and "TO" are used in place of the integer values "1" and "2".

 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