Home / Class/ XmlAttribute Class — netty Architecture

XmlAttribute Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  378ec02d_a634_744c_ce67_20a194869f11["XmlAttribute"]
  93a0e238_4564_6a95_2cd5_144f045ce68c["XmlAttribute.java"]
  378ec02d_a634_744c_ce67_20a194869f11 -->|defined in| 93a0e238_4564_6a95_2cd5_144f045ce68c
  c261fa37_d37e_ee7f_5efd_5cfa8cd97bb8["XmlAttribute()"]
  378ec02d_a634_744c_ce67_20a194869f11 -->|method| c261fa37_d37e_ee7f_5efd_5cfa8cd97bb8
  b77de2cf_4b7a_1f70_68ac_e742652de77c["String()"]
  378ec02d_a634_744c_ce67_20a194869f11 -->|method| b77de2cf_4b7a_1f70_68ac_e742652de77c
  a6add449_c7c0_6490_0779_9e3662f695e5["equals()"]
  378ec02d_a634_744c_ce67_20a194869f11 -->|method| a6add449_c7c0_6490_0779_9e3662f695e5
  532be003_bc66_d801_f747_6658622c5597["hashCode()"]
  378ec02d_a634_744c_ce67_20a194869f11 -->|method| 532be003_bc66_d801_f747_6658622c5597

Relationship Graph

Source Code

codec-xml/src/main/java/io/netty/handler/codec/xml/XmlAttribute.java lines 22–108

public class XmlAttribute {

    private final String type;
    private final String name;
    private final String prefix;
    private final String namespace;
    private final String value;

    public XmlAttribute(String type, String name, String prefix, String namespace, String value) {
        this.type = type;
        this.name = name;
        this.prefix = prefix;
        this.namespace = namespace;
        this.value = value;
    }

    public String type() {
        return type;
    }

    public String name() {
        return name;
    }

    public String prefix() {
        return prefix;
    }

    public String namespace() {
        return namespace;
    }

    public String value() {
        return value;
    }

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

        XmlAttribute that = (XmlAttribute) o;

        if (!name.equals(that.name)) {
            return false;
        }
        if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) {
            return false;
        }
        if (prefix != null ? !prefix.equals(that.prefix) : that.prefix != null) {
            return false;
        }
        if (type != null ? !type.equals(that.type) : that.type != null) {
            return false;
        }
        if (value != null ? !value.equals(that.value) : that.value != null) {
            return false;
        }

        return true;
    }

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

    @Override
    public String toString() {
        return "XmlAttribute{" +
                "type='" + type + '\'' +
                ", name='" + name + '\'' +

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free