Tag implements Iterable<Tag> { public boolean compareTag(final Tag t) { if (this == t) { return true; } if (t == null) { return false; } Tag other = t; if (ns == null) { if (other.ns != null) { return false; } } else if (!ns.equals(other.ns)) { return false; } if (tag == null) { if (other.tag != null) { return false; } } else if (!tag.equals(other.tag)) { return false; } return true; } Tag(final String tag, final Map<String, String> attr);  Tag(final String tag);  Tag(final String tag, final Map<String, String> attr, final Map<String, String> css, final String ns );  Tag(final String tag, final Map<String, String> attr, final String ns);  Tag(final String tag, final String ns); void setParent(final Tag parent); Tag getParent(); @Deprecated String getTag(); Map<String, String> getCSS(); void setCSS(final Map<String, String> css); Map<String, String> getAttributes(); void addChild(final Tag t); List<Tag> getChildren(); List<Tag> getChildren(final String name); String getNameSpace(); @Override String toString(); boolean compareTag(final Tag t); Iterator<Tag> iterator(); Tag getChild(final String name, final String ns); Tag getChild(final String name, final String ns, final boolean recursive); boolean hasChildren(); boolean hasParent(); boolean hasChild(final String name, final String ns); boolean hasChild(final String name, final String ns, final boolean recursive); String getName(); Object getLastMarginBottom(); void setLastMarginBottom(Object lastMarginBottom);  }
@Test public void compareTrue() { Assert.assertTrue(new Tag("pappie").compareTag(new Tag("pappie"))); }
@Test public void compareFalse() { Assert.assertFalse(new Tag("pappie").compareTag(new Tag("lappie"))); }
@Test public void compareTrueNS() { Assert.assertTrue(new Tag("pappie", "ns").compareTag(new Tag("pappie", "ns"))); }
@Test public void compareFalseNS() { Assert.assertFalse(new Tag("pappie", "ns").compareTag(new Tag("pappie", "xs"))); }
@Test public void compareFalseTagAndNS() { Assert.assertFalse(new Tag("pappie", "ns").compareTag(new Tag("mammie", "xs"))); }