Class UnnamedDependency

    • Field Detail

      • regentText

        protected final String regentText
      • dependentText

        protected final String dependentText
    • Constructor Detail

      • UnnamedDependency

        public UnnamedDependency​(String regent,
                                 String dependent)
      • UnnamedDependency

        public UnnamedDependency​(Label regent,
                                 Label dependent)
    • Method Detail

      • governor

        public Label governor()
        Description copied from interface: Dependency
        Describes the governor (regent/head) of the dependency relation.
        Specified by:
        governor in interface Dependency<Label,​Label,​Object>
        Returns:
        The governor of this dependency
      • dependent

        public Label dependent()
        Description copied from interface: Dependency
        Describes the dependent (argument/modifier) of the dependency relation.
        Specified by:
        dependent in interface Dependency<Label,​Label,​Object>
        Returns:
        the dependent of this dependency
      • name

        public Object name()
        Description copied from interface: Dependency
        Names the type of dependency (subject, instrument, ...). This might be a String in the simplest case, but can provide for arbitrary object types.
        Specified by:
        name in interface Dependency<Label,​Label,​Object>
        Returns:
        the name for this dependency type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equalsIgnoreName

        public boolean equalsIgnoreName​(Object o)
        Description copied from interface: Dependency
        Are two dependencies equal if you ignore the dependency name.
        Specified by:
        equalsIgnoreName in interface Dependency<Label,​Label,​Object>
        Parameters:
        o - The thing to compare against ignoring name
        Returns:
        true iff the head and dependent are the same.
      • toString

        public String toString​(String format)
        Provide different printing options via a String keyword. The recognized options are currently "xml", and "predicate". Otherwise the default toString() is used.
        Specified by:
        toString in interface Dependency<Label,​Label,​Object>
        Parameters:
        format - A format string, either "xml" or you get the default
        Returns:
        A String representation of the dependency