/** * Returns the <code>OutputNode</code> object at the cursor * position. If the cursor has reached the start of the list * then this returns null instead of the first output node. * * @return this returns the node from the cursor position */ public OutputNode next() { if(hasNext()) { return get(--cursor); } return null; }
/** * This is used to acquire the <code>OutputNode</code> from the * bottom of the output stack. This is used when the writer wants * to determine the root element for the written XML document. * * @return this returns the node from the bottom of the stack */ public OutputNode bottom() { int size = size(); if(size <= 0) { return null; } return get(0); }
/** * Returns the <code>OutputNode</code> object at the cursor * position. If the cursor has reached the start of the list * then this returns null instead of the first output node. * * @return this returns the node from the cursor position */ public OutputNode next() { if(hasNext()) { return get(--cursor); } return null; }
/** * This is used to acquire the <code>OutputNode</code> from the * top of the output stack. This is used when the writer wants to * determine the current element written to the XML document. * * @return this returns the node from the top of the stack */ public OutputNode top() { int size = size(); if(size <= 0) { return null; } return get(size - 1); }
/** * This is used to acquire the <code>OutputNode</code> from the * bottom of the output stack. This is used when the writer wants * to determine the root element for the written XML document. * * @return this returns the node from the bottom of the stack */ public OutputNode bottom() { int size = size(); if(size <= 0) { return null; } return get(0); }
/** * Returns the <code>OutputNode</code> object at the cursor * position. If the cursor has reached the start of the list * then this returns null instead of the first output node. * * @return this returns the node from the cursor position */ public OutputNode next() { if(hasNext()) { return get(--cursor); } return null; }
/** * This is used to acquire the <code>OutputNode</code> from the * top of the output stack. This is used when the writer wants to * determine the current element written to the XML document. * * @return this returns the node from the top of the stack */ public OutputNode top() { int size = size(); if(size <= 0) { return null; } return get(size - 1); }
/** * This is used to acquire the <code>OutputNode</code> from the * bottom of the output stack. This is used when the writer wants * to determine the root element for the written XML document. * * @return this returns the node from the bottom of the stack */ public OutputNode bottom() { int size = size(); if(size <= 0) { return null; } return get(0); }
/** * This is used to acquire the <code>OutputNode</code> from the * top of the output stack. This is used when the writer wants to * determine the current element written to the XML document. * * @return this returns the node from the top of the stack */ public OutputNode top() { int size = size(); if(size <= 0) { return null; } return get(size - 1); }