AltTransImpl extends XliffElementImpl implements AltTrans { @Override public List<? extends Node> getChildren() { ArrayList<Node> ret = new ArrayList<Node>(); if (source != null) { ret.add(source); } if (segSource != null) { ret.add(segSource); } ret.addAll(targets); ret.addAll(context); ret.addAll(nonXliffElements); return ret; } AltTransImpl(Target target);  AltTransImpl(org.w3c.dom.Element element); @Override List<? extends Node> getChildren(); AltTransType getAltTransType(); List<? extends Context> getContext(); Coord getCoord(); Crc getCrc(); CssStyle getCssStyle(); DataType getDataType(); ExStyle getExStyle(); ExType getExType(); ExtraData getExtraData(); Font getFont(); HelpId getHelpId(); MatchQuality getMatchQuality(); Menu getMenu(); MenuName getMenuName(); MenuOption getMenuOption(); Mid getMid(); Collection<NonXliffAttribute> getNonXliffAttributes(); List<NonXliffElement> getNonXliffElements(); Origin getOrigin(); PhaseName getPhaseName(); ResName getResName(); ResType getResType(); SegSource getSegSource(); Source getSource(); Style getStyle(); Target getTarget(); List<Target> getTargets(); com.sap.mlt.xliff12.api.attribute.Tool getTool(); ToolId getToolId(); com.sap.mlt.xliff12.api.attribute.Ts getTs(); XmlLang getXmlLang(); XmlSpace getXmlSpace(); void setAltTransType(AltTransType altTransType); void setContext(List<? extends Context> context); void setCoord(Coord coord); void setCrc(Crc crc); void setCssStyle(CssStyle cssStyle); void setDataType(DataType dataType); void setExStyle(ExStyle exStyle); void setExType(ExType exType); void setExtraData(ExtraData extraData); void setFont(Font font); void setHelpId(HelpId helpId); void setMatchQuality(MatchQuality matchQuality); void setMenu(Menu menu); void setMenuName(MenuName menuName); void setMenuOption(MenuOption menuOption); void setMid(Mid mid); void setNonXliffAttributes(
			Collection<NonXliffAttribute> nonXliffAttributes); void setNonXliffElements(List<NonXliffElement> nonXliffElements); void setOrigin(Origin origin); void setPhaseName(PhaseName phaseName); void setResName(ResName resName); void setResType(ResType resType); void setSource(Source source); void setSegSource(SegSource segSource); void setStyle(Style style); void setTarget(Target target); void setTargets(List<Target> targets); void setTool(com.sap.mlt.xliff12.api.attribute.Tool tool); void setToolId(ToolId toolId); void setTs(com.sap.mlt.xliff12.api.attribute.Ts ts); void setXmlLang(XmlLang xmlLang); void setXmlSpace(XmlSpace xmlSpace);  }
@Test public void testGetChildren() { AltTransImpl altTrans = createDefaultAltTrans(); altTrans.setSegSource(createDefaultSegSource()); altTrans.setSource(createDefaultSource()); ArrayList<AltTrans.Context> context = new ArrayList<AltTrans.Context>(); context.add(createDefaultContextGroup()); context.add(createDefaultPropGroup()); context.add(createDefaultNote()); altTrans.setContext(context); ArrayList<NonXliffElement> nxes = new ArrayList<NonXliffElement>(); nxes.add(createDefaultNonXliffElement()); altTrans.setNonXliffElements(nxes); List<? extends Node> children = altTrans.getChildren(); assertEquals(new Integer(7), new Integer(children.size())); }