public class CompoundInfo
extends java.lang.Object
CompoundInfo
shows constituent parts of a German word, their
word categories and attributes.Constructor and Description |
---|
CompoundInfo(java.lang.String modifier1,
CompoundProperty modifier1Property,
CompoundCategory modifier1Category,
java.lang.String modifier2,
CompoundProperty modifier2Property,
CompoundCategory modifier2Category,
java.lang.String head,
CompoundProperty headProperty)
Constructs a
CompoundInfo with the specified attributes. |
Modifier and Type | Method and Description |
---|---|
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 |
CompoundProperty |
getModifier1Property()
Returns the
CompoundProperty 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 |
getModifier2Property()
Returns the
CompoundProperty of the second modifier
or null if it has not been set |
java.lang.String |
toString()
Return a String representation of the compound.
|
public CompoundInfo(java.lang.String modifier1, CompoundProperty modifier1Property, CompoundCategory modifier1Category, java.lang.String modifier2, CompoundProperty modifier2Property, CompoundCategory modifier2Category, java.lang.String head, CompoundProperty headProperty)
CompoundInfo
with the specified attributes.modifier1
- modifier1Property
- modifier1Category
- modifier2
- modifier2Property
- modifier2Category
- head
- headProperty
- public java.lang.String getModifier1()
public CompoundProperty getModifier1Property()
CompoundProperty
of the first modifier
or null if it has not been setCompoundProperty
of the first modifierpublic CompoundCategory getModifier1Category()
CompoundCategory
of the first modifier
or null if it has not been setCompoundCategory
of the first modifierpublic java.lang.String getModifier2()
public CompoundProperty getModifier2Property()
CompoundProperty
of the second modifier
or null if it has not been setCompoundProperty
of the second modifierpublic CompoundCategory getModifier2Category()
CompoundCategory
of the second modifier
or null if it has not been setCompoundCategory
of the second modifierpublic java.lang.String getHead()
public CompoundProperty getHeadProperty()
CompoundProperty
of the head
or null if it has not been setCompoundProperty
of the headpublic java.lang.String toString()
toString
in class java.lang.Object