XliffElementImpl extends ElementImpl implements
		XliffElement { protected static boolean isXliffElement(org.w3c.dom.Node node) { if (!(node instanceof org.w3c.dom.Element)) { return false; } org.w3c.dom.Element element = (Element) node; return Schemas.XLIFF_12_NAMESPACE.equals(element.getNamespaceURI()); } protected  XliffElementImpl(String name); protected  XliffElementImpl(String name, org.w3c.dom.Element xmlElement);   }
@Test public void testIsXliffElementNode() { Document doc = Utils.createDocument(); Text text = doc.createTextNode("abc"); Element xliffElem = doc.createElementNS(XLIFF_12_NAMESPACE, "name"); Element nonXliffElem = doc.createElementNS("ns", "name"); assertFalse(XliffElementImpl.isXliffElement(text)); assertTrue(XliffElementImpl.isXliffElement(xliffElem)); assertFalse(XliffElementImpl.isXliffElement(nonXliffElem)); }
@Test public void testIsXliffElementNodeString() { Document doc = Utils.createDocument(); Text text = doc.createTextNode("abc"); Element xliffElem = doc.createElementNS(XLIFF_12_NAMESPACE, "name"); Element xliffElem2 = doc.createElementNS(XLIFF_12_NAMESPACE, "name2"); Element nonXliffElem = doc.createElementNS("ns", "name"); assertFalse(XliffElementImpl.isXliffElement(text, "name")); assertTrue(XliffElementImpl.isXliffElement(xliffElem, "name")); assertFalse(XliffElementImpl.isXliffElement(xliffElem2, "name")); assertFalse(XliffElementImpl.isXliffElement(nonXliffElem, "name")); }