Home / Class/ XmlEntityReference Class — netty Architecture

XmlEntityReference Class — netty Architecture

Architecture documentation for the XmlEntityReference class in XmlEntityReference.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d36725eb_fa6d_fd28_ec09_a2b88bb585c7["XmlEntityReference"]
  73f302a0_8944_28c5_083f_5b7fa874e939["XmlEntityReference.java"]
  d36725eb_fa6d_fd28_ec09_a2b88bb585c7 -->|defined in| 73f302a0_8944_28c5_083f_5b7fa874e939
  76ed034f_2aab_e83a_48eb_0083b5630fbb["XmlEntityReference()"]
  d36725eb_fa6d_fd28_ec09_a2b88bb585c7 -->|method| 76ed034f_2aab_e83a_48eb_0083b5630fbb
  793d35f6_958e_648e_adc3_5d0cde790d4a["String()"]
  d36725eb_fa6d_fd28_ec09_a2b88bb585c7 -->|method| 793d35f6_958e_648e_adc3_5d0cde790d4a
  7ba286b8_f708_baa9_0ed2_d5c00b8368d1["equals()"]
  d36725eb_fa6d_fd28_ec09_a2b88bb585c7 -->|method| 7ba286b8_f708_baa9_0ed2_d5c00b8368d1
  4abe671a_5704_0760_92a0_572b1fb56f56["hashCode()"]
  d36725eb_fa6d_fd28_ec09_a2b88bb585c7 -->|method| 4abe671a_5704_0760_92a0_572b1fb56f56

Relationship Graph

Source Code

codec-xml/src/main/java/io/netty/handler/codec/xml/XmlEntityReference.java lines 21–70

public class XmlEntityReference {

    private final String name;
    private final String text;

    public XmlEntityReference(String name, String text) {
        this.name = name;
        this.text = text;
    }

    public String name() {
        return name;
    }

    public String text() {
        return text;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        XmlEntityReference that = (XmlEntityReference) o;

        if (name != null ? !name.equals(that.name) : that.name != null) {
            return false;
        }
        return text != null ? text.equals(that.text) : that.text == null;
    }

    @Override
    public int hashCode() {
        int result = name != null ? name.hashCode() : 0;
        result = 31 * result + (text != null ? text.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "XmlEntityReference{" +
                "name='" + name + '\'' +
                ", text='" + text + '\'' +
                '}';
    }
}

Frequently Asked Questions

What is the XmlEntityReference class?
XmlEntityReference is a class in the netty codebase, defined in codec-xml/src/main/java/io/netty/handler/codec/xml/XmlEntityReference.java.
Where is XmlEntityReference defined?
XmlEntityReference is defined in codec-xml/src/main/java/io/netty/handler/codec/xml/XmlEntityReference.java at line 21.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free