171a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvistpackage com.android.server.wifi.hotspot2.omadm;
271a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist
371a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvistpublic class NodeAttribute {
471a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    private final String mName;
571a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    private final String mType;
671a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    private final String mValue;
771a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist
871a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    public NodeAttribute(String name, String type, String value) {
971a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist        mName = name;
1071a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist        mType = type;
1171a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist        mValue = value;
1271a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    }
1371a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist
1471a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    public String getName() {
1571a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist        return mName;
1671a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    }
1771a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist
1871a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    public String getValue() {
1971a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist        return mValue;
2071a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    }
2171a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist
2271a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    public String getType() {
2371a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist        return mType;
2471a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    }
2571a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist
2671a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    @Override
2771a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    public String toString() {
2871a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist        return String.format("%s (%s) = '%s'", mName, mType, mValue);
2971a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist    }
3071a988c8e9859244b83cd55bb6b6ee913fcaf95cJan Nordqvist}
31