de.tuebingen.uni.sfs.germanet.api
Class CompoundInfo

java.lang.Object
  extended by de.tuebingen.uni.sfs.germanet.api.CompoundInfo

public class CompoundInfo
extends java.lang.Object

A CompoundInfo shows constituent parts of a German word, their word categories and attributes.


Constructor Summary
CompoundInfo(CompoundProperty modifierProperty, java.lang.String modifier1, CompoundCategory modifier1Category, java.lang.String modifier2, CompoundCategory modifier2Category, java.lang.String head, CompoundProperty headProperty)
          Constructs a CompoundInfo with the specified attributes.
 
Method Summary
 java.lang.String getHead()
          Returns the head of the compound
 CompoundProperty getHeadProperty()
          Returns the CompoundProperty of the head or null if it has not been set
 java.lang.String getModifier1()
          Returns the first modifier of the compound
 CompoundCategory getModifier1Category()
          Returns the CompoundCategory of the first modifier or null if it has not been set
 java.lang.String getModifier2()
          Returns the second, alternative modifier of the compound or null if it has not been set
 CompoundCategory getModifier2Category()
          Returns the CompoundCategory of the second modifier or null if it has not been set
 CompoundProperty getModifierProperty()
          Returns the CompoundProperty of the modifier or null if it has not been set
 java.lang.String toString()
          Return a String representation of the compound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompoundInfo

public CompoundInfo(CompoundProperty modifierProperty,
                    java.lang.String modifier1,
                    CompoundCategory modifier1Category,
                    java.lang.String modifier2,
                    CompoundCategory modifier2Category,
                    java.lang.String head,
                    CompoundProperty headProperty)
Constructs a CompoundInfo with the specified attributes.

Parameters:
modifierProperty -
modifier1 -
modifier1Category -
modifier2 -
modifier2Category -
head -
headProperty -
Method Detail

getModifierProperty

public CompoundProperty getModifierProperty()
Returns the CompoundProperty of the modifier or null if it has not been set

Returns:
the CompoundProperty of the modifier

getModifier1

public java.lang.String getModifier1()
Returns the first modifier of the compound

Returns:
the first modifier of the compound

getModifier1Category

public CompoundCategory getModifier1Category()
Returns the CompoundCategory of the first modifier or null if it has not been set

Returns:
the CompoundCategory of the first modifier

getModifier2

public java.lang.String getModifier2()
Returns the second, alternative modifier of the compound or null if it has not been set

Returns:
the second modifier of the compound

getModifier2Category

public CompoundCategory getModifier2Category()
Returns the CompoundCategory of the second modifier or null if it has not been set

Returns:
the CompoundCategory of the second modifier

getHead

public java.lang.String getHead()
Returns the head of the compound

Returns:
the head of the compound

getHeadProperty

public CompoundProperty getHeadProperty()
Returns the CompoundProperty of the head or null if it has not been set

Returns:
the CompoundProperty of the head

toString

public java.lang.String toString()
Return a String representation of the compound.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of the compound.