/** * Constructor for the <code>Sequence</code> object. This is * used to position the cursor at the end of the list so the * last inserted output node is the first returned from this. */ public Sequence() { this.cursor = size(); }
/** * Constructor for the <code>Sequence</code> object. This is * used to position the cursor at the end of the list so the * last inserted output node is the first returned from this. */ public Sequence() { this.cursor = size(); }
/** * Constructor for the <code>Sequence</code> object. This is * used to position the cursor at the end of the list so the * last inserted output node is the first returned from this. */ public Sequence() { this.cursor = size(); }
/** * This is used to remove the <code>OutputNode</code> from the * top of the output stack. This is used when an element has been * ended and the output writer wants to block child creation. * * @return this returns the node from the top of the stack */ public OutputNode pop() { int size = size(); if(size <= 0) { return null; } return purge(size - 1); }
/** * This is used to remove the <code>OutputNode</code> from the * top of the output stack. This is used when an element has been * ended and the output writer wants to block child creation. * * @return this returns the node from the top of the stack */ public OutputNode pop() { int size = size(); if(size <= 0) { return null; } return purge(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); }
/** * 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); }
/** * 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 remove the <code>OutputNode</code> from the * top of the output stack. This is used when an element has been * ended and the output writer wants to block child creation. * * @return this returns the node from the top of the stack */ public OutputNode pop() { int size = size(); if(size <= 0) { return null; } return purge(size - 1); }
/** * 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); }