info.bioinfweb.jphyloio.events.meta

## Class URIOrStringIdentifier

- java.lang.Object
- - info.bioinfweb.jphyloio.events.meta.URIOrStringIdentifier

-     public class URIOrStringIdentifier
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `URIOrStringIdentifier(java.lang.String stringRepresentation, javax.xml.namespace.QName uri)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `boolean` | `equalsStringOrURI(URIOrStringIdentifier other)` Tests whether this and the other object have an equal string representation or an equal URI or both.
    `java.lang.String` | `getStringRepresentation()`
    `javax.xml.namespace.QName` | `getURI()`
    `int` | `hashCode()`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### URIOrStringIdentifier

          public URIOrStringIdentifier(java.lang.String stringRepresentation,
                                       javax.xml.namespace.QName uri)

  - ### Method Detail

    - #### getStringRepresentation

          public java.lang.String getStringRepresentation()

    - #### getURI

          public javax.xml.namespace.QName getURI()

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### equalsStringOrURI

          public boolean equalsStringOrURI(URIOrStringIdentifier other)

      Tests whether this and the other object have an equal string representation or an equal URI or both.

      Note that both objects having `null` for their string representations or URIs is not considered as equal by this method. (This is a different behavior as in `equals(Object)`.)

      Parameters:
        `other` - the instance to be compared
      Returns:
        `true` if the condition above is fulfilled or `false` otherwise