
org.robolectric.res.MenuNode Maven / Gradle / Ivy
package org.robolectric.res;
import java.util.ArrayList;
import java.util.List;
public class MenuNode {
private final String name;
private final List attributes;
private final List children = new ArrayList();
public MenuNode(String name, List attributes) {
this.name = name;
this.attributes = attributes;
}
public String getName() {
return name;
}
public List getAttributes() {
return attributes;
}
public List getChildren() {
return children;
}
public void addChild(MenuNode MenuNode) {
children.add(MenuNode);
}
public boolean isSubMenuItem() {
return children != null && children.size() == 1 && "menu".equals(children.get(0).name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy