@Test public void testGetLocalAttributes() { Element parent = new Element("id"); String parentattribute = "a"; parent.setAttribute(parentattribute, 1); Element element = new Element(parent); String attribute = "b"; element.setAttribute(attribute, 1); Assert.assertFalse(element.getLocalAttributes().isDefined(parentattribute)); Assert.assertTrue(element.getLocalAttributes().isDefined(attribute)); }
public Attributes getLocalAttributes() { return attributes; }
Element implements IAttributes { public Attributes getLocalAttributes() { return attributes; } }
Element implements IAttributes { public Attributes getLocalAttributes() { return attributes; } Element(String id);  Element(Element parent); }
Element implements IAttributes { public Attributes getLocalAttributes() { return attributes; } Element(String id);  Element(Element parent); String getId(); Element getParent(); void setParent(Element element); @SuppressWarnings("unchecked") @Override O getAttribute(String identifier); @Override boolean isDefined(String identifier); @Override Attributes getAttributes(); Attributes getLocalAttributes(); Set<String> getLocalAttributeNames(); @Override void setAttribute(String identifier, Object object); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override Parameter getAttributeParameter(String identifier); @Override Set<String> getAttributeNames(); String getType(); void setType(String type); }
Element implements IAttributes { public Attributes getLocalAttributes() { return attributes; } Element(String id);  Element(Element parent); String getId(); Element getParent(); void setParent(Element element); @SuppressWarnings("unchecked") @Override O getAttribute(String identifier); @Override boolean isDefined(String identifier); @Override Attributes getAttributes(); Attributes getLocalAttributes(); Set<String> getLocalAttributeNames(); @Override void setAttribute(String identifier, Object object); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override Parameter getAttributeParameter(String identifier); @Override Set<String> getAttributeNames(); String getType(); void setType(String type); static String TYPE; }