@Override
    public boolean equals(final Object obj) {
        if (obj == null || !(obj instanceof PipelineElement)) {
            return false;
        }

        // Make sure types are the same if they have been set.
        final PipelineElement element = (PipelineElement) obj;
        if (type != null && element.type != null && !type.equals(element.type)) {
            return false;
        }

        return id.equals(element.id);
    }
<p>
Java class for Element complex type.
<p>
<p>
The following schema fragment specifies the expected content contained within
this class.
<p>
<pre>
&lt;complexType name="Element">
  &lt;complexContent>
    &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      &lt;sequence>
        &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
        &lt;element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
      &lt;/sequence>
    &lt;/restriction>
  &lt;/complexContent>
&lt;/complexType>
</pre>
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/PipelineElement.java