/** * If not already created, a new <code>icon</code> element will be created and returned. * Otherwise, the first existing <code>icon</code> element will be returned. * @return the instance defined for the element <code>icon</code> */ public IconType<ConnectorType<T>> getOrCreateIcon() { List<Node> nodeList = childNode.get("icon"); if (nodeList != null && nodeList.size() > 0) { return new IconTypeImpl<ConnectorType<T>>(this, "icon", childNode, nodeList.get(0)); } return createIcon(); }
/** * If not already created, a new <code>icon</code> element will be created and returned. * Otherwise, the first existing <code>icon</code> element will be returned. * @return the instance defined for the element <code>icon</code> */ public IconType<ConnectorType<T>> getOrCreateIcon() { List<Node> nodeList = childNode.get("icon"); if (nodeList != null && nodeList.size() > 0) { return new IconTypeImpl<ConnectorType<T>>(this, "icon", childNode, nodeList.get(0)); } return createIcon(); }