public class UnnamedDependency extends java.lang.Object implements Dependency<Label,Label,java.lang.Object>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
dependentText |
protected java.lang.String |
regentText |
Constructor and Description |
---|
UnnamedDependency(Label regent,
Label dependent) |
UnnamedDependency(java.lang.String regent,
java.lang.String dependent) |
Modifier and Type | Method and Description |
---|---|
DependencyFactory |
dependencyFactory()
Provide a factory for this kind of dependency
|
Label |
dependent()
Describes the dependent (argument/modifier) of
the dependency relation.
|
boolean |
equals(java.lang.Object o) |
boolean |
equalsIgnoreName(java.lang.Object o)
Are two dependencies equal if you ignore the dependency name.
|
static DependencyFactory |
factory() |
protected java.lang.String |
getText(Label label) |
Label |
governor()
Describes the governor (regent/head) of the dependency relation.
|
int |
hashCode() |
java.lang.Object |
name()
Names the type of dependency (subject, instrument, ...).
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String format)
Provide different printing options via a String keyword.
|
protected final java.lang.String regentText
protected final java.lang.String dependentText
public UnnamedDependency(java.lang.String regent, java.lang.String dependent)
public Label governor()
Dependency
governor
in interface Dependency<Label,Label,java.lang.Object>
public Label dependent()
Dependency
dependent
in interface Dependency<Label,Label,java.lang.Object>
public java.lang.Object name()
Dependency
name
in interface Dependency<Label,Label,java.lang.Object>
protected java.lang.String getText(Label label)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equalsIgnoreName(java.lang.Object o)
Dependency
equalsIgnoreName
in interface Dependency<Label,Label,java.lang.Object>
o
- The thing to compare against ignoring namepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String format)
toString
in interface Dependency<Label,Label,java.lang.Object>
format
- A format string, either "xml" or you get the defaultpublic DependencyFactory dependencyFactory()
Dependency
dependencyFactory
in interface Dependency<Label,Label,java.lang.Object>
public static DependencyFactory factory()