/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }
/** * Add a child to the child list. * NOTE: This presumes the child did not previously have a parent. * Making that assumption makes this a less expensive operation -- but * requires that if you *do* want to reparent a node, you use removeChild() * first to remove it from its previous context. Failing to do so will * damage the tree. * * @param elem Child to be added to child list * * @return Child just added to the child list */ public ElemTemplateElement appendChild(ElemTemplateElement elem) { if (null == elem) { error(XSLTErrorResources.ER_NULL_CHILD, null); //"Trying to add a null child!"); } if (null == m_firstChild) { m_firstChild = elem; } else { ElemTemplateElement last = getLastChildElem(); last.m_nextSibling = elem; } elem.setParentElem(this); return elem; }