com.gmail.thejcwk.semantics
Class Phrase
java.lang.Object
com.gmail.thejcwk.semantics.Phrase
- All Implemented Interfaces:
- java.io.Serializable
public class Phrase
- extends java.lang.Object
- implements java.io.Serializable
Describes a single linguistic phrase.
- Version:
- 1.0
- Author:
- Jan Kroeze
- See Also:
- Serialized Form
|
Constructor Summary |
Phrase()
Default constructor. |
Phrase(java.lang.String clauseno,
java.lang.String phoneticRepresentation,
java.lang.String translation,
java.lang.String type,
java.lang.String syntacticFunction,
java.lang.String semanticFunction)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Phrase
public Phrase()
- Default constructor.
Phrase
public Phrase(java.lang.String clauseno,
java.lang.String phoneticRepresentation,
java.lang.String translation,
java.lang.String type,
java.lang.String syntacticFunction,
java.lang.String semanticFunction)
- Parameters:
clauseno - Where the clause can be found in the original text.phoneticRepresentation - String showing how to pronounce the phrase.translation - The phrase translated into English.type - The type of the phrase (e.g. Noun Phrase, Verb Phrase, etc.)syntacticFunction - The syntactic function of the phrase.semanticFunction - The semantic function of the phrase.
clone
public java.lang.Object clone()
- Overrides:
clone in class java.lang.Object
getClauseno
public java.lang.String getClauseno()
getPhoneticRepresentation
public java.lang.String getPhoneticRepresentation()
getSemanticFunction
public java.lang.String getSemanticFunction()
getSyntacticFunction
public java.lang.String getSyntacticFunction()
getTranslation
public java.lang.String getTranslation()
getType
public java.lang.String getType()
setClauseno
public void setClauseno(java.lang.String clauseno)
setPhoneticRepresentation
public void setPhoneticRepresentation(java.lang.String phoneticRepresentation)
setSemanticFunction
public void setSemanticFunction(java.lang.String semanticFunction)
setSyntacticFunction
public void setSyntacticFunction(java.lang.String syntacticFunction)
setTranslation
public void setTranslation(java.lang.String translation)
setType
public void setType(java.lang.String type)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
toTooltipString
public java.lang.String toTooltipString()
- Returns a string representation of this phrase that is formatted in such a way
that it can be displayed in a JMultiLineTooltip.
- Returns: