InlineBaseImpl extends XliffElementImpl implements
		InlineBase { public Id getId() { return (Id) getXliffAttribute(Id.NAME); } protected  InlineBaseImpl(String name, Id id); protected  InlineBaseImpl(String name, org.w3c.dom.Element element); EquivText getEquivText(); Id getId(); Collection<NonXliffAttribute> getNonXliffAttributes(); com.sap.mlt.xliff12.api.attribute.Ts getTs(); Xid getXid(); void setEquivText(EquivText equivText); void setId(Id id); void setNonXliffAttributes(
			Collection<NonXliffAttribute> nonXliffAttributes); void setTs(com.sap.mlt.xliff12.api.attribute.Ts ts); void setXid(Xid xid);  }
@Test public void testInlineBaseImplStringId() { ConcreteInlineBaseImpl elem = new ConcreteInlineBaseImpl("name", new IdImpl("id")); assertEquals(XLIFF_12_NAMESPACE, elem.getNamespaceUri()); assertEquals("name", elem.getName()); assertEquals(new IdImpl("id"), elem.getId()); try { elem = new ConcreteInlineBaseImpl("name", (IdImpl) null); fail("Expected NullPointerException"); } catch (NullPointerException e) { } }
@Test public void testInlineBaseImplStringElement() { Document doc = Utils.createDocument(); Element xmlElem = doc.createElementNS(XLIFF_12_NAMESPACE, "name"); xmlElem.setAttributeNS(null, "id", "id"); ConcreteInlineBaseImpl elem; try { elem = new ConcreteInlineBaseImpl("name", xmlElem); assertEquals(XLIFF_12_NAMESPACE, elem.getNamespaceUri()); assertEquals("name", elem.getName()); assertEquals(new IdImpl("id"), elem.getId()); } catch (ConstraintViolationException e) { fail("Did not expect ConstraintViolationException"); } }