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.
-
RelArg(int, String)
- Create a new relation argument with the given position and value.
-
RelArg(SGML_Tag)
- Create a new relation argument from its SGML tag representation.
-
getKey()
- Returns an identifier for the SHOE object.
-
getOntReference()
- If the argument value is a reference to an ontology element, return
the unique element id of this element.
-
getPosition()
- Return the argument number of the argument.
-
getValue()
- Retrun the value of the argument.
-
isVariable()
- Returns true if the argument is a variable.
-
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.
-
setPosAsText(boolean)
- Sets whether text strings should be used as the values of the
POS attribute when printing the tag.
-
setValue(String)
- Sets the value of the argument.
-
toString()
- Returns the string representation of the tag.
-
validate(SHOE_Obj, OntManager)
- Checks the argument for errors and updates internal information.
RelArg
public RelArg(int pos,
String value)
- Create a new relation argument with the given position and value.
RelArg
public RelArg(SGML_Tag sgmltag)
- Create a new relation argument from its SGML tag representation.
getKey
public String getKey()
- Returns an identifier for the SHOE object.
- Overrides:
- getKey in class SHOE_Obj
getValue
public String getValue()
- Retrun the value of the argument.
getPosition
public int getPosition()
- Return the argument number of the argument.
getOntReference
public Unique_Elt getOntReference()
- If the argument value is a reference to an ontology element, return
the unique element id of this element.
isVariable
public boolean isVariable()
- Returns true if the argument is a variable.
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)
- Checks the argument for errors and updates internal information.
setValue
public void setValue(String val)
- Sets the value of the argument.
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".
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